Chaste
Build::
|
#include <DiscreteSource.hpp>
Public Member Functions | |
DiscreteSource () | |
virtual | ~DiscreteSource () |
virtual std::vector< units::quantity< unit::concentration_flow_rate > > | GetConstantInUMeshValues () |
virtual std::vector< units::quantity< unit::rate > > | GetLinearInUMeshValues () |
virtual std::vector< units::quantity< unit::concentration_flow_rate > > | GetConstantInURegularGridValues () |
virtual std::vector< units::quantity< unit::rate > > | GetLinearInURegularGridValues () |
void | SetLabelName (const std::string &rLabel) |
void | SetPoints (std::vector< DimensionalChastePoint< DIM > > points) |
void | SetRegularGrid (boost::shared_ptr< RegularGrid< DIM > > pRegularGrid) |
void | SetMesh (boost::shared_ptr< DiscreteContinuumMesh< DIM, DIM > > pMesh) |
void | SetConstantInUValue (units::quantity< unit::concentration_flow_rate > value) |
void | SetLinearInUValue (units::quantity< unit::rate > value) |
Static Public Member Functions | |
static boost::shared_ptr< DiscreteSource< DIM > > | Create () |
Protected Attributes | |
boost::shared_ptr< RegularGrid< DIM > > | mpRegularGrid |
boost::shared_ptr< DiscreteContinuumMesh< DIM, DIM > > | mpMesh |
std::vector< DimensionalChastePoint< DIM > > | mPoints |
std::string | mLabel |
units::quantity< unit::concentration_flow_rate > | mConstantInUValue |
units::quantity< unit::rate > | mLinearInUValue |
This class calculates the value of discrete sources at grid/mesh locations in continuum problems. A grid or mesh is set and the source values are calculated at each grid point or in each element. Child classes can be used to customize the way source strengths are calculated.
Definition at line 53 of file DiscreteSource.hpp.
DiscreteSource< DIM >::DiscreteSource | ( | ) |
Constructor
Definition at line 42 of file DiscreteSource.cpp.
|
virtual |
Destructor
Definition at line 54 of file DiscreteSource.cpp.
|
static |
Factory constructor method
Definition at line 60 of file DiscreteSource.cpp.
|
virtual |
Return the values of the source strengths sampled on the mesh elements
Reimplemented in CellStateDependentDiscreteSource< DIM >, SolutionDependentDiscreteSource< DIM >, VesselBasedDiscreteSource< DIM >, and CellBasedDiscreteSource< DIM >.
Definition at line 67 of file DiscreteSource.cpp.
References DiscreteSource< DIM >::mConstantInUValue, DiscreteSource< DIM >::mpMesh, and DiscreteSource< DIM >::mPoints.
|
virtual |
Return the values of the source strengths sampled on the regular grid
Reimplemented in CellStateDependentDiscreteSource< DIM >, SolutionDependentDiscreteSource< DIM >, VesselBasedDiscreteSource< DIM >, and CellBasedDiscreteSource< DIM >.
Definition at line 103 of file DiscreteSource.cpp.
References DiscreteSource< DIM >::mConstantInUValue, DiscreteSource< DIM >::mPoints, and DiscreteSource< DIM >::mpRegularGrid.
|
virtual |
Return the values of the source strengths sampled on the mesh elements
Reimplemented in CellStateDependentDiscreteSource< DIM >, SolutionDependentDiscreteSource< DIM >, VesselBasedDiscreteSource< DIM >, and CellBasedDiscreteSource< DIM >.
Definition at line 85 of file DiscreteSource.cpp.
References DiscreteSource< DIM >::mLinearInUValue, DiscreteSource< DIM >::mpMesh, and DiscreteSource< DIM >::mPoints.
|
virtual |
Return the values of the source strengths sampled on the regular grid
Reimplemented in CellStateDependentDiscreteSource< DIM >, SolutionDependentDiscreteSource< DIM >, VesselBasedDiscreteSource< DIM >, and CellBasedDiscreteSource< DIM >.
Definition at line 126 of file DiscreteSource.cpp.
References DiscreteSource< DIM >::mLinearInUValue, DiscreteSource< DIM >::mPoints, and DiscreteSource< DIM >::mpRegularGrid.
void DiscreteSource< DIM >::SetConstantInUValue | ( | units::quantity< unit::concentration_flow_rate > | value | ) |
Set the value of the source for PRESCRIBED type sources
value | the value of the source |
Definition at line 173 of file DiscreteSource.cpp.
References DiscreteSource< DIM >::mConstantInUValue.
void DiscreteSource< DIM >::SetLabelName | ( | const std::string & | rLabel | ) |
Set the name of the label used in LABEL type sources
rLabel | the label for the source strength value |
Definition at line 149 of file DiscreteSource.cpp.
References DiscreteSource< DIM >::mLabel.
void DiscreteSource< DIM >::SetLinearInUValue | ( | units::quantity< unit::rate > | value | ) |
Set the value of the source for PRESCRIBED type sources
value | the value of the source |
Definition at line 179 of file DiscreteSource.cpp.
References DiscreteSource< DIM >::mLinearInUValue.
void DiscreteSource< DIM >::SetMesh | ( | boost::shared_ptr< DiscreteContinuumMesh< DIM, DIM > > | pMesh | ) |
Set the finite element mesh
pMesh | the finite element mesh |
Definition at line 161 of file DiscreteSource.cpp.
References DiscreteSource< DIM >::mpMesh.
void DiscreteSource< DIM >::SetPoints | ( | std::vector< DimensionalChastePoint< DIM > > | points | ) |
Set the points for POINT type sources
points | the point locations for POINT type sources |
Definition at line 155 of file DiscreteSource.cpp.
References DiscreteSource< DIM >::mPoints.
void DiscreteSource< DIM >::SetRegularGrid | ( | boost::shared_ptr< RegularGrid< DIM > > | pRegularGrid | ) |
Set the regular grid
pRegularGrid | the regular grid |
Definition at line 167 of file DiscreteSource.cpp.
References DiscreteSource< DIM >::mpRegularGrid.
|
protected |
The prescribed value of the source strength. Used for PRESCRIBED source strengths.
Definition at line 82 of file DiscreteSource.hpp.
Referenced by DiscreteSource< DIM >::GetConstantInUMeshValues(), CellStateDependentDiscreteSource< DIM >::GetConstantInURegularGridValues(), DiscreteSource< DIM >::GetConstantInURegularGridValues(), and DiscreteSource< DIM >::SetConstantInUValue().
|
protected |
A label specifying the array name from which to obtain the source strength. Used for LABEL source strengths.
Definition at line 77 of file DiscreteSource.hpp.
Referenced by CellStateDependentDiscreteSource< DIM >::GetConstantInURegularGridValues(), and DiscreteSource< DIM >::SetLabelName().
|
protected |
The prescribed value of the source strength. Used for PRESCRIBED source strengths.
Definition at line 87 of file DiscreteSource.hpp.
Referenced by DiscreteSource< DIM >::GetLinearInUMeshValues(), DiscreteSource< DIM >::GetLinearInURegularGridValues(), and DiscreteSource< DIM >::SetLinearInUValue().
|
protected |
The mesh for the finite element solver
Definition at line 66 of file DiscreteSource.hpp.
Referenced by CellBasedDiscreteSource< DIM >::GetConstantInUMeshValues(), VesselBasedDiscreteSource< DIM >::GetConstantInUMeshValues(), SolutionDependentDiscreteSource< DIM >::GetConstantInUMeshValues(), DiscreteSource< DIM >::GetConstantInUMeshValues(), CellBasedDiscreteSource< DIM >::GetLinearInUMeshValues(), VesselBasedDiscreteSource< DIM >::GetLinearInUMeshValues(), SolutionDependentDiscreteSource< DIM >::GetLinearInUMeshValues(), DiscreteSource< DIM >::GetLinearInUMeshValues(), and DiscreteSource< DIM >::SetMesh().
|
protected |
Locations for POINT type sources
Definition at line 71 of file DiscreteSource.hpp.
Referenced by DiscreteSource< DIM >::GetConstantInUMeshValues(), DiscreteSource< DIM >::GetConstantInURegularGridValues(), DiscreteSource< DIM >::GetLinearInUMeshValues(), DiscreteSource< DIM >::GetLinearInURegularGridValues(), and DiscreteSource< DIM >::SetPoints().
|
protected |
The grid for solvers using regular grids
Definition at line 61 of file DiscreteSource.hpp.
Referenced by CellBasedDiscreteSource< DIM >::GetConstantInURegularGridValues(), VesselBasedDiscreteSource< DIM >::GetConstantInURegularGridValues(), SolutionDependentDiscreteSource< DIM >::GetConstantInURegularGridValues(), CellStateDependentDiscreteSource< DIM >::GetConstantInURegularGridValues(), DiscreteSource< DIM >::GetConstantInURegularGridValues(), CellBasedDiscreteSource< DIM >::GetLinearInURegularGridValues(), VesselBasedDiscreteSource< DIM >::GetLinearInURegularGridValues(), CellStateDependentDiscreteSource< DIM >::GetLinearInURegularGridValues(), SolutionDependentDiscreteSource< DIM >::GetLinearInURegularGridValues(), DiscreteSource< DIM >::GetLinearInURegularGridValues(), and DiscreteSource< DIM >::SetRegularGrid().