OpenLB 1.7
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
olb::CirclePoiseuilleStrainRate3D< T, DESCRIPTOR > Class Template Reference

Strain rate for util::round pipes and laminar flow of a Newtonian fluid. More...

#include <frameChangeF3D.h>

+ Inheritance diagram for olb::CirclePoiseuilleStrainRate3D< T, DESCRIPTOR >:
+ Collaboration diagram for olb::CirclePoiseuilleStrainRate3D< T, DESCRIPTOR >:

Public Member Functions

 CirclePoiseuilleStrainRate3D (UnitConverter< T, DESCRIPTOR > const &converter, T ly)
 
bool operator() (T output[], const T input[]) override
 
- Public Member Functions inherited from olb::AnalyticalF< D, T, S >
AnalyticalF< D, T, S > & operator- (AnalyticalF< D, T, S > &rhs)
 
AnalyticalF< D, T, S > & operator+ (AnalyticalF< D, T, S > &rhs)
 
AnalyticalF< D, T, S > & operator* (AnalyticalF< D, T, S > &rhs)
 
AnalyticalF< D, T, S > & operator/ (AnalyticalF< D, T, S > &rhs)
 
- Public Member Functions inherited from olb::GenericF< T, S >
virtual ~GenericF ()=default
 
int getSourceDim () const
 read only access to member variable _m
 
int getTargetDim () const
 read only access to member variable _n
 
std::string & getName ()
 read and write access to name
 
std::string const & getName () const
 read only access to name
 
virtual bool operator() (T output[], const S input[])=0
 has to be implemented for 'every' derived class
 
bool operator() (T output[])
 wrapper that call the pure virtual operator() (T output[], const S input[]) from above
 
bool operator() (T output[], S input0)
 
bool operator() (T output[], S input0, S input1)
 
bool operator() (T output[], S input0, S input1, S input2)
 
bool operator() (T output[], S input0, S input1, S input2, S input3)
 

Protected Attributes

lengthY
 
lengthZ
 
maxVelocity
 

Additional Inherited Members

- Public Types inherited from olb::AnalyticalF< D, T, S >
using identity_functor_type = AnalyticalIdentity<D,T,S>
 
- Public Types inherited from olb::GenericF< T, S >
using targetType = T
 
using sourceType = S
 
- Public Attributes inherited from olb::GenericF< T, S >
std::shared_ptr< GenericF< T, S > > _ptrCalcC
 memory management, frees resouces (calcClass)
 
- Static Public Attributes inherited from olb::AnalyticalF< D, T, S >
static constexpr unsigned dim = D
 
- Protected Member Functions inherited from olb::AnalyticalF< D, T, S >
 AnalyticalF (int n)
 
- Protected Member Functions inherited from olb::GenericF< T, S >
 GenericF (int targetDim, int sourceDim)
 

Detailed Description

template<typename T, typename DESCRIPTOR>
class olb::CirclePoiseuilleStrainRate3D< T, DESCRIPTOR >

Strain rate for util::round pipes and laminar flow of a Newtonian fluid.

Definition at line 229 of file frameChangeF3D.h.

Constructor & Destructor Documentation

◆ CirclePoiseuilleStrainRate3D()

template<typename T , typename DESCRIPTOR >
olb::CirclePoiseuilleStrainRate3D< T, DESCRIPTOR >::CirclePoiseuilleStrainRate3D ( UnitConverter< T, DESCRIPTOR > const & converter,
T ly )

Definition at line 359 of file frameChangeF3D.hh.

359 : AnalyticalF3D<T,T>(9)
360{
361 lengthY = ly;
362 lengthZ = ly;
363 maxVelocity = converter.getCharPhysVelocity();
364 this->getName() = "CirclePoiseuilleStrainRate3D";
365}
std::string & getName()
read and write access to name
Definition genericF.hh:51

References olb::UnitConverter< T, DESCRIPTOR >::getCharPhysVelocity(), olb::GenericF< T, S >::getName(), olb::CirclePoiseuilleStrainRate3D< T, DESCRIPTOR >::lengthY, olb::CirclePoiseuilleStrainRate3D< T, DESCRIPTOR >::lengthZ, and olb::CirclePoiseuilleStrainRate3D< T, DESCRIPTOR >::maxVelocity.

+ Here is the call graph for this function:

Member Function Documentation

◆ operator()()

template<typename T , typename DESCRIPTOR >
bool olb::CirclePoiseuilleStrainRate3D< T, DESCRIPTOR >::operator() ( T output[],
const T input[] )
override

Definition at line 369 of file frameChangeF3D.hh.

370{
371 T y = input[1];
372 T z = input[2];
373
374 T DuDx = T();
375 T DuDy = (T) maxVelocity*(-2.*(y-(lengthY))/((lengthY)*(lengthY)));
376 T DuDz = (T) maxVelocity*(-2.*(z-(lengthZ))/((lengthZ)*(lengthZ)));
377 T DvDx = T();
378 T DvDy = T();
379 T DvDz = T();
380 T DwDx = T();
381 T DwDy = T();
382 T DwDz = T();
383
384 output[0] = (DuDx + DuDx)/2.;
385 output[1] = (DuDy + DvDx)/2.;
386 output[2] = (DuDz + DwDx)/2.;
387 output[3] = (DvDx + DuDy)/2.;
388 output[4] = (DvDy + DvDy)/2.;
389 output[5] = (DvDz + DwDy)/2.;
390 output[6] = (DwDx + DuDz)/2.;
391 output[7] = (DwDy + DvDz)/2.;
392 output[8] = (DwDz + DwDz)/2.;
393
394 return true;
395};

Member Data Documentation

◆ lengthY

template<typename T , typename DESCRIPTOR >
T olb::CirclePoiseuilleStrainRate3D< T, DESCRIPTOR >::lengthY
protected

Definition at line 231 of file frameChangeF3D.h.

◆ lengthZ

template<typename T , typename DESCRIPTOR >
T olb::CirclePoiseuilleStrainRate3D< T, DESCRIPTOR >::lengthZ
protected

Definition at line 232 of file frameChangeF3D.h.

◆ maxVelocity

template<typename T , typename DESCRIPTOR >
T olb::CirclePoiseuilleStrainRate3D< T, DESCRIPTOR >::maxVelocity
protected

Definition at line 233 of file frameChangeF3D.h.


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