Changes between Version 3 and Version 4 of u/madams/2DSinkCurves
- Timestamp:
- 10/13/14 09:22:08 (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
u/madams/2DSinkCurves
v3 v4 6 6 The script used (okc_to_curve.sh) can be found in the attachments below, along with the original sink file for frame 0 and its three projections. To run the script, copy it into your run directory with the .okc files and execute it. Immediately new curve files should be produced. With this method we simply plot the sinks as a curve file instead of as a pseudocolor variable inherent in the chombo (pmass). 7 7 8 Run the script (i.e. {{{sh okc_to_curve.sh}}} or {{{bash okc_to_curve.sh}}}, on a super computer that uses slurm one could even use {{{sbatch okc_to_curve.sh}}} and it will run instantaneously.) Now you'll have files for each sink_*.okc that are of the form sink_*.okc.xy.curve, .okc.yz.curve, and .okc.zx.curve. We will be visualizing these three curve files that are produced by the script.8 '''To execute:''' Run the script (i.e. {{{sh okc_to_curve.sh}}} or {{{bash okc_to_curve.sh}}}, on a super computer that uses slurm one could even use {{{sbatch okc_to_curve.sh}}} and it will run instantaneously.) Now you'll have files for each sink_*.okc that are of the form sink_*.okc.xy.curve, .okc.yz.curve, and .okc.zx.curve. We will be visualizing these three curve files that are produced by the script. 9 9 10 10 = Visualizing Sink Curves = 11 11 12 1. Import your .curve files through Add + > Curve > curve. Note the new database correlation created in '''Figure '''. If you want to order them similarly to mass1, mass2 and mass3 -- then proceed with yz (x-axis, i.e. mass1), zx (y-axis, i.e. mass2), and xy (z-axis, i.e. mass3). 12 1. Import and visualize the data you want to see your sinks projected on. In '''Figure 1''' we are looking at a (Add + > Pseudocolor > mass1) a mass1 bov, which integrates the density over time down the barrel of a colliding flow problem (this particular problem is beta 10, shear 15). Thus we are going to want to project the sinks_*.okc.yz.curve as it corresponds to the same axis as mass1. 13 14 2. Import your .curve files through Add + > Curve > curve. Note the new database correlation created in '''Figure '''. If you want to order them similarly to mass1, mass2 and mass3 -- then proceed with yz (x-axis, i.e. mass1), zx (y-axis, i.e. mass2), and xy (z-axis, i.e. mass3). 15 16 3. 13 17 14 18 = Summary =