Changes between Version 1 and Version 2 of OutflowObjects
- Timestamp:
- 12/09/14 13:10:31 (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
OutflowObjects
v1 v2 2 2 [[BackLinksMenu()]] 3 3 4 5 4 6 http://astrobear.pas.rochester.edu/trac/blog/johannjc08192013 5 7 6 = HistrogramObjects =7 Histogram Objects can be created within the !ProblemModuleInit routine in problem.f90. To create histograms you first need to add two {{{USE}}}statements to your problem.f908 = Outflow Objects = 9 Outflow Objects can be created within the !ProblemModuleInit routine in problem.f90. To create outflows you first need to add a ''USE'' statements to your problem.f90 8 10 {{{ 9 USE Histograms 10 USE Fields 11 USE Outflows 11 12 }}} 12 13 13 Then in !ProblemModuleInit declare a variable pointer of type ! HistogramDef14 Then in !ProblemModuleInit declare a variable pointer of type !OutflowDef 14 15 {{{ 15 TYPE( HistogramDef), POINTER :: Histogram16 TYPE(OutflowDef), POINTER :: Outflow 16 17 }}} 17 18 18 Then create the Histogramand set the various parameters as in the following example19 Then create the Outflowand set the various parameters as in the following example 19 20 {{{ 20 CALL CreateHistogram(Histogram) 21 Histogram%Field%id=MixingRatio12_Field 22 Histogram%Field%component=GASCOMP 23 Histogram%Field%name='Mixing_Ratio' 24 Histogram%minvalue0d0 25 Histogram%maxvalue=1d0 26 Histogram%nbins=100 27 Histogram%scale=LINEARSCALE 28 Histogram%WeightField=MASS 21 CALL CreateOutflow(Outflow) 22 Outflow%velocity=20d0 23 Outflow%open_angle=1.57 24 Outflow%radius=2 25 CALL UpdateOutflow(Outflow) 29 26 }}} 30 [[Image(SampleHistogram.png, width=400)]]31 27 32 * For more information on the Field sub-object's properties see ProcessingFields 33 * If you are making several histograms, you can reuse the Histogram Pointer (with or without Nullifying it) by calling {{{ CreateHistogram(Histogram) }}} for each new histogram. 28 [[Image(OutflowGeometry.png, width=400)]] 34 29 35 Here is a full list of the various Histogram parameters with the default values in brackets:30 Here is a full list of the various Outflow parameters 36 31 {{{ 37 32 INTEGER :: Scale=[LINEARSCALE], LOGSCALE … … 41 36 INTEGER :: WeightField=[VOLUME], MASS, or any valid FieldID 42 37 }}} 43 44 Then at each process event (currently each frame) a curve file will be generated in the out directory ie. {{{out/Histogram00021.curve}}} that will contain all of the histograms for that frame. See CurveFiles for more information on plotting curve files in visit.