GRINS-0.6.0
Public Member Functions | Private Attributes | List of all members
TurbulentBdyFunctionNu Class Reference
Inheritance diagram for TurbulentBdyFunctionNu:
Inheritance graph
[legend]
Collaboration diagram for TurbulentBdyFunctionNu:
Collaboration graph
[legend]

Public Member Functions

 TurbulentBdyFunctionNu (libMesh::MeshFunction *_turbulent_bc_values)
 
virtual libMesh::Number operator() (const libMesh::Point &, const libMesh::Real=0)
 
virtual void operator() (const libMesh::Point &p, const libMesh::Real t, libMesh::DenseVector< libMesh::Number > &output)
 
virtual libMesh::AutoPtr< libMesh::FunctionBase< libMesh::Number > > clone () const
 

Private Attributes

libMesh::MeshFunction * turbulent_bc_values
 

Detailed Description

Definition at line 125 of file test_turbulent_channel.C.

Constructor & Destructor Documentation

TurbulentBdyFunctionNu::TurbulentBdyFunctionNu ( libMesh::MeshFunction *  _turbulent_bc_values)
inline

Definition at line 128 of file test_turbulent_channel.C.

Referenced by clone().

128  :
129  turbulent_bc_values(_turbulent_bc_values)
130  { this->_initialized = true; }
libMesh::MeshFunction * turbulent_bc_values

Member Function Documentation

virtual libMesh::AutoPtr<libMesh::FunctionBase<libMesh::Number> > TurbulentBdyFunctionNu::clone ( ) const
inlinevirtual

Definition at line 161 of file test_turbulent_channel.C.

References turbulent_bc_values, and TurbulentBdyFunctionNu().

162  { return libMesh::AutoPtr<libMesh::FunctionBase<libMesh::Number> > (new TurbulentBdyFunctionNu(turbulent_bc_values)); }
libMesh::MeshFunction * turbulent_bc_values
TurbulentBdyFunctionNu(libMesh::MeshFunction *_turbulent_bc_values)
virtual libMesh::Number TurbulentBdyFunctionNu::operator() ( const libMesh::Point &  ,
const libMesh::Real  = 0 
)
inlinevirtual

Definition at line 132 of file test_turbulent_channel.C.

133  { libmesh_not_implemented(); }
virtual void TurbulentBdyFunctionNu::operator() ( const libMesh::Point &  p,
const libMesh::Real  t,
libMesh::DenseVector< libMesh::Number > &  output 
)
inlinevirtual

Definition at line 135 of file test_turbulent_channel.C.

References turbulent_bc_values.

138  {
139  output.resize(1);
140  output.zero();
141 
142  // Since the turbulent_bc_values object has a solution from a 1-d problem, we have to zero out the y coordinate of p
143  libMesh::Point p_copy(p);
144  // Also, the 1-d solution provided is on the domain [0, 1] on the x axis and we need to map this to the corresponding point on the y axis
145  p_copy(0) = p_copy(1);
146  p_copy(1)= 0.0;
147  // Also, the 1-d solution provided is actually a symmetry solution, so we have to make the following map
148  // x_GRINS < 0.5 => x_meshfunction = 2*x_GRINS , x_GRINS >= 0.5 => x_GRINS = 1 - x_GRINS, x_meshfunction = 2*x_GRINS
149  if(p_copy(0) > 0.5)
150  {
151  p_copy(0) = 1 - p_copy(0);
152  }
153  p_copy(0) = 2*p_copy(0);
154 
155  libMesh::DenseVector<libMesh::Number> u_nu_values;
156  turbulent_bc_values->operator()(p_copy, t, u_nu_values);
157 
158  output(0) = u_nu_values(1)/(2.0*21.995539);
159  }
libMesh::MeshFunction * turbulent_bc_values

Member Data Documentation

libMesh::MeshFunction* TurbulentBdyFunctionNu::turbulent_bc_values
private

Definition at line 165 of file test_turbulent_channel.C.

Referenced by clone(), and operator()().


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

Generated on Mon Jun 22 2015 21:32:21 for GRINS-0.6.0 by  doxygen 1.8.9.1