StokesFlowProblemDefinition< DIM > Class Template Reference

#include <StokesFlowProblemDefinition.hpp>

Inherits ContinuumMechanicsProblemDefinition< DIM >.

Collaboration diagram for StokesFlowProblemDefinition< DIM >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 StokesFlowProblemDefinition (QuadraticMesh< DIM > &rMesh)
virtual ~StokesFlowProblemDefinition ()
void SetViscosity (double mu)
double GetViscosity ()
void SetZeroFlowNodes (std::vector< unsigned > &rZeroFlowNodes)
void SetPrescribedFlowNodes (std::vector< unsigned > &rPrescribedFlowNodes, std::vector< c_vector< double, DIM > > &rPrescribedFlow)
virtual void Validate ()

Private Attributes

double mMu

Detailed Description

template<unsigned DIM>
class StokesFlowProblemDefinition< DIM >

Class for defining everything needed for a solving the Stokes' Flow equations. This class mainly allows for the setting of the viscosity. It inherits from a class which allows for the setting of body force, density and various types of boundary condition.

Definition at line 41 of file StokesFlowProblemDefinition.hpp.


Constructor & Destructor Documentation

template<unsigned DIM>
StokesFlowProblemDefinition< DIM >::StokesFlowProblemDefinition ( QuadraticMesh< DIM > &  rMesh  )  [inline]

Constructor (initialises viscosity to -1 so can check if it is unset

Parameters:
rMesh Quadratic mesh

Definition at line 52 of file StokesFlowProblemDefinition.hpp.

template<unsigned DIM>
virtual StokesFlowProblemDefinition< DIM >::~StokesFlowProblemDefinition (  )  [inline, virtual]

Destructor

Definition at line 59 of file StokesFlowProblemDefinition.hpp.


Member Function Documentation

template<unsigned DIM>
double StokesFlowProblemDefinition< DIM >::GetViscosity (  )  [inline]

Get the viscosity. Exception thrown if this hasn't been set yet.

Definition at line 76 of file StokesFlowProblemDefinition.hpp.

References EXCEPTION, and StokesFlowProblemDefinition< DIM >::mMu.

template<unsigned DIM>
void StokesFlowProblemDefinition< DIM >::SetPrescribedFlowNodes ( std::vector< unsigned > &  rPrescribedFlowNodes,
std::vector< c_vector< double, DIM > > &  rPrescribedFlow 
) [inline]

Set Dirichlet boundary conditions: provide a set of nodes and the prescribed flow on these nodes.

If you only want to set one component of the flow for the node rPrescribedFlowNodes[i], set the other components of rPrescribedFlow[i] to be StokesFlowProblemDefinition::FREE.

Parameters:
rPrescribedFlowNodes vector of node indices.
rPrescribedFlow vector of prescribed flow values for these nodes.

Definition at line 105 of file StokesFlowProblemDefinition.hpp.

References ContinuumMechanicsProblemDefinition< DIM >::mDirichletNodes, and ContinuumMechanicsProblemDefinition< DIM >::mDirichletNodeValues.

template<unsigned DIM>
void StokesFlowProblemDefinition< DIM >::SetViscosity ( double  mu  )  [inline]

Set the viscosity

Parameters:
mu viscosity

Definition at line 67 of file StokesFlowProblemDefinition.hpp.

References StokesFlowProblemDefinition< DIM >::mMu.

template<unsigned DIM>
void StokesFlowProblemDefinition< DIM >::SetZeroFlowNodes ( std::vector< unsigned > &  rZeroFlowNodes  )  [inline]

Set nodes on which to apply the boundary condition (u,v,w)=0, ie flow = 0 in all components. Just calls SetZeroDirichletNodes() on the parent class.

Parameters:
rZeroFlowNodes Nodes on which to apply the boundary conditions

Definition at line 90 of file StokesFlowProblemDefinition.hpp.

References ContinuumMechanicsProblemDefinition< DIM >::SetZeroDirichletNodes().

template<unsigned DIM>
virtual void StokesFlowProblemDefinition< DIM >::Validate (  )  [inline, virtual]

Check all variables are set appropriately. Exceptions are thrown if any are not. Derived classes can override but should call this version as well.

Reimplemented from ContinuumMechanicsProblemDefinition< DIM >.

Definition at line 117 of file StokesFlowProblemDefinition.hpp.


Member Data Documentation

template<unsigned DIM>
double StokesFlowProblemDefinition< DIM >::mMu [private]

The documentation for this class was generated from the following file:
Generated on Thu Dec 22 13:07:52 2011 for Chaste by  doxygen 1.6.3