Chaste  Build::
SolutionDependentDiscreteSource< DIM > Class Template Reference

#include <SolutionDependentDiscreteSource.hpp>

+ Inheritance diagram for SolutionDependentDiscreteSource< DIM >:
+ Collaboration diagram for SolutionDependentDiscreteSource< DIM >:

Public Member Functions

 SolutionDependentDiscreteSource ()
 
virtual ~SolutionDependentDiscreteSource ()
 
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 SetSolution (std::vector< units::quantity< unit::concentration > > solution)
 
void SetConstantInUSinkRatePerSolutionQuantity (units::quantity< unit::rate > value)
 
void SetLinearInUSinkRatePerSolutionQuantity (units::quantity< unit::rate_per_concentration > value)
 
- Public Member Functions inherited from DiscreteSource< DIM >
 DiscreteSource ()
 
virtual ~DiscreteSource ()
 
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< SolutionDependentDiscreteSource< DIM > > Create ()
 
- Static Public Member Functions inherited from DiscreteSource< DIM >
static boost::shared_ptr< DiscreteSource< DIM > > Create ()
 

Protected Attributes

std::vector< units::quantity< unit::concentration > > mpSolution
 
units::quantity< unit::rate > mConstantInUSinkRatePerSolutionQuantity
 
units::quantity< unit::rate_per_concentration > mLinearInUSinkRatePerSolutionQuantity
 
- Protected Attributes inherited from DiscreteSource< DIM >
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
 

Detailed Description

template<unsigned DIM>
class SolutionDependentDiscreteSource< DIM >

This class calculates the value of discrete sources based on a solution interpolated on another grid or mesh.

Definition at line 53 of file SolutionDependentDiscreteSource.hpp.

Constructor & Destructor Documentation

Constructor

Definition at line 42 of file SolutionDependentDiscreteSource.cpp.

template<unsigned DIM>
SolutionDependentDiscreteSource< DIM >::~SolutionDependentDiscreteSource ( )
virtual

Destructor

Definition at line 52 of file SolutionDependentDiscreteSource.cpp.

Member Function Documentation

template<unsigned DIM>
boost::shared_ptr< SolutionDependentDiscreteSource< DIM > > SolutionDependentDiscreteSource< DIM >::Create ( )
static

Factory constructor method

Returns
a pointer to an instance of the class

Definition at line 58 of file SolutionDependentDiscreteSource.cpp.

template<unsigned DIM>
std::vector< units::quantity< unit::concentration_flow_rate > > SolutionDependentDiscreteSource< DIM >::GetConstantInUMeshValues ( )
virtual

Return the values of the source strengths sampled on the mesh elements

Returns
a vector of source strengths

Reimplemented from DiscreteSource< DIM >.

Definition at line 65 of file SolutionDependentDiscreteSource.cpp.

References SolutionDependentDiscreteSource< DIM >::mConstantInUSinkRatePerSolutionQuantity, DiscreteSource< DIM >::mpMesh, and SolutionDependentDiscreteSource< DIM >::mpSolution.

template<unsigned DIM>
std::vector< units::quantity< unit::concentration_flow_rate > > SolutionDependentDiscreteSource< DIM >::GetConstantInURegularGridValues ( )
virtual

Return the values of the source strengths sampled on the regular grid

Returns
a vector of source strengths

Reimplemented from DiscreteSource< DIM >.

Definition at line 105 of file SolutionDependentDiscreteSource.cpp.

References SolutionDependentDiscreteSource< DIM >::mConstantInUSinkRatePerSolutionQuantity, DiscreteSource< DIM >::mpRegularGrid, and SolutionDependentDiscreteSource< DIM >::mpSolution.

template<unsigned DIM>
std::vector< units::quantity< unit::rate > > SolutionDependentDiscreteSource< DIM >::GetLinearInUMeshValues ( )
virtual

Return the values of the source strengths sampled on the mesh elements

Returns
a vector of source strengths

Reimplemented from DiscreteSource< DIM >.

Definition at line 85 of file SolutionDependentDiscreteSource.cpp.

References SolutionDependentDiscreteSource< DIM >::mLinearInUSinkRatePerSolutionQuantity, DiscreteSource< DIM >::mpMesh, and SolutionDependentDiscreteSource< DIM >::mpSolution.

template<unsigned DIM>
std::vector< units::quantity< unit::rate > > SolutionDependentDiscreteSource< DIM >::GetLinearInURegularGridValues ( )
virtual

Return the values of the source strengths sampled on the regular grid

Returns
a vector of source strengths

Reimplemented from DiscreteSource< DIM >.

Definition at line 120 of file SolutionDependentDiscreteSource.cpp.

References SolutionDependentDiscreteSource< DIM >::mLinearInUSinkRatePerSolutionQuantity, DiscreteSource< DIM >::mpRegularGrid, and SolutionDependentDiscreteSource< DIM >::mpSolution.

template<unsigned DIM>
void SolutionDependentDiscreteSource< DIM >::SetConstantInUSinkRatePerSolutionQuantity ( units::quantity< unit::rate >  value)

Set the value of the source for PRESCRIBED type sources

Parameters
valuethe value of the source

Definition at line 141 of file SolutionDependentDiscreteSource.cpp.

References SolutionDependentDiscreteSource< DIM >::mConstantInUSinkRatePerSolutionQuantity.

template<unsigned DIM>
void SolutionDependentDiscreteSource< DIM >::SetLinearInUSinkRatePerSolutionQuantity ( units::quantity< unit::rate_per_concentration >  value)

Set the value of the source for PRESCRIBED type sources

Parameters
valuethe value of the source

Definition at line 147 of file SolutionDependentDiscreteSource.cpp.

References SolutionDependentDiscreteSource< DIM >::mLinearInUSinkRatePerSolutionQuantity.

template<unsigned DIM>
void SolutionDependentDiscreteSource< DIM >::SetSolution ( std::vector< units::quantity< unit::concentration > >  solution)

Set the sampled field from which to obtain a solution for SOLUTION type sources

Parameters
solutionthe field from which to use solution values

Definition at line 135 of file SolutionDependentDiscreteSource.cpp.

References SolutionDependentDiscreteSource< DIM >::mpSolution.

Referenced by MicrovesselSolver< DIM >::Increment().

Member Data Documentation

template<unsigned DIM>
units::quantity<unit::rate> SolutionDependentDiscreteSource< DIM >::mConstantInUSinkRatePerSolutionQuantity
protected
template<unsigned DIM>
units::quantity<unit::rate_per_concentration> SolutionDependentDiscreteSource< DIM >::mLinearInUSinkRatePerSolutionQuantity
protected

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