The high order solver mode type
pw::Object pw::Mode pw::Solver
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]
pw:: | The high order solver mode type |
Instance Actions | |
run | This action runs the high order solver solver. |
$solver run ?-entities ents? steps ?-skipAfter skip_positions? ?export_spec?
This action runs the high order solver solver.
-entities ents | The 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. |
steps | The required integer number of iterations for each WCN Smoothing pass. Default is 100. |
export_spec | The high order file export specification as a list of filetype filename pairs. Where filetype is one of <CGNS | Gmsh | VTU | Kestrel>. This option is required if no skip_positions are defined. The specified high order mesh files are exported before the action returns. |
-skipAfter skip_positions | Optional index positions at which smoothing passes should be skipped. This is used to journal interactive skip locations. This option should never be used by script writers. |
This action returns nothing.
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 action supports progress updates. No blocks are modified by this action. The elevated mesh is discarded after the requested exports have been written.
Code
# Elevate all mode 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 {CGNS file.cgns VTU vtufile.abc}
See also pw.Solver
This action runs the high order solver solver.
$solver run ?-entities ents? steps ?-skipAfter skip_positions? ?export_spec?
This action begins a mode in the application.
pw::Application begin ?-mode_specific_flags? mode ?entities?