fixedShearStressFvPatchVectorField Class Reference

This boundary condition sets a user-defined shear stress constant and uniform across a given patch by using the expression: More...

Inheritance diagram for fixedShearStressFvPatchVectorField:
[legend]
Collaboration diagram for fixedShearStressFvPatchVectorField:
[legend]

Public Member Functions

 TypeName ("fixedShearStress")
 Runtime type information. More...
 
 fixedShearStressFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &)
 Construct from patch and internal field. More...
 
 fixedShearStressFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &, const dictionary &)
 Construct from patch, internal field and dictionary. More...
 
 fixedShearStressFvPatchVectorField (const fixedShearStressFvPatchVectorField &, const fvPatch &, const DimensionedField< vector, volMesh > &, const fvPatchFieldMapper &)
 Construct by mapping given. More...
 
 fixedShearStressFvPatchVectorField (const fixedShearStressFvPatchVectorField &)
 Construct as copy. More...
 
virtual tmp< fvPatchVectorFieldclone () const
 Construct and return a clone. More...
 
 fixedShearStressFvPatchVectorField (const fixedShearStressFvPatchVectorField &, const DimensionedField< vector, volMesh > &)
 Construct as copy setting internal field reference. More...
 
virtual tmp< fvPatchVectorFieldclone (const DimensionedField< vector, volMesh > &iF) const
 Construct and return a clone setting internal field reference. More...
 
virtual void updateCoeffs ()
 Update the coefficients associated with the patch field. More...
 
virtual void write (Ostream &) const
 Write. More...
 

Detailed Description

This boundary condition sets a user-defined shear stress constant and uniform across a given patch by using the expression:

\[ tau_0 = -\nu_{eff} \frac{dU}{dn} \]

Usage
Example of the boundary condition specification:
<patchName>
{
    // Mandatory entries
    type             fixedShearStress;
    tau              <vector>;

    // Inherited entries
    ...
}

where the entries mean:

Property Description Type Reqd Deflt
type Type name: fixedShearStress word yes -
tau Shear stress vector yes -

The inherited entries are elaborated in:

Source files

Definition at line 102 of file fixedShearStressFvPatchVectorField.H.

Constructor & Destructor Documentation

◆ fixedShearStressFvPatchVectorField() [1/5]

Construct from patch and internal field.

Definition at line 38 of file fixedShearStressFvPatchVectorField.C.

◆ fixedShearStressFvPatchVectorField() [2/5]

fixedShearStressFvPatchVectorField ( const fvPatch p,
const DimensionedField< vector, volMesh > &  iF,
const dictionary dict 
)

Construct from patch, internal field and dictionary.

Definition at line 49 of file fixedShearStressFvPatchVectorField.C.

References fvPatchField< Type >::operator=().

Here is the call graph for this function:

◆ fixedShearStressFvPatchVectorField() [3/5]

Construct by mapping given.

Definition at line 63 of file fixedShearStressFvPatchVectorField.C.

◆ fixedShearStressFvPatchVectorField() [4/5]

◆ fixedShearStressFvPatchVectorField() [5/5]

Construct as copy setting internal field reference.

Definition at line 86 of file fixedShearStressFvPatchVectorField.C.

Member Function Documentation

◆ TypeName()

TypeName ( "fixedShearStress"  )

Runtime type information.

◆ clone() [1/2]

virtual tmp< fvPatchVectorField > clone ( ) const
inlinevirtual

Construct and return a clone.

Definition at line 151 of file fixedShearStressFvPatchVectorField.H.

◆ clone() [2/2]

virtual tmp< fvPatchVectorField > clone ( const DimensionedField< vector, volMesh > &  iF) const
inlinevirtual

Construct and return a clone setting internal field reference.

Definition at line 167 of file fixedShearStressFvPatchVectorField.H.

◆ updateCoeffs()

void updateCoeffs ( )
virtual

Update the coefficients associated with the patch field.

Definition at line 99 of file fixedShearStressFvPatchVectorField.C.

References IOobject::groupName(), Foam::mag(), turbulenceModel::nuEff(), Foam::operator==(), and turbulenceModel::propertiesName.

Here is the call graph for this function:

◆ write()

void write ( Ostream os) const
virtual

Write.

Definition at line 129 of file fixedShearStressFvPatchVectorField.C.

References os(), ObukhovLength::write(), and Ostream::writeEntry().

Here is the call graph for this function:

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