FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

StandardWallInteraction< CloudType > Class Template Reference

Wall interaction model. Three choices:

  • rebound - optionally specify elasticity and resitution coefficients
  • stick - particles assigined zero velocity
  • escape - remove particle from the domain.
More...

#include <lagrangianIntermediate/StandardWallInteraction.H>


Detailed Description

template<class CloudType>
class Foam::StandardWallInteraction< CloudType >

Wall interaction model. Three choices:

  • rebound - optionally specify elasticity and resitution coefficients
  • stick - particles assigined zero velocity
  • escape - remove particle from the domain.

Example usage:

StandardWallInteractionCoeffs { typerebound; // stick, escape e 1; // optional - elasticity coeff mu 0; // optional - restitution coeff }

Definition at line 58 of file StandardWallInteraction.H.

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

List of all members.

Public Member Functions

 TypeName ("StandardWallInteraction")
 Runtime type information.
 StandardWallInteraction (const dictionary &dict, CloudType &cloud)
 Construct from dictionary.
virtual  ~StandardWallInteraction ()
 Destructor.
virtual bool  active () const
 Flag to indicate whether model activates patch interaction model.
virtual bool  correct (const polyPatch &pp, const label faceId, bool &keepParticle, bool &active, vector &U) const
 Apply velocity correction.

Protected Attributes

PatchInteractionModel
< CloudType >::interactionType  
interactionType_
 Interaction type.
scalar  e_
 Elasticity coefficient.
scalar  mu_
 Restitution coefficient.

Constructor & Destructor Documentation

StandardWallInteraction ( const dictionary &   dict,
CloudType &   cloud  
)

Construct from dictionary.

Definition at line 32 of file StandardWallInteraction.C.

References Foam::endl(), Foam::exit(), Foam::FatalError, and FatalErrorIn.

~StandardWallInteraction (  ) [virtual]

Destructor.

Definition at line 82 of file StandardWallInteraction.C.


Member Function Documentation

TypeName ( "StandardWallInteraction< CloudType >"    )

Runtime type information.

bool active (  ) const [virtual]

Flag to indicate whether model activates patch interaction model.

Implements PatchInteractionModel< CloudType >.

Definition at line 89 of file StandardWallInteraction.C.

bool correct ( const polyPatch &   pp,
const label   faceId,
bool &   keepParticle,
bool &   active,
vector &   U  
) const [virtual]

Apply velocity correction.

Returns true if particle remains in same cell

Implements PatchInteractionModel< CloudType >.

Definition at line 97 of file StandardWallInteraction.C.

References Foam::abort(), Foam::endl(), polyPatch::faceAreas(), Foam::FatalError, FatalErrorIn, Foam::mag(), and polyPatch::whichFace().


Member Data Documentation

Interaction type.

Definition at line 68 of file StandardWallInteraction.H.

scalar e_ [protected]

Elasticity coefficient.

Definition at line 71 of file StandardWallInteraction.H.

scalar mu_ [protected]

Restitution coefficient.

Definition at line 74 of file StandardWallInteraction.H.


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