Changes between Version 1 and Version 2 of OutflowObjects


Ignore:
Timestamp:
12/09/14 13:10:31 (10 years ago)
Author:
Jonathan
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • OutflowObjects

    v1 v2  
    22[[BackLinksMenu()]]
    33
     4
     5
    46http://astrobear.pas.rochester.edu/trac/blog/johannjc08192013
    57
    6 = Histrogram Objects =
    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.f90
     8= Outflow Objects =
     9Outflow 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
    810{{{
    9   USE Histograms
    10   USE Fields
     11  USE Outflows
    1112}}}
    1213
    13 Then in !ProblemModuleInit declare a variable pointer of type !HistogramDef
     14Then in !ProblemModuleInit declare a variable pointer of type !OutflowDef
    1415{{{
    15   TYPE(HistogramDef), POINTER :: Histogram
     16  TYPE(OutflowDef), POINTER :: Outflow
    1617}}}
    1718
    18 Then create the Histogram and set the various parameters as in the following example
     19Then create the Outflowand set the various parameters as in the following example
    1920{{{
    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)
    2926}}}
    30 [[Image(SampleHistogram.png, width=400)]]
    3127
    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)]]
    3429
    35 Here is a full list of the various Histogram parameters with the default values in brackets:
     30Here is a full list of the various Outflow parameters
    3631{{{
    3732      INTEGER :: Scale=[LINEARSCALE], LOGSCALE
     
    4136      INTEGER :: WeightField=[VOLUME], MASS, or any valid FieldID
    4237}}}
    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.