Skip to main content
Definition: Region.hpp (line 30) Provide a class for a System Coupling region. Participant can declare which regions can be used in the coupled analysis. Each region can declare its input variables and output variables. Input variables represent physical quantities whose values the participant expects System Coupling to provide. Output variables represent physical quantities whose values System Coupling expects the participant to provide.

Members

Private attributes

Variable m_name

Definition: Region.hpp (line 206)
Type: RegionName

Variable m_topology

Definition: Region.hpp (line 207)
Type: Topology

Variable m_regionDiscretizationType

Definition: Region.hpp (line 208)
Type: RegionDiscretizationType

Variable m_displayName

Definition: Region.hpp (line 209)
Type: DisplayName

Variable m_side0Regions

Definition: Region.hpp (line 211)
Type: std::vector< Region >

Variable m_side1Regions

Definition: Region.hpp (line 212)
Type: std::vector< Region >

Variable m_inputVariables

Definition: Region.hpp (line 214)
Type: std::vector< Variable >

Variable m_inputVarNameToIndex

Definition: Region.hpp (line 215)
Type: std::map< VariableName, std::size_t >

Variable m_outputVariables

Definition: Region.hpp (line 217)
Type: std::vector< Variable >

Variable m_outputVarNameToIndex

Definition: Region.hpp (line 218)
Type: std::map< VariableName, std::size_t >

Public functions

Function Region

Create region to be used in a coupled analysis. Parameters:
  • name: - Unique name for this region.
Display name will default to the same as name. Topology will default to surface. Region mesh type will default to mesh. Parameters: Return type: Referenced by:

Function Region

Create region to be used in a coupled analysis. Parameters:
  • name: - Unique name for this region.
  • topology: - region topology.
Display name will default to the same as name. Region mesh type will default to mesh. Parameters: Return type:

Function Region

Create region to be used in a coupled analysis. Parameters:
  • name: - Unique name for this region.
  • topology: - region topology.
  • displayName: - region display name.
Mesh type will default to mesh. Parameters: Return type:

Function Region

Create region to be used in a coupled analysis. Parameters:
  • name: - Unique name for this region.
  • topology: - region topology.
  • regionDiscretizationType: - region discretization type.
Display name will default to the same as name. Parameters: Return type:

Function Region

Create region to be used in a coupled analysis. Parameters:
  • name: - Unique name for this region.
  • topology: - region topology.
  • displayName: - region display name.
  • regionDiscretizationType: - region mesh type.
Parameters: Return type:

Function addInputVariable

Provide a method to add an input variable to the region. If this variable has already been added to the region as an input variable, then this call will have no effect. If a different variable with the same name has already been added to the region as an input variable, then a runtime error will be thrown. If a variable with the same name has already been added to the region as an output variable, then a runtime error will be thrown. If the variable name contains invalid characters, a runtime error will be thrown. If the region discretization type is point cloud, then the location of the variable added to this region is insignificant. Parameters:
  • variable: Variable whose values are provided by System Coupling and consumed by the participant.
Parameters: Return type: void

Function addOutputVariable

Provide a method to add an output variable to the region. If this variable has already been added to the region as an output variable, then this call will have no effect. If a different variable with the same name has already been added to the region as an output variable, then a runtime error will be thrown. If a variable with the same name has already been added to the region as an input variable, then a runtime error will be thrown. If the variable name contains invalid characters, a runtime error will be thrown. If the region discretization type is point cloud, then the location of the variable added to this region is insignificant. Parameters:
  • variable: Variable whose values are provided by the participant and consumed by System Coupling.
Parameters: Return type: void

Function getName

Get the region’s name. Returns: Return value is the region’s unique name (string). Return type: const RegionName &

Function getTopology

Get the region’s topology. Returns: Return value is the topology of this region. Return type: Topology References: Referenced by:

Function getDisplayName

Get the region’s display name. Returns: Return value is the display name of this region. Return type: const DisplayName & References: Referenced by:

Function getRegionDiscretizationType

Get the region’s mesh type. Returns: Return value is the mesh type of this region. Return type: RegionDiscretizationType References: Referenced by:

Function getInputVariable

Get the region’s input variable by name. Parameters:
  • name: Name of the desired input variable.
Returns: Return is the Variable object that was requested. Parameters: Return type: const Variable & References: Referenced by:

Function getOutputVariable

Get the region’s output variable by name. Parameters:
  • name: Name of the desired output variable.
Returns: Return is the Variable object that was requested. Parameters: Return type: const Variable & References: Referenced by:

Function getNumOutputVariables

Provide a method to get number of output variables for this region. Return type: std::size_t References: Referenced by:

Function getNumInputVariables

Provide a method to get number of input variables for this region. Return type: std::size_t References: Referenced by:

Function getOutputVariable

Get the region’s output variable by index. Parameters:
  • std::size_t index
Return type: const Variable & References:

Function getInputVariable

Get the region’s input variable by index. Parameters:
  • std::size_t index
Return type: const Variable & References: