Go to the documentation of this file.
38 fixedValueFvPatchVectorField(
p, iF)
40 Info <<
"init boundary NO.1 constructor" <<
endl;
51 fixedValueFvPatchVectorField(
p, iF,
dict)
53 Info <<
"init boundary NO.2 constructor" <<
endl;
65 fixedValueFvPatchVectorField(
p, iF)
68 Info <<
"init boundary NO.3 constructor" <<
endl;
78 fixedValueFvPatchVectorField(mwvpvf)
80 Info <<
"init boundary NO.4 constructor" <<
endl;
90 fixedValueFvPatchVectorField(mwvpvf, iF)
93 Info <<
"init boundary NO.5 constructor" <<
endl;
103 Info <<
"calc the gradientINternalCoeffs for noslip" <<
endl;
104 Info <<
"============================" <<
endl;
110 impCoeffs[faceI][0] = scalar(1.0) -
n[faceI][0] *
n[faceI][0];
111 impCoeffs[faceI][1] = scalar(1.0) -
n[faceI][1] *
n[faceI][1];
112 impCoeffs[faceI][2] = scalar(1.0) -
n[faceI][2] *
n[faceI][2];
115 return -impCoeffs*this->patch().deltaCoeffs();
120 Info <<
"calc the gradientBoundaryCoeffs for noslip" <<
endl;
121 Info <<
"============================" <<
endl;
129 expCoeffs[faceI][0] = vt[faceI][0] +
130 n[faceI][0]*
n[faceI][1]*iF[faceI][1] +
131 n[faceI][0]*
n[faceI][2]*iF[faceI][2];
132 expCoeffs[faceI][1] = vt[faceI][1] +
133 n[faceI][0]*
n[faceI][1]*iF[faceI][0] +
134 n[faceI][1]*
n[faceI][2]*iF[faceI][2];
135 expCoeffs[faceI][2] = vt[faceI][2] +
136 n[faceI][0]*
n[faceI][2]*iF[faceI][0] +
137 n[faceI][1]*
n[faceI][2]*iF[faceI][1];
140 return expCoeffs*this->patch().deltaCoeffs();
148 this->writeEntry(
"value", os);
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
virtual void write(Ostream &) const
Write.
#define forAll(list, i)
Loop across all elements in list.
A class for managing temporary objects.
Ostream & endl(Ostream &os)
Add newline and flush stream.
virtual tmp< Field< vector > > gradientBoundaryCoeffs() const
Pre-declare SubField and related Field type.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
This boundary condition fixes the velocity to zero at walls.
A list of keyword definitions, which are a keyword followed by any number of values (e....
Macros for easy insertion into run-time selection tables.
makePatchTypeField(fvPatchVectorField, SRFFreestreamVelocityFvPatchVectorField)
improvedNoSlipFvPatchVectorField(const fvPatch &, const DimensionedField< vector, volMesh > &)
Construct from patch and internal field.
virtual void write(Ostream &) const
Write.
Traits class for primitives.
Foam::fvPatchFieldMapper.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
virtual tmp< Field< vector > > gradientInternalCoeffs() const
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...