pw:: HighOrderSolver

The high order solver mode type

Derives From

pw::Object pw::Mode pw::Solver

Notes

To create a mode of this type, use the pw::Application.begin command with the mode HighOrderSolver specified, like this:

set solver [pw::Application begin HighOrderSolver $entities]
Summary
The high order solver mode type
This action runs the high order solver solver.
THIS ACTION IS NOT YET IMPLEMENTED.

Instance Actions

run

$solver run ?-entities ents? steps ?-skipAfter skip_positions? ?export_spec?

This action runs the high order solver solver.

Parameters

-entities entsThe optional subset of the entities in the solver mode to elevate.  If this parameter is not given the solver will be run on all the entities of the solver mode.
stepsThe required integer number of iterations for each WCN Smoothing pass.  Default is 200.
export_specThe high order file export specification.  This option is required if no skip_positions are defined.  The specified high order mesh files are exported before the command returns.  For details, see the export action.
-skipAfter skip_positionsOptional index positions at which smoothing passes should be skipped.  This flag is only used to capture internal skip locations trigger interactively.  It should never be used by script writers.

Returns

This action returns nothing.

Information

At least one of export_spec or skip_positions must be provided.  Invocations of `$solver run -skipAfter` without an export_spec do no work other than to append the skip positions to an internal list.

Only the final invocation of `$solver run` should specify an export_spec.  The presence of an export_spec starts the elevation and export process using any cached skip_positions.

This command supports progress updates.  No blocks are modified by this action.  The elevated mesh is discarded after the requested exports have been written.

Example

Code

# Elevate blocks using 75 iterations per smoothing step and write
# the elevated mesh to a CGNS file named file.cgns and a VTU
# file named vtufile.abc.
$solver run 75 -skipAfter {{1 3 55} {1 4 22}} {CGNS file.cgns VTU vtufile.abc}

# Equivalent to the above
$solver run 75 -skipAfter {{1 3 55} {1 4 22}}
$solver run 75 {CGNS file.cgns VTU vtufile.abc}

# Also equivalent to the above
$solver run 75 -skipAfter {1 3 55}
$solver run 75 -skipAfter {1 4 22} {CGNS file.cgns VTU vtufile.abc}

# Also equivalent to the above
$solver run 75 -skipAfter {1 3 55}
$solver run 75 -skipAfter {1 4 22}
$solver run 75 {CGNS file.cgns VTU vtufile.abc}

See also pw.Solver

export

$solver export export_spec

THIS ACTION IS NOT YET IMPLEMENTED.  This action exports the high order mesh to one or more formats.

Parameters

export_specHigh order file export specification.  It is a series of filetype filename items.  This may be a single list or a serial sequence. filetype is one of <CGNS | Gmsh | VTU | Kestrel>.  This action can be called multiple times before ending the mode.

Returns

This action returns a boolean of true if written, false if not.

Example

Code

# multiple exports via list
$solver export {CGNS ./file.cgns Gmsh /path/to/file.msh}
# multiple exports via non-list sequence
$solver export CGNS ./file.cgns Gmsh /path/to/file.msh
# multiple export calls
$solver export CGNS ./file.cgns
$solver export Gmsh /path/to/file.msh
$solver run ?-entities ents? steps ?-skipAfter skip_positions? ?export_spec?
This action runs the high order solver solver.
$solver export export_spec
THIS ACTION IS NOT YET IMPLEMENTED.
Base type for all glyph types
The mode base type
The solver mode type
pw::Application begin ?-mode_specific_flags? mode ?entities?
This action begins a mode in the application.
An integer is a whole number.