The elliptic 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 EllipticSolver specified, like this:
set solver [pw::Application begin EllipticSolver $entities]
pw:: | The elliptic solver mode type |
Instance Actions | |
run | This action runs the extrusion solver. |
project | This action projects the domains in the solver to the databases. |
getActiveSubGrids | This action gets the active subgrids in the solver for a given entity. |
setActiveSubGrids | This action sets the active subgrids in the solver for a given entity. |
$solver run ?-entities ents? ?Initialize | steps?
This action runs the extrusion solver.
-entities ents | This optional parameter is a subset of the entities in the solver mode to extrude. If this parameter is not given the solver will be run on all the entities of the solver mode. |
Initialize | The optional string mode. |
steps | The optional integer number of steps to extrude. Default is 1. |
This action returns nothing.
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.
Code
$solver run Initialize ;# rebuild interior points $solver run 5 ;# run 5 elliptic solver steps
See also pw.Solver
$solver getActiveSubGrids entity
This action gets the active subgrids in the solver for a given entity.
entity | This parameter is a pw::DomainStructured or pw::BlockStructured object that is in the solver to get the active subgrids of. |
This action returns a list of pw::DomainSubGrid or pw::BlockSubGrid objects depending on the type of the given entity. If the list returned is empty, it means that the solver will run over the entire entity.
$solver setActiveSubGrids entity ?subgrids?
This action sets the active subgrids in the solver for a given entity.
entity | This parameter is a pw::DomainStructured or pw::BlockStructured object that is in the solver. |
subgrids | This optional parameter is a list of pw::DomainSubGrid or pw::BlockSubGrid objects to make active in the solver. If this parameter is not given, or the list is empty, no subgrids will be active for the given entity, meaning the solver will run over the entire entity. |
This action returns nothing.
This action runs the extrusion solver.
$solver run ?-entities ents? ?Initialize | steps?
This action projects the domains in the solver to the databases.
$solver project
This action gets the active subgrids in the solver for a given entity.
$solver getActiveSubGrids entity
This action sets the active subgrids in the solver for a given entity.
$solver setActiveSubGrids entity ?subgrids?
This action begins a mode in the application.
pw::Application begin ?-mode_specific_flags? mode ?entities?