pw::Solver

The solver mode type

Derives From

pw::Object pw::Mode

Summary
pw::SolverThe solver mode type
Instance Actions
runThis action runs the solver.
resumeThis action resumes running the solver.
getCompletedStepsThis action returns the number of steps completed by the last call to run or resume.
getCompletedEntitiesThis action returns the list of entities completed by the last call to run or resume.
getFailedEntitiesThis action returns the list of entities failed by the last call to run or resume.

Instance Actions

run

$solver run ?-entities ents? ?steps | method ?method_args??

This action runs the solver.

Parameters

-entities entsThis optional parameter is a subset of the entities in the solver mode to run the solver on.  If this parameter is not given the solver will be run on all the entities of the solver mode.
stepsThis optional parameter is the integer number of steps to run; The default is set by each solver (usually 1).  The solver will run until steps is reached, a stop is requested by the user, or some other stop condition is encountered.  This parameter is only valid for the pw.ExtrusionSolver, the pw.HighOrderSolver, and for the Smooth method of the pw.UnstructuredSolver for blocks.
methodThe optional method to run: Initialize | Refine | Decimate | Release | Smooth | Restart | PushAttributes | BoundaryAdaptation.  Not all methods are valid for all solver modes.  See solver-specific run docs for details.
method_argsAdditional method-specific arguments.  See solver-specific run docs for details.

Returns

This action returns nothing.

Information

This command supports progress updates.  Unlike most commands that support progress updates, if the user aborts this command, instead of reverting to the previous state the entities being solved will be left as is.

Example

See pw.EllipticSolver, pw.ExtrusionSolver, pw.HighOrderSolver, pw.ReExtrusionSolver, pw.UnstructuredSolver, pw.VoxelSolver.

resume

$solver resume

This action resumes running the solver.  It does nothing if the solver has not been run yet, or if the previous run has completed.

Parameters

This action has no parameters.

Returns

This action returns nothing.

Information

This command supports progress updates.  Unlike most commands that support progress updates, if the user aborts this command, instead of reverting to the previous state the entities being solved will be left as is.

getCompletedSteps

$solver getCompletedSteps

This action returns the number of steps completed by the last call to run or resume.

Parameters

This action has no parameters.

Returns

This action returns the integer number of steps completed.

Information

The number of completed steps will only be valid when the previous solver run used the steps parameter.

When steps are run on structured blocks, the value returned is for all blocks processed.

When steps are run on unstructured or iso voxel blocks, the value returned is only for the last block processed.

getCompletedEntities

$solver getCompletedEntities

This action returns the list of entities completed by the last call to run or resume.

Parameters

This action has no parameters.

Returns

This action returns a list of pw::Entity objects that have been completed.

Information

The list of completed entities will only be populated if the previous solver run used the method parameter.

getFailedEntities

$solver getFailedEntities

This action returns the list of entities failed by the last call to run or resume.

Parameters

This action has no parameters.

Returns

This action returns a list of pw::Entity objects that failed.

Information

The list of failed entities will only be populated if the previous solver run used the method parameter.

$solver run ?-entities ents? ?steps | method ?method_args??
This action runs the solver.
$solver resume
This action resumes running the solver.
$solver getCompletedSteps
This action returns the number of steps completed by the last call to run or resume.
$solver getCompletedEntities
This action returns the list of entities completed by the last call to run or resume.
$solver getFailedEntities
This action returns the list of entities failed by the last call to run or resume.
Base type for all glyph types
The mode base type
An integer is a whole number.
The extrusion solver mode type
The high order solver mode type
The unstructured solver mode type
The elliptic solver mode type
The re-extrusion solver mode type
The voxel solver mode type
Entity type
Close