OpenLB 1.8.1
Loading...
Searching...
No Matches
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 268 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 385 of file frameChangeF3D.hh.

386{
387 lengthY = ly;
388 lengthZ = ly;
389 maxVelocity = converter.getCharPhysVelocity();
390 this->getName() = "CirclePoiseuilleStrainRate3D";
391}
std::string & getName()
read and write access to name
Definition genericF.hh:51
AnalyticalF< 3, T, S > AnalyticalF3D

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 395 of file frameChangeF3D.hh.

396{
397 T y = input[1];
398 T z = input[2];
399
400 T DuDx = T();
401 T DuDy = (T) maxVelocity*(-2.*(y-(lengthY))/((lengthY)*(lengthY)));
402 T DuDz = (T) maxVelocity*(-2.*(z-(lengthZ))/((lengthZ)*(lengthZ)));
403 T DvDx = T();
404 T DvDy = T();
405 T DvDz = T();
406 T DwDx = T();
407 T DwDy = T();
408 T DwDz = T();
409
410 output[0] = (DuDx + DuDx)/2.;
411 output[1] = (DuDy + DvDx)/2.;
412 output[2] = (DuDz + DwDx)/2.;
413 output[3] = (DvDx + DuDy)/2.;
414 output[4] = (DvDy + DvDy)/2.;
415 output[5] = (DvDz + DwDy)/2.;
416 output[6] = (DwDx + DuDz)/2.;
417 output[7] = (DwDy + DvDz)/2.;
418 output[8] = (DwDz + DwDz)/2.;
419
420 return true;
421};

Member Data Documentation

◆ lengthY

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

Definition at line 270 of file frameChangeF3D.h.

◆ lengthZ

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

Definition at line 271 of file frameChangeF3D.h.

◆ maxVelocity

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

Definition at line 272 of file frameChangeF3D.h.


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