STAGED Definitions

Top  Previous  Next

FlexPDE can perform automated parameter studies through use of the "staging" facility.  In this mode, FlexPDE will run the problem a number of times, with differing parameters in each run.  Each stage begins with the solution and mesh of the previous stage as initial conditions.

 

The STAGES Selector

 

In the SELECT section, the statement

 

STAGES = number

 

specifies that the problem will be run number times.  A parameter named STAGE is defined, which takes on the sequence count of the staged run.  Other definitions may use this value to vary parameter values, as for example:

 

Voltage = 100*stage

 

 

STAGED Definitions

 

A parameter definition may also take the form:

 

param = STAGED ( value_1, value_2, ... value_n )

 

In this case, the parameter param takes on value_1 in stage 1, value_2 in stage 2, etc.

If STAGED parameters are defined, the STAGES selector is optional.  If the STAGES selector is not defined, the length of the STAGED list will be used as the number of stages.  If the STAGES selector is defined, it overrides the length of the STAGED list.

 

See the example "Samples | Misc | Stages.pde".

 

 

STAGED Geometry

 

If the geometric domain definition contains references to staged quantities, then the solution and mesh will not be retained, but the mesh will be regenerated for the new geometry.  History plots can still be displayed for staged geometries.

 

See the example "Samples | Misc | Stage_Geom.pde".

 

FlexPDE attempts to detect stage dependence in the geometrical domain definition and automatically regenerate the mesh.  If for any reason these dependencies are undetected, the global selector STAGEGRID can be used to force grid staging.