GEOS
Classes | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
geos::PhysicsSolverBase Class Referenceabstract

Base class for all physics solvers. More...

#include <PhysicsSolverBase.hpp>

Inheritance diagram for geos::PhysicsSolverBase:
Inheritance graph
[legend]

Classes

struct  groupKeyStruct
 Structure to hold scoped key names. More...
 
struct  viewKeyStruct
 Structure to hold scoped key names. More...
 

Public Types

using CatalogInterface = dataRepository::CatalogInterface< PhysicsSolverBase, string const &, Group *const >
 Type alias for catalog interface used by this class. See CatalogInterface.
 
- Public Types inherited from geos::ExecutableGroup
enum class  TimesteppingBehavior : integer { DeterminesTimeStepSize , DoesNotDetermineTimeStepSize }
 Timestepping type. More...
 
- Public Types inherited from geos::dataRepository::Group
using subGroupMap = MappedVector< Group, Group *, keyType, indexType >
 The template specialization of MappedVector to use for the collection of sub-Group objects.
 
using wrapperMap = MappedVector< WrapperBase, WrapperBase *, keyType, indexType >
 The template specialization of MappedVector to use for the collection wrappers objects.
 
using CatalogInterface = dataRepository::CatalogInterface< Group, string const &, Group *const >
 Type alias for catalog interface used by this class. See CatalogInterface.
 

Public Member Functions

 PhysicsSolverBase (string const &name, Group *const parent)
 Constructor for PhysicsSolverBase. More...
 
 PhysicsSolverBase (PhysicsSolverBase &&)=default
 Move constructor for PhysicsSolverBase.
 
virtual ~PhysicsSolverBase () override
 Destructor for PhysicsSolverBase.
 
 PhysicsSolverBase ()=delete
 Deleted constructor.
 
 PhysicsSolverBase (PhysicsSolverBase const &)=delete
 Deleted copy constructor.
 
PhysicsSolverBaseoperator= (PhysicsSolverBase const &)=delete
 Deleted copy assignment operator.
 
PhysicsSolverBaseoperator= (PhysicsSolverBase &&)=delete
 Deleted move assignment operator.
 
virtual string getCatalogName () const =0
 
virtual void registerDataOnMesh (Group &MeshBodies) override
 Register wrappers that contain data on the mesh objects. More...
 
virtual void initialize_postMeshGeneration () override
 Initialization tasks after mesh generation is completed.
 
void generateMeshTargetsFromTargetRegions (Group const &meshBodies)
 Generate mesh targets from target regions. More...
 
virtual void cleanup (real64 const time_n, integer const cycleNumber, integer const eventCounter, real64 const eventProgress, DomainPartition &domain) override
 Called as the code exits the main run loop. More...
 
virtual bool execute (real64 const time_n, real64 const dt, integer const cycleNumber, integer const eventCounter, real64 const eventProgress, DomainPartition &domain) override
 Main extension point of executable targets. More...
 
ParallelMatrixgetSystemMatrix ()
 Getter for system matrix. More...
 
ParallelMatrix const & getSystemMatrix () const
 Getter for system rhs vector. More...
 
ParallelVectorgetSystemRhs ()
 Getter for system rhs vector. More...
 
ParallelVector const & getSystemRhs () const
 Getter for system rhs vector. More...
 
ParallelVectorgetSystemSolution ()
 Getter for system solution vector. More...
 
ParallelVector const & getSystemSolution () const
 Getter for system solution vector. More...
 
DofManagergetDofManager ()
 Getter for degree-of-freedom manager. More...
 
DofManager const & getDofManager () const
 Getter for degree-of-freedom manager. More...
 
CRSMatrix< real64, globalIndex > & getLocalMatrix ()
 Getter for local matrix. More...
 
CRSMatrixView< real64 const, globalIndex const > getLocalMatrix () const
 Getter for local matrix. More...
 
virtual real64 solverStep (real64 const &time_n, real64 const &dt, integer const cycleNumber, DomainPartition &domain)
 entry function to perform a solver step More...
 
virtual real64 setNextDt (real64 const &currentDt, DomainPartition &domain)
 function to set the next time step size More...
 
virtual real64 setNextDtBasedOnNewtonIter (real64 const &currentDt)
 function to set the next time step size based on Newton convergence More...
 
virtual real64 setNextDtBasedOnStateChange (real64 const &currentDt, DomainPartition &domain)
 function to set the next dt based on state change More...
 
virtual real64 setNextDtBasedOnCFL (real64 const &currentDt, DomainPartition &domain)
 function to set the next dt based on state change More...
 
virtual real64 explicitStep (real64 const &time_n, real64 const &dt, integer const cycleNumber, DomainPartition &domain)
 Entry function for an explicit time integration step. More...
 
virtual real64 nonlinearImplicitStep (real64 const &time_n, real64 const &dt, integer const cycleNumber, DomainPartition &domain)
 Function for a nonlinear implicit integration step. More...
 
virtual bool lineSearch (real64 const &time_n, real64 const &dt, integer const cycleNumber, DomainPartition &domain, DofManager const &dofManager, CRSMatrixView< real64, globalIndex const > const &localMatrix, ParallelVector &rhs, ParallelVector &solution, real64 const scaleFactor, real64 &lastResidual)
 Function to perform line search. More...
 
virtual bool lineSearchWithParabolicInterpolation (real64 const &time_n, real64 const &dt, integer const cycleNumber, DomainPartition &domain, DofManager const &dofManager, CRSMatrixView< real64, globalIndex const > const &localMatrix, ParallelVector &rhs, ParallelVector &solution, real64 const scaleFactor, real64 &lastResidual, real64 &residualNormT)
 Function to perform line search using a parabolic interpolation to find the scaling factor. More...
 
virtual real64 linearImplicitStep (real64 const &time_n, real64 const &dt, integer const cycleNumber, DomainPartition &domain)
 Function for a linear implicit integration step. More...
 
virtual void implicitStepSetup (real64 const &time_n, real64 const &dt, DomainPartition &domain)
 function to perform setup for implicit timestep More...
 
virtual void setupDofs (DomainPartition const &domain, DofManager &dofManager) const
 Populate degree-of-freedom manager with fields relevant to this solver. More...
 
virtual void setupSystem (DomainPartition &domain, DofManager &dofManager, CRSMatrix< real64, globalIndex > &localMatrix, ParallelVector &rhs, ParallelVector &solution, bool const setSparsity=true)
 Set up the linear system (DOF indices and sparsity patterns) More...
 
virtual void assembleSystem (real64 const time, real64 const dt, DomainPartition &domain, DofManager const &dofManager, CRSMatrixView< real64, globalIndex const > const &localMatrix, arrayView1d< real64 > const &localRhs)
 function to assemble the linear system matrix and rhs More...
 
virtual void applyBoundaryConditions (real64 const time, real64 const dt, DomainPartition &domain, DofManager const &dofManager, CRSMatrixView< real64, globalIndex const > const &localMatrix, arrayView1d< real64 > const &localRhs)
 apply boundary condition to system More...
 
void debugOutputSystem (real64 const &time, integer const cycleNumber, integer const nonlinearIteration, ParallelMatrix const &matrix, ParallelVector const &rhs) const
 Output the assembled linear system for debug purposes. More...
 
void debugOutputSolution (real64 const &time, integer const cycleNumber, integer const nonlinearIteration, ParallelVector const &solution) const
 Output the linear system solution for debug purposes. More...
 
virtual real64 calculateResidualNorm (real64 const &time, real64 const &dt, DomainPartition const &domain, DofManager const &dofManager, arrayView1d< real64 const > const &localRhs)
 calculate the norm of the global system residual More...
 
virtual void solveLinearSystem (DofManager const &dofManager, ParallelMatrix &matrix, ParallelVector &rhs, ParallelVector &solution)
 function to apply a linear system solver to the assembled system. More...
 
virtual bool checkSystemSolution (DomainPartition &domain, DofManager const &dofManager, arrayView1d< real64 const > const &localSolution, real64 const scalingFactor)
 Function to check system solution for physical consistency and constraint violation. More...
 
virtual real64 scalingForSystemSolution (DomainPartition &domain, DofManager const &dofManager, arrayView1d< real64 const > const &localSolution)
 Function to determine if the solution vector should be scaled back in order to maintain a known constraint. More...
 
virtual void applySystemSolution (DofManager const &dofManager, arrayView1d< real64 const > const &localSolution, real64 const scalingFactor, real64 const dt, DomainPartition &domain)
 Function to apply the solution vector to the state. More...
 
virtual bool updateConfiguration (DomainPartition &domain)
 updates the configuration (if needed) based on the state after a converged Newton loop. More...
 
virtual void outputConfigurationStatistics (DomainPartition const &domain) const
 
virtual void resetConfigurationToBeginningOfStep (DomainPartition &domain)
 resets the configuration to the beginning of the time-step. More...
 
virtual bool resetConfigurationToDefault (DomainPartition &domain) const
 resets the configuration to the default value. More...
 
virtual void updateState (DomainPartition &domain)
 Recompute all dependent quantities from primary variables (including constitutive models) More...
 
virtual void resetStateToBeginningOfStep (DomainPartition &domain)
 reset state of physics back to the beginning of the step. More...
 
virtual void implicitStepComplete (real64 const &time, real64 const &dt, DomainPartition &domain)
 perform cleanup for implicit timestep More...
 
virtual real64 getTimestepRequest (real64 const) override
 getter for the next timestep size More...
 
real64 getTimestepRequest ()
 getter for the next timestep size More...
 
virtual GroupcreateChild (string const &childKey, string const &childName) override
 creates a child group of of this PhysicsSolverBase instantiation More...
 
Timestamp getSystemSetupTimestamp () const
 getter for the timestamp of the system setup More...
 
Timestamp getMeshModificationTimestamp (DomainPartition &domain) const
 getter for the timestamp of the mesh modification on the mesh levels More...
 
void setSystemSetupTimestamp (Timestamp timestamp)
 set the timestamp of the system setup More...
 
R1Tensor const gravityVector () const
 return the value of the gravity vector specified in PhysicsSolverManager More...
 
virtual bool checkSequentialSolutionIncrements (DomainPartition &domain) const
 Check if the solution increments are ok to use. More...
 
virtual void saveSequentialIterationState (DomainPartition &domain)
 Save the state of the solver for sequential iteration. More...
 
LinearSolverParametersgetLinearSolverParameters ()
 accessor for the linear solver parameters. More...
 
LinearSolverParameters const & getLinearSolverParameters () const
 const accessor for the linear solver parameters. More...
 
NonlinearSolverParametersgetNonlinearSolverParameters ()
 accessor for the nonlinear solver parameters. More...
 
NonlinearSolverParameters const & getNonlinearSolverParameters () const
 const accessor for the nonlinear solver parameters. More...
 
virtual void synchronizeNonlinearSolverParameters ()
 syncronize the nonlinear solver parameters.
 
localIndex targetRegionIndex (string const &regionName) const
 Get position of a given region within solver's target region list. More...
 
template<typename LAMBDA >
void forDiscretizationOnMeshTargets (Group const &meshBodies, LAMBDA &&lambda) const
 Loop over the target discretization on all mesh targets and apply callback. More...
 
template<typename LAMBDA >
void forDiscretizationOnMeshTargets (Group &meshBodies, LAMBDA &&lambda) const
 Loop over the target discretization on all mesh targets and apply callback. More...
 
string getDiscretizationName () const
 return the name of the discretization object More...
 
virtual bool registerCallback (void *func, const std::type_info &funcType) final override
 function to set the value of m_assemblyCallback More...
 
SolverStatisticsgetSolverStatistics ()
 accessor for the solver statistics. More...
 
SolverStatistics const & getSolverStatistics () const
 const accessor for the solver statistics. More...
 
map< std::pair< string, string >, array1d< string > > const & getMeshTargets () const
 accessor for m_meshTargets More...
 
- Public Member Functions inherited from geos::ExecutableGroup
virtual void signalToPrepareForExecution (real64 const time_n, real64 const dt, integer const cycle, DomainPartition &domain)
 Inform the object that it expects to execute during the next timestep. More...
 
void setTimesteppingBehavior (TimesteppingBehavior const timesteppingBehavior)
 Set the timestep behavior for a target. More...
 
TimesteppingBehavior getTimesteppingBehavior () const
 Get the target's time step behavior. More...
 
- Public Member Functions inherited from geos::dataRepository::Group
template<typename LOG_LEVEL_INFO >
std::enable_if_t< geos::is_log_level_info< LOG_LEVEL_INFO >, void > addLogLevel ()
 Append a levelCondition and a log description to the description of the wrapped object given a log info struct. Must be called in constructor. More...
 
virtual void reinit ()
 Performs re-initialization of certain variable depending on the solver being used.
 
 Group (string const &name, Group *const parent)
 Constructor. More...
 
 Group (string const &name, conduit::Node &rootNode)
 Constructor. More...
 
 Group (Group &&source)=default
 Move constructor. More...
 
virtual ~Group ()
 Destructor, deletes all Groups and Wrappers owned by this Group.
 
 Group ()=delete
 Deleted default constructor.
 
 Group (Group const &)=delete
 Deleted copy constructor.
 
Groupoperator= (Group const &)=delete
 Deleted copy assignment operator. More...
 
Groupoperator= (Group &&)=delete
 Deleted move assignment operator. More...
 
void printDataHierarchy (integer indent=0) const
 Prints the data hierarchy recursively. More...
 
string dumpInputOptions () const
 
string dumpSubGroupsNames () const
 
string dumpWrappersNames () const
 
template<typename T = Group>
T & registerGroup (string const &name, std::unique_ptr< T > newObject)
 Register a new Group as a sub-group of current Group. More...
 
template<typename T = Group>
T & registerGroup (string const &name, T *newObject)
 Register a new Group as a sub-group of current Group. More...
 
template<typename T = Group>
T & registerGroup (string const &name)
 Register a new Group as a sub-group of current Group. More...
 
template<typename T = Group>
T & registerGroup (subGroupMap::KeyIndex const &keyIndex)
 Register a new Group as a sub-group of current Group. More...
 
template<typename T = Group, typename TBASE = Group>
T & registerGroup (string const &name, string const &catalogName)
 Register a new Group as a sub-group of current Group. More...
 
void deregisterGroup (string const &name)
 Removes a child group from this group. More...
 
template<typename T = Group, typename KEY = void>
T * getGroupPointer (KEY const &key)
 Return a pointer to a sub-group of the current Group. More...
 
template<typename T = Group, typename KEY = void>
T const * getGroupPointer (KEY const &key) const
 Return a pointer to a sub-group of the current Group. More...
 
template<typename T = Group, typename KEY = void>
T & getGroup (KEY const &key)
 Return a reference to a sub-group of the current Group. More...
 
template<typename T = Group, typename KEY = void>
T const & getGroup (KEY const &key) const
 Return a reference to a sub-group of the current Group. More...
 
template<typename T = Group>
T & getGroupByPath (string const &path)
 Retrieve a group from the hierarchy using a path. More...
 
template<typename T = Group>
T const & getGroupByPath (string const &path) const
 Retrieve a group from the hierarchy using a path. More...
 
subGroupMapgetSubGroups ()
 Get the subgroups object. More...
 
subGroupMap const & getSubGroups () const
 Get the subgroups object. More...
 
localIndex numSubGroups () const
 return the number of sub groups in this Group More...
 
std::vector< stringgetSubGroupsNames () const
 
template<typename T = Group>
bool hasGroup (string const &name) const
 Check whether a sub-group exists. More...
 
template<typename T >
bool hasSubGroupOfType () const
 Check whether a sub-group exists by type. More...
 
template<typename GROUPTYPE = Group, typename ... GROUPTYPES, typename LAMBDA >
void forSubGroups (LAMBDA &&lambda)
 Apply the given functor to subgroups that can be casted to one of specified types. More...
 
template<typename GROUPTYPE = Group, typename ... GROUPTYPES, typename LAMBDA >
void forSubGroups (LAMBDA &&lambda) const
 Apply the given functor to subgroups that can be casted to one of specified types. More...
 
template<typename GROUPTYPE = Group, typename ... GROUPTYPES, typename LAMBDA >
void forSubGroupsIndex (LAMBDA &&lambda)
 Apply the given functor to subgroups that can be casted to one of specified types. More...
 
template<typename GROUPTYPE = Group, typename ... GROUPTYPES, typename LAMBDA >
void forSubGroupsIndex (LAMBDA &&lambda) const
 Apply the given functor to subgroups that can be casted to one of specified types. More...
 
template<typename GROUPTYPE = Group, typename ... GROUPTYPES, typename LOOKUP_CONTAINER , typename LAMBDA >
void forSubGroups (LOOKUP_CONTAINER const &subGroupKeys, LAMBDA &&lambda)
 Apply the given functor to subgroups that can be casted to one of specified types. More...
 
template<typename GROUPTYPE = Group, typename ... GROUPTYPES, typename LOOKUP_CONTAINER , typename LAMBDA >
void forSubGroups (LOOKUP_CONTAINER const &subGroupKeys, LAMBDA &&lambda) const
 Apply the given functor to subgroups that can be casted to one of specified types. More...
 
template<typename LAMBDA >
void forWrappers (LAMBDA &&lambda)
 Apply the given functor to wrappers. More...
 
template<typename LAMBDA >
void forWrappers (LAMBDA &&lambda) const
 Apply the given functor to wrappers. More...
 
template<typename TYPE , typename ... TYPES, typename LAMBDA >
void forWrappers (LAMBDA &&lambda)
 Apply the given functor to wrappers that can be cast to one of specified types. More...
 
template<typename TYPE , typename ... TYPES, typename LAMBDA >
void forWrappers (LAMBDA &&lambda) const
 Apply the given functor to wrappers that can be cast to one of specified types. More...
 
void initialize ()
 Run initialization functions on this and all subgroups. More...
 
virtual void initializationOrder (string_array &order)
 Sets the initialization order for sub-Groups. More...
 
void initializePostInitialConditions ()
 Initialization routine to be called after calling ApplyInitialConditions(). More...
 
void postRestartInitializationRecursive ()
 Initialization routine to be called after calling reading a restart file. More...
 
void processInputFileRecursive (xmlWrapper::xmlDocument &xmlDocument, xmlWrapper::xmlNode &targetNode)
 Recursively read values using ProcessInputFile() from the input file and put them into the wrapped values for this group. Also add the includes content to the xmlDocument when Include nodes are encountered. More...
 
void processInputFileRecursive (xmlWrapper::xmlDocument &xmlDocument, xmlWrapper::xmlNode &targetNode, xmlWrapper::xmlNodePos const &nodePos)
 Same as processInputFileRecursive(xmlWrapper::xmlDocument &, xmlWrapper::xmlNode &) but allow to reuse an existing xmlNodePos. More...
 
void postInputInitializationRecursive ()
 Recursively call postInputInitialization() to apply post processing after reading input values.
 
template<typename T , typename TBASE = T>
Wrapper< TBASE > & registerWrapper (string const &name, wrapperMap::KeyIndex::index_type *const rkey=nullptr)
 Create and register a Wrapper around a new object. More...
 
template<typename T , typename TBASE = T>
Wrapper< TBASE > & registerWrapper (Group::wrapperMap::KeyIndex const &viewKey)
 Create and register a Wrapper around a new object. More...
 
template<typename T >
Wrapper< T > & registerWrapper (string const &name, std::unique_ptr< T > newObject)
 Register a Wrapper around a given object and take ownership. More...
 
template<typename T >
Wrapper< T > & registerWrapper (string const &name, T *newObject)
 Register a Wrapper around an existing object, does not take ownership of the object. More...
 
WrapperBaseregisterWrapper (std::unique_ptr< WrapperBase > wrapper)
 Register and take ownership of an existing Wrapper. More...
 
void deregisterWrapper (string const &name)
 Removes a Wrapper from this group. More...
 
void generateDataStructureSkeleton (integer const level)
 Build a complete datastructure for schema generation. More...
 
virtual void expandObjectCatalogs ()
 Expand any catalogs in the data structure.
 
virtual void setSchemaDeviations (xmlWrapper::xmlNode schemaRoot, xmlWrapper::xmlNode schemaParent, integer documentationType)
 Inform the schema generator of any deviations between the xml and GEOS data structures. More...
 
virtual void registerDataOnMeshRecursive (Group &meshBodies)
 Calls RegisterDataOnMesh() recursively. More...
 
virtual localIndex packSize (string_array const &wrapperNames, integer const recursive, bool onDevice, parallelDeviceEvents &events) const
 Get the size required to pack a list of wrappers. More...
 
virtual localIndex packSize (string_array const &wrapperNames, arrayView1d< localIndex const > const &packList, integer const recursive, bool onDevice, parallelDeviceEvents &events) const
 Get the size required to pack a list of indices within a list of wrappers. More...
 
localIndex packSize (arrayView1d< localIndex const > const &packList, integer const recursive, bool onDevice, parallelDeviceEvents &events) const
 Get the size required to pack a list of indices for all registered wrappers. More...
 
virtual localIndex pack (buffer_unit_type *&buffer, string_array const &wrapperNames, integer const recursive, bool onDevice, parallelDeviceEvents &events) const
 Pack a list of wrappers to a buffer. More...
 
virtual localIndex pack (buffer_unit_type *&buffer, string_array const &wrapperNames, arrayView1d< localIndex const > const &packList, integer const recursive, bool onDevice, parallelDeviceEvents &events) const
 Pack a list of indices within a list of wrappers. More...
 
localIndex pack (buffer_unit_type *&buffer, arrayView1d< localIndex const > const &packList, integer const recursive, bool onDevice, parallelDeviceEvents &events) const
 Pack a list of indices for all registered wrappers. More...
 
virtual localIndex unpack (buffer_unit_type const *&buffer, arrayView1d< localIndex > &packList, integer const recursive, bool onDevice, parallelDeviceEvents &events, MPI_Op op=MPI_REPLACE)
 Unpack a buffer. More...
 
template<typename KEY >
WrapperBase const & getWrapperBase (KEY const &key) const
 Return a reference to a WrapperBase stored in this group. More...
 
template<typename KEY >
WrapperBasegetWrapperBase (KEY const &key)
 Return a reference to a WrapperBase stored in this group. More...
 
indexType getWrapperIndex (string const &name) const
 
wrapperMap const & wrappers () const
 Get access to the internal wrapper storage. More...
 
wrapperMapwrappers ()
 Get access to the internal wrapper storage. More...
 
indexType numWrappers () const
 Return the number of wrappers. More...
 
std::vector< stringgetWrappersNames () const
 
template<typename LOOKUP_TYPE >
bool hasWrapper (LOOKUP_TYPE const &lookup) const
 Check if a wrapper exists. More...
 
template<typename T , typename LOOKUP_TYPE >
Wrapper< T > const & getWrapper (LOOKUP_TYPE const &index) const
 Retrieve a Wrapper stored in this group. More...
 
template<typename T , typename LOOKUP_TYPE >
Wrapper< T > & getWrapper (LOOKUP_TYPE const &index)
 Retrieve a Wrapper stored in this group. More...
 
template<typename T , typename LOOKUP_TYPE >
Wrapper< T > const * getWrapperPointer (LOOKUP_TYPE const &index) const
 Retrieve a Wrapper stored in this group. More...
 
template<typename T , typename LOOKUP_TYPE >
Wrapper< T > * getWrapperPointer (LOOKUP_TYPE const &index)
 Retrieve a Wrapper stored in this group. More...
 
template<typename T , typename LOOKUP_TYPE >
GEOS_DECLTYPE_AUTO_RETURN getReference (LOOKUP_TYPE const &lookup) const
 Look up a wrapper and get reference to wrapped object. More...
 
template<typename T , typename LOOKUP_TYPE >
T & getReference (LOOKUP_TYPE const &lookup)
 Look up a wrapper and get reference to wrapped object. More...
 
virtual void resize (localIndex const newSize)
 Resize the group and all contained wrappers that resize with parent. More...
 
virtual void reserve (indexType const newsize)
 Set the new capacity and reserve it in all wrappers that resize with parent. More...
 
localIndex capacity () const
 Get the "capacity" of the group, which determines the capacity of resizable wrappers. More...
 
localIndex size () const
 Get the "size" of the group, which determines the number of elements in resizable wrappers. More...
 
string const & getName () const
 Get group name. More...
 
string getPath () const
 Return the path of this Group in the data repository. Starts with '/' followed by the hierarchy of the children of the "Problem" in which the Group is. More...
 
DataContext const & getDataContext () const
 
template<typename KEY >
DataContext const & getWrapperDataContext (KEY key) const
 
GroupgetParent ()
 Access the group's parent. More...
 
Group const & getParent () const
 Access the group's parent. More...
 
bool hasParent () const
 
localIndex getIndexInParent () const
 Get the group's index within its parent group. More...
 
localIndex getSubGroupIndex (keyType const &key) const
 Get the index of a sub-Group within this group. More...
 
int sizedFromParent () const
 Check whether this Group is resized when its parent is resized. More...
 
GroupsetSizedFromParent (int val)
 Set whether this wrapper is resized when its parent is resized. More...
 
RestartFlags getRestartFlags () const
 Get flags that control restart output of this group. More...
 
void setRestartFlags (RestartFlags flags)
 Set flags that control restart output of this group. More...
 
InputFlags getInputFlags () const
 Get input flags for schema generation. More...
 
void setInputFlags (InputFlags flags)
 Set input flags for schema generation. More...
 
conduit::Node & getConduitNode ()
 Return the Conduit node object associated with this group. More...
 
conduit::Node const & getConduitNode () const
 Return the Conduit node object associated with this group. More...
 
void prepareToWrite ()
 Register the group and its wrappers with Conduit.
 
void finishWriting ()
 Write the group and its wrappers into Conduit.
 
void loadFromConduit ()
 Read the group and its wrappers from Conduit.
 
void enableLogLevelInput ()
 
void setLogLevel (integer const logLevel)
 Set verbosity level. More...
 
integer getLogLevel () const
 

Static Public Member Functions

static CatalogInterface::CatalogTypegetCatalog ()
 Get the singleton catalog for PhysicsSolverBase. More...
 
- Static Public Member Functions inherited from geos::dataRepository::Group
template<typename T0 , typename T1 , typename ... CASTTYPES, typename CONTAINERTYPE , typename LAMBDA >
static bool applyLambdaToContainer (CONTAINERTYPE &container, LAMBDA &&lambda)
 Apply a given functor to a container if the container can be cast to one of the specified types. More...
 
static CatalogInterface::CatalogTypegetCatalog ()
 Get the singleton catalog for this Group. More...
 

Protected Member Functions

real64 eisenstatWalker (real64 const newNewtonNorm, real64 const oldNewtonNorm, LinearSolverParameters::Krylov const &krylovParams)
 Eisenstat-Walker adaptive tolerance. More...
 
virtual void setConstitutiveNamesCallSuper (ElementSubRegionBase &subRegion) const
 This function sets constitutive name fields on an ElementSubRegionBase, and calls the base function it overrides. More...
 
- Protected Member Functions inherited from geos::dataRepository::Group
virtual void postInputInitialization ()
 
virtual void initializePreSubGroups ()
 Called by Initialize() prior to initializing sub-Groups.
 
virtual void initializePostSubGroups ()
 Called by Initialize() after to initializing sub-Groups.
 
virtual void initializePostInitialConditionsPreSubGroups ()
 Called by InitializePostInitialConditions() prior to initializing sub-Groups.
 
virtual void initializePostInitialConditionsPostSubGroups ()
 Called by InitializePostInitialConditions() after to initializing sub-Groups.
 
virtual void postRestartInitialization ()
 Performs initialization required after reading from a restart file.
 

Static Protected Member Functions

template<typename CONSTITUTIVE_BASE_TYPE >
static string getConstitutiveName (ElementSubRegionBase const &subRegion)
 Get the Constitutive Name object. More...
 
template<typename CONSTITUTIVE_BASE_TYPE >
static string getConstitutiveName (ParticleSubRegionBase const &subRegion)
 Get the Constitutive Name object. More...
 
template<typename BASETYPE = constitutive::ConstitutiveBase, typename LOOKUP_TYPE >
static BASETYPE const & getConstitutiveModel (dataRepository::Group const &dataGroup, LOOKUP_TYPE const &key)
 Get the Constitutive Model object. More...
 
template<typename BASETYPE = constitutive::ConstitutiveBase, typename LOOKUP_TYPE >
static BASETYPE & getConstitutiveModel (dataRepository::Group &dataGroup, LOOKUP_TYPE const &key)
 Get the Constitutive Model object. More...
 

Protected Attributes

real64 m_cflFactor
 Courant–Friedrichs–Lewy factor for the timestep.
 
real64 m_maxStableDt
 maximum stable time step
 
real64 m_nextDt
 timestep of the next cycle
 
integer m_numTimestepsSinceLastDtCut
 Number of cycles since last timestep cut.
 
string m_discretizationName
 name of the FV discretization object in the data repository
 
DofManager m_dofManager
 Data structure to handle degrees of freedom.
 
ParallelMatrix m_matrix
 System matrix.
 
ParallelVector m_rhs
 System right-hand side vector.
 
ParallelVector m_solution
 System solution vector.
 
CRSMatrix< real64, globalIndexm_localMatrix
 Local system matrix and rhs.
 
std::unique_ptr< PreconditionerBase< LAInterface > > m_precond
 Custom preconditioner for the "native" iterative solver.
 
integer m_writeLinearSystem
 flag for debug output of matrix, rhs, and solution
 
LinearSolverParametersInput m_linearSolverParameters
 Linear solver parameters.
 
LinearSolverResult m_linearSolverResult
 Result of the last linear solve.
 
NonlinearSolverParameters m_nonlinearSolverParameters
 Nonlinear solver parameters.
 
SolverStatistics m_solverStatistics
 Solver statistics.
 
Timestamp m_systemSetupTimestamp
 Timestamp of the last call to setup system.
 
std::function< void(CRSMatrix< real64, globalIndex >, array1d< real64 >) > m_assemblyCallback
 Callback function for assembly step.
 
std::map< std::string, std::chrono::system_clock::duration > m_timers
 Timers for the aggregate profiling of the solver.
 

Detailed Description

Base class for all physics solvers.

This class provides the base interface for all physics solvers. It provides the basic functionality for setting up and solving a linear system, as well as the interface for performing a timestep.

Definition at line 50 of file PhysicsSolverBase.hpp.

Constructor & Destructor Documentation

◆ PhysicsSolverBase()

geos::PhysicsSolverBase::PhysicsSolverBase ( string const &  name,
Group *const  parent 
)
explicit

Constructor for PhysicsSolverBase.

Parameters
namethe name of this instantiation of PhysicsSolverBase
parentthe parent group of this instantiation of PhysicsSolverBase

Member Function Documentation

◆ checkSequentialSolutionIncrements()

virtual bool geos::PhysicsSolverBase::checkSequentialSolutionIncrements ( DomainPartition domain) const
virtual

◆ cleanup()

virtual void geos::PhysicsSolverBase::cleanup ( real64 const  time_n,
integer const  cycleNumber,
integer const  eventCounter,
real64 const  eventProgress,
DomainPartition domain 
)
overridevirtual

◆ createChild()

virtual Group* geos::PhysicsSolverBase::createChild ( string const &  childKey,
string const &  childName 
)
overridevirtual

creates a child group of of this PhysicsSolverBase instantiation

Parameters
childKeythe key of the child type
childNamethe name of the child
Returns
a pointer to the child group

Reimplemented from geos::dataRepository::Group.

Reimplemented in geos::WellSolverBase.

◆ eisenstatWalker()

real64 geos::PhysicsSolverBase::eisenstatWalker ( real64 const  newNewtonNorm,
real64 const  oldNewtonNorm,
LinearSolverParameters::Krylov const &  krylovParams 
)
protected

Eisenstat-Walker adaptive tolerance.

This method enables an inexact-Newton method is which the linear solver tolerance is chosen based on the nonlinear solver convergence behavior. In early Newton iterations, the search direction is usually imprecise, and therefore a weak linear convergence tolerance can be chosen to minimize computational cost. As the search gets closer to the true solution, however, more stringent linear tolerances are necessary to maintain quadratic convergence behavior.

The user can set the weakest tolerance allowed, with a default of 1e-3. Even weaker values (e.g. 1e-2,1e-1) can be used for further speedup, but may occasionally cause convergence problems. Use this parameter with caution. The most stringent tolerance is hardcoded to 1e-8, which is sufficient for most problems.

See Eisenstat, S.C. and Walker, H.F., 1996. Choosing the forcing terms in an inexact Newton method. SIAM Journal on Scientific Computing, 17(1), pp.16-32.

Parameters
newNewtonNormResidual norm at current iteration
oldNewtonNormResidual norm at previous iteration
krylovParamsLinear solver parameters
Returns
Adaptive tolerance recommendation

◆ execute()

virtual bool geos::PhysicsSolverBase::execute ( real64 const  time_n,
real64 const  dt,
integer const  cycleNumber,
integer const  eventCounter,
real64 const  eventProgress,
DomainPartition domain 
)
overridevirtual

Main extension point of executable targets.

Parameters
[in]time_ncurrent time level
[in]dttime step to be taken
[in]cycleNumberglobal cycle number
[in]eventCounterindex of event that triggered execution
[in]eventProgressfractional progress in current cycle
[in,out]domainthe physical domain up-casted to a Group.
Returns
True iff this event requires exiting the event loop.

If the start criteria are satisfied, then the event manager will call this method.

Implements geos::ExecutableGroup.

Reimplemented in geos::SolidMechanicsMPM.

◆ forDiscretizationOnMeshTargets() [1/2]

template<typename LAMBDA >
void geos::PhysicsSolverBase::forDiscretizationOnMeshTargets ( Group meshBodies,
LAMBDA &&  lambda 
) const
inline

Loop over the target discretization on all mesh targets and apply callback.

Template Parameters
LAMBDAThe callback function type
Parameters
meshBodiesThe group of MeshBodies
lambdaThe callback function. Takes the name of the meshBody, reference to the MeshLevel, and a list of regionNames.

Definition at line 852 of file PhysicsSolverBase.hpp.

◆ forDiscretizationOnMeshTargets() [2/2]

template<typename LAMBDA >
void geos::PhysicsSolverBase::forDiscretizationOnMeshTargets ( Group const &  meshBodies,
LAMBDA &&  lambda 
) const
inline

Loop over the target discretization on all mesh targets and apply callback.

Template Parameters
LAMBDAThe callback function type
Parameters
meshBodiesThe group of MeshBodies
lambdaThe callback function. Takes the name of the meshBody, reference to the MeshLevel, and a list of regionNames.

Definition at line 826 of file PhysicsSolverBase.hpp.

◆ generateMeshTargetsFromTargetRegions()

void geos::PhysicsSolverBase::generateMeshTargetsFromTargetRegions ( Group const &  meshBodies)

Generate mesh targets from target regions.

Parameters
meshBodiesthe group of mesh bodies

◆ getCatalog()

static CatalogInterface::CatalogType& geos::PhysicsSolverBase::getCatalog ( )
static

Get the singleton catalog for PhysicsSolverBase.

Returns
reference to the catalog object

◆ getCatalogName()

virtual string geos::PhysicsSolverBase::getCatalogName ( ) const
pure virtual
Returns
Get the final class Catalog name

Implemented in geos::ElasticWaveEquationSEM, geos::ElasticFirstOrderWaveEquationSEM, geos::AcousticElasticWaveEquationSEM, geos::AcousticWaveEquationSEM, geos::AcousticVTIWaveEquationSEM, geos::AcousticFirstOrderWaveEquationSEM, geos::SurfaceGenerator, geos::EmbeddedSurfaceGenerator, geos::SolidMechanicsMPM, geos::SolidMechanicsLagrangianSSLE, geos::SolidMechanicsLagrangianFEM, geos::PhaseFieldDamageFEM, geos::LaplaceFEM, geos::SinglePhaseReservoirAndWells< RESERVOIR_SOLVER >, geos::SinglePhasePoromechanicsEmbeddedFractures, geos::SinglePhasePoromechanicsConformingFractures< FLOW_SOLVER >, geos::SinglePhasePoromechanics< FLOW_SOLVER, MECHANICS_SOLVER >, geos::SinglePhasePoromechanics< SinglePhaseBase, SolidMechanicsEmbeddedFractures >, geos::SinglePhasePoromechanics< SinglePhaseBase, SolidMechanicsLagrangeContact >, geos::PhaseFieldFractureSolver, geos::MultiphasePoromechanics< FLOW_SOLVER, MECHANICS_SOLVER >, geos::HydrofractureSolver< POROMECHANICS_SOLVER >, geos::FlowProppantTransportSolver, geos::CompositionalMultiphaseReservoirAndWells< RESERVOIR_SOLVER >, geos::SeismicityRate, geos::QuasiDynamicEQ, geos::SinglePhaseWell, geos::CompositionalMultiphaseWell, geos::SinglePhaseHybridFVM, geos::SinglePhaseFVM< BASE >, geos::ReactiveCompositionalMultiphaseOBL, geos::ProppantTransport, geos::CompositionalMultiphaseHybridFVM, geos::CompositionalMultiphaseFVM, geos::SolidMechanicsPenaltyContact, geos::SolidMechanicsLagrangeContactBubbleStab, geos::SolidMechanicsLagrangeContact, geos::SolidMechanicsEmbeddedFractures, and geos::SolidMechanicsAugmentedLagrangianContact.

◆ getConstitutiveModel() [1/2]

template<typename BASETYPE = constitutive::ConstitutiveBase, typename LOOKUP_TYPE >
static BASETYPE& geos::PhysicsSolverBase::getConstitutiveModel ( dataRepository::Group dataGroup,
LOOKUP_TYPE const &  key 
)
inlinestaticprotected

Get the Constitutive Model object.

Template Parameters
BASETYPEthe base type of the constitutive model.
LOOKUP_TYPEthe type of the key used to look up the constitutive model.
Parameters
dataGroupthe data group containing the constitutive models.
keythe key used to look up the constitutive model.
Returns
the constitutive model of type BASETYPE registered on the dataGroup with the key key.

Definition at line 998 of file PhysicsSolverBase.hpp.

◆ getConstitutiveModel() [2/2]

template<typename BASETYPE = constitutive::ConstitutiveBase, typename LOOKUP_TYPE >
static BASETYPE const& geos::PhysicsSolverBase::getConstitutiveModel ( dataRepository::Group const &  dataGroup,
LOOKUP_TYPE const &  key 
)
inlinestaticprotected

Get the Constitutive Model object.

Template Parameters
BASETYPEthe base type of the constitutive model.
LOOKUP_TYPEthe type of the key used to look up the constitutive model.
Parameters
dataGroupthe data group containing the constitutive models.
keythe key used to look up the constitutive model.
Returns
the constitutive model of type BASETYPE registered on the dataGroup with the key key.

Definition at line 983 of file PhysicsSolverBase.hpp.

◆ getConstitutiveName() [1/2]

template<typename CONSTITUTIVE_BASE_TYPE >
string geos::PhysicsSolverBase::getConstitutiveName ( ElementSubRegionBase const &  subRegion)
staticprotected

Get the Constitutive Name object.

Template Parameters
CONSTITUTIVE_BASE_TYPEthe base type of the constitutive model.
Parameters
subRegionthe element subregion on which the constitutive model is registered
Returns
the name name of the constitutive model of type CONSTITUTIVE_BASE_TYPE registered on the subregion.

Definition at line 1104 of file PhysicsSolverBase.hpp.

◆ getConstitutiveName() [2/2]

template<typename CONSTITUTIVE_BASE_TYPE >
string geos::PhysicsSolverBase::getConstitutiveName ( ParticleSubRegionBase const &  subRegion)
staticprotected

Get the Constitutive Name object.

Template Parameters
CONSTITUTIVE_BASE_TYPEthe base type of the constitutive model.
Parameters
subRegionthe particle subregion on which the constitutive model is registered
Returns
the name name of the constitutive model of type CONSTITUTIVE_BASE_TYPE registered on the subregion.

Definition at line 1118 of file PhysicsSolverBase.hpp.

◆ getDiscretizationName()

string geos::PhysicsSolverBase::getDiscretizationName ( ) const
inline

return the name of the discretization object

Returns
the name of the discretization object

Definition at line 874 of file PhysicsSolverBase.hpp.

◆ getDofManager() [1/2]

DofManager& geos::PhysicsSolverBase::getDofManager ( )
inline

Getter for degree-of-freedom manager.

Returns
a reference to degree-of-freedom manager of this solver

Definition at line 174 of file PhysicsSolverBase.hpp.

◆ getDofManager() [2/2]

DofManager const& geos::PhysicsSolverBase::getDofManager ( ) const
inline

Getter for degree-of-freedom manager.

Returns
a reference to degree-of-freedom manager of this solver

Definition at line 180 of file PhysicsSolverBase.hpp.

◆ getLinearSolverParameters() [1/2]

LinearSolverParameters& geos::PhysicsSolverBase::getLinearSolverParameters ( )
inline

accessor for the linear solver parameters.

Returns
the linear solver parameter list

Definition at line 770 of file PhysicsSolverBase.hpp.

◆ getLinearSolverParameters() [2/2]

LinearSolverParameters const& geos::PhysicsSolverBase::getLinearSolverParameters ( ) const
inline

const accessor for the linear solver parameters.

Returns
the linear solver parameter list

Definition at line 779 of file PhysicsSolverBase.hpp.

◆ getLocalMatrix() [1/2]

CRSMatrix< real64, globalIndex >& geos::PhysicsSolverBase::getLocalMatrix ( )
inline

Getter for local matrix.

Returns
a reference to linear system matrix of this solver

Definition at line 186 of file PhysicsSolverBase.hpp.

◆ getLocalMatrix() [2/2]

CRSMatrixView< real64 const, globalIndex const > geos::PhysicsSolverBase::getLocalMatrix ( ) const
inline

Getter for local matrix.

Returns
a reference to linear system matrix of this solver

Definition at line 192 of file PhysicsSolverBase.hpp.

◆ getMeshModificationTimestamp()

Timestamp geos::PhysicsSolverBase::getMeshModificationTimestamp ( DomainPartition domain) const

getter for the timestamp of the mesh modification on the mesh levels

Parameters
[in]domainthe domain partition (cannot be const because we use forDiscretizationsInMeshTargets inside the function)
Returns
the timestamp of the last time at which one of the mesh levels was modified

◆ getMeshTargets()

map< std::pair< string, string >, array1d< string > > const& geos::PhysicsSolverBase::getMeshTargets ( ) const
inline

accessor for m_meshTargets

Returns
reference to m_meshTargets

Definition at line 910 of file PhysicsSolverBase.hpp.

◆ getNonlinearSolverParameters() [1/2]

NonlinearSolverParameters& geos::PhysicsSolverBase::getNonlinearSolverParameters ( )
inline

accessor for the nonlinear solver parameters.

Returns
the nonlinear solver parameter list

Definition at line 788 of file PhysicsSolverBase.hpp.

◆ getNonlinearSolverParameters() [2/2]

NonlinearSolverParameters const& geos::PhysicsSolverBase::getNonlinearSolverParameters ( ) const
inline

const accessor for the nonlinear solver parameters.

Returns
the nonlinear solver parameter list

Definition at line 797 of file PhysicsSolverBase.hpp.

◆ getSolverStatistics() [1/2]

SolverStatistics& geos::PhysicsSolverBase::getSolverStatistics ( )
inline

accessor for the solver statistics.

Returns
reference to m_solverStatistics

Definition at line 890 of file PhysicsSolverBase.hpp.

◆ getSolverStatistics() [2/2]

SolverStatistics const& geos::PhysicsSolverBase::getSolverStatistics ( ) const
inline

const accessor for the solver statistics.

Returns
reference to m_solverStatistics

Definition at line 896 of file PhysicsSolverBase.hpp.

◆ getSystemMatrix() [1/2]

ParallelMatrix& geos::PhysicsSolverBase::getSystemMatrix ( )
inline

Getter for system matrix.

Returns
a reference to linear system matrix of this solver

Definition at line 138 of file PhysicsSolverBase.hpp.

◆ getSystemMatrix() [2/2]

ParallelMatrix const& geos::PhysicsSolverBase::getSystemMatrix ( ) const
inline

Getter for system rhs vector.

Returns
a reference to linear system right-hand side of this solver

Definition at line 144 of file PhysicsSolverBase.hpp.

◆ getSystemRhs() [1/2]

ParallelVector& geos::PhysicsSolverBase::getSystemRhs ( )
inline

Getter for system rhs vector.

Returns
a reference to linear system right-hand side of this solver

Definition at line 150 of file PhysicsSolverBase.hpp.

◆ getSystemRhs() [2/2]

ParallelVector const& geos::PhysicsSolverBase::getSystemRhs ( ) const
inline

Getter for system rhs vector.

Returns
a reference to linear system right-hand side of this solver

Definition at line 156 of file PhysicsSolverBase.hpp.

◆ getSystemSetupTimestamp()

Timestamp geos::PhysicsSolverBase::getSystemSetupTimestamp ( ) const
inline

getter for the timestamp of the system setup

Returns
the timestamp of the last time systemSetup was called

Definition at line 728 of file PhysicsSolverBase.hpp.

◆ getSystemSolution() [1/2]

ParallelVector& geos::PhysicsSolverBase::getSystemSolution ( )
inline

Getter for system solution vector.

Returns
a reference to solution vector of this solver

Definition at line 162 of file PhysicsSolverBase.hpp.

◆ getSystemSolution() [2/2]

ParallelVector const& geos::PhysicsSolverBase::getSystemSolution ( ) const
inline

Getter for system solution vector.

Returns
a reference to solution vector of this solver

Definition at line 168 of file PhysicsSolverBase.hpp.

◆ getTimestepRequest()

real64 geos::PhysicsSolverBase::getTimestepRequest ( )
inline

getter for the next timestep size

Returns
the next timestep size m_nextDt

Definition at line 657 of file PhysicsSolverBase.hpp.

◆ gravityVector()

R1Tensor const geos::PhysicsSolverBase::gravityVector ( ) const

return the value of the gravity vector specified in PhysicsSolverManager

Returns
the value of the gravity vector
Note
if the solver is instantiated outside of a simulation (for instance for a unit test) and therefore does not have a parent of type PhysicsSolverManager, this function returns {0.0,0.0,-9.81}

◆ registerCallback()

virtual bool geos::PhysicsSolverBase::registerCallback ( void *  func,
const std::type_info &  funcType 
)
finaloverridevirtual

function to set the value of m_assemblyCallback

Parameters
functhe function to set m_assemblyCallback to
funcTypethe type of the function
Returns
true if the function was successfully set, false otherwise

This is used to provide a callback function for to be called in the assembly step.

Reimplemented from geos::dataRepository::Group.

◆ registerDataOnMesh()

virtual void geos::PhysicsSolverBase::registerDataOnMesh ( Group MeshBodies)
overridevirtual

Register wrappers that contain data on the mesh objects.

Parameters
MeshBodiesthe group of mesh bodies

Reimplemented from geos::dataRepository::Group.

Reimplemented in geos::SurfaceGenerator, geos::EmbeddedSurfaceGenerator, geos::ElasticWaveEquationSEM, geos::ElasticFirstOrderWaveEquationSEM, geos::AcousticElasticWaveEquationSEM, geos::AcousticWaveEquationSEM, geos::AcousticVTIWaveEquationSEM, geos::AcousticFirstOrderWaveEquationSEM, geos::SolidMechanicsMPM, geos::PhaseFieldDamageFEM, geos::LaplaceBaseH1, geos::HydrofractureSolver< POROMECHANICS_SOLVER >, geos::SolidMechanicsLagrangeContactBubbleStab, geos::SolidMechanicsLagrangeContact, geos::WaveSolverBase, geos::SolidMechanicsLagrangianFEM, geos::SeismicityRate, geos::QuasiDynamicEQ, geos::WellSolverBase, geos::SinglePhaseWell, geos::CompositionalMultiphaseWell, geos::SinglePhaseHybridFVM, geos::SinglePhaseBase, geos::ReactiveCompositionalMultiphaseOBL, geos::ProppantTransport, geos::FlowSolverBase, geos::CompositionalMultiphaseHybridFVM, geos::CompositionalMultiphaseBase, geos::SinglePhasePoromechanicsEmbeddedFractures, geos::SolidMechanicsEmbeddedFractures, geos::SolidMechanicsAugmentedLagrangianContact, geos::PoromechanicsSolver< FLOW_SOLVER, MECHANICS_SOLVER >, geos::PoromechanicsSolver< SinglePhaseBase, SolidMechanicsLagrangianFEM >, geos::PoromechanicsSolver< CompositionalMultiphaseBase, SolidMechanicsLagrangianFEM >, geos::PoromechanicsSolver< SinglePhaseBase, SolidMechanicsEmbeddedFractures >, geos::PoromechanicsSolver< SinglePhaseBase, SolidMechanicsLagrangeContact >, and geos::ContactSolverBase.

◆ saveSequentialIterationState()

virtual void geos::PhysicsSolverBase::saveSequentialIterationState ( DomainPartition domain)
virtual

◆ setConstitutiveNamesCallSuper()

virtual void geos::PhysicsSolverBase::setConstitutiveNamesCallSuper ( ElementSubRegionBase subRegion) const
inlineprotectedvirtual

◆ setSystemSetupTimestamp()

void geos::PhysicsSolverBase::setSystemSetupTimestamp ( Timestamp  timestamp)
inline

set the timestamp of the system setup

Parameters
[in]timestampthe new timestamp of system setup

Definition at line 741 of file PhysicsSolverBase.hpp.

◆ targetRegionIndex()

localIndex geos::PhysicsSolverBase::targetRegionIndex ( string const &  regionName) const

Get position of a given region within solver's target region list.

Parameters
regionNamethe region name to find
Returns
index within target regions list

The documentation for this class was generated from the following file: