OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

DragModel< CloudType > Class Template Reference

Templated drag model class. More...

Inheritance diagram for DragModel< CloudType >:
Collaboration diagram for DragModel< CloudType >:

List of all members.


Public Member Functions

 TypeName ("DragModel")
 Runtime type information.
 declareRunTimeSelectionTable (autoPtr, DragModel, dictionary,(const dictionary &dict, CloudType &owner),(dict, owner))
 Declare runtime constructor selection table.
 DragModel (const dictionary &dict, CloudType &owner)
 Construct from components.
virtual ~DragModel ()
 Destructor.
const CloudType & owner () const
 Return the owner cloud object.
const dictionary & dict () const
 Return the dictionary.
virtual bool active () const =0
 Flag to indicate whether model activates drag model.
virtual scalar Cd (const scalar Re) const =0
 Return drag coefficient.
scalar utc (const vector &Ur, const scalar d, const scalar rhoc, const scalar mu) const
 Return momentum transfer coefficient.

Static Public Member Functions

static autoPtr< DragModel
< CloudType > > 
New (const dictionary &dict, CloudType &cloud)
 Selector.

Detailed Description

template<class CloudType>
class Foam::DragModel< CloudType >

Templated drag model class.

Source files

Definition at line 48 of file DragModel.H.


Constructor & Destructor Documentation

DragModel ( const dictionary &  dict,
CloudType &  owner 
) [inline]

Construct from components.

Definition at line 24 of file DragModel.C.

~DragModel (  )  [inline, virtual]

Destructor.

Definition at line 37 of file DragModel.C.


Member Function Documentation

TypeName ( "DragModel< CloudType >"   ) 

Runtime type information.

declareRunTimeSelectionTable ( autoPtr  ,
DragModel< CloudType >  ,
dictionary  ,
(const dictionary &dict, CloudType &owner)  ,
(dict, owner)   
)

Declare runtime constructor selection table.

Foam::autoPtr< Foam::DragModel< CloudType > > New ( const dictionary &  dict,
CloudType &  cloud 
) [inline, static]

Selector.

Definition at line 24 of file NewDragModel.C.

References Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorIn, Foam::Info, dictionary::lookup(), and Foam::nl.

Here is the call graph for this function:

const CloudType & owner (  )  const [inline]

Return the owner cloud object.

Definition at line 44 of file DragModel.C.

const Foam::dictionary & dict (  )  const [inline]

Return the dictionary.

Definition at line 51 of file DragModel.C.

virtual bool active (  )  const [pure virtual]

Flag to indicate whether model activates drag model.

Implemented in NoDrag< CloudType >, and SphereDrag< CloudType >.

virtual scalar Cd ( const scalar  Re  )  const [pure virtual]

Return drag coefficient.

Implemented in NoDrag< CloudType >, and SphereDrag< CloudType >.

Foam::scalar utc ( const vector &  Ur,
const scalar  d,
const scalar  rhoc,
const scalar  mu 
) const [inline]

Return momentum transfer coefficient.

Drag force per unit particle surface area = utc(U - Up)

Definition at line 59 of file DragModel.C.


The documentation for this class was generated from the following files:
  • src/lagrangian/intermediate/submodels/Kinematic/DragModel/DragModel/DragModel.H
  • src/lagrangian/intermediate/submodels/Kinematic/DragModel/DragModel/DragModel.C
  • src/lagrangian/intermediate/submodels/Kinematic/DragModel/DragModel/NewDragModel.C
Copyright © 2000-2009 OpenCFD Ltd