48 fixedValueFvPatchVectorField(p, iF),
49 phiName_(
"undefinedPhi")
62 fixedValueFvPatchVectorField(ptf, p, iF, mapper),
63 phiName_(ptf.phiName_)
65 if (!isA<directMappedPatchBase>(this->patch().patch()))
69 "directMappedVelocityFluxFixedValueFvPatchField::"
70 "directMappedVelocityFluxFixedValueFvPatchField\n"
72 " const directMappedVelocityFluxFixedValueFvPatchField&,\n"
74 " const DimensionedField<vector, volMesh>&,\n"
75 " const fvPatchFieldMapper&\n"
77 ) <<
"\n patch type '" << p.type()
78 <<
"' not type '" << directMappedPatchBase::typeName <<
"'"
79 <<
"\n for patch " << p.
name()
80 <<
" of field " << dimensionedInternalField().name()
81 <<
" in file " << dimensionedInternalField().objectPath()
95 fixedValueFvPatchVectorField(p, iF, dict),
96 phiName_(dict.
lookup(
"phi"))
98 if (!isA<directMappedPatchBase>(this->patch().patch()))
102 "directMappedVelocityFluxFixedValueFvPatchField::"
103 "directMappedVelocityFluxFixedValueFvPatchField\n"
105 " const fvPatch& p,\n"
106 " const DimensionedField<vector, volMesh>& iF,\n"
107 " const dictionary& dict\n"
109 ) <<
"\n patch type '" << p.type()
110 <<
"' not type '" << directMappedPatchBase::typeName <<
"'"
111 <<
"\n for patch " << p.
name()
112 <<
" of field " << dimensionedInternalField().name()
113 <<
" in file " << dimensionedInternalField().objectPath()
125 fixedValueFvPatchVectorField(ptf),
126 phiName_(ptf.phiName_)
137 fixedValueFvPatchVectorField(ptf, iF),
138 phiName_(ptf.phiName_)
154 directMappedVelocityFluxFixedValueFvPatchField::patch().patch()
158 const word& fieldName = dimensionedInternalField().name();
182 const scalarField& phipf = phiField.boundaryField()[patchI];
188 allUValues[faceStart + faceI] = Upf[faceI];
189 allPhiValues[faceStart + faceI] = phipf[faceI];
197 distMap.constructSize(),
199 distMap.constructMap(),
208 distMap.constructSize(),
210 distMap.constructMap(),
213 newPhiValues.
transfer(allPhiValues);
230 distMap.constructSize(),
232 distMap.constructMap(),
236 newPhiValues = phiField.boundaryField()[nbrPatchID];
242 distMap.constructSize(),
244 distMap.constructMap(),
254 "directMappedVelocityFluxFixedValueFvPatchField::updateCoeffs()"
255 )<<
"patch can only be used in NEARESTPATCHFACE or NEARESTFACE "
261 phiField.boundaryField()[patch().index()] == newPhiValues;
271 this->writeEntry(
"value", os);