mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: If refGrad and refValue are in the init fiel read them otherwise
set the BC to fixedValue using refValues as values
This commit is contained in:
@ -104,12 +104,17 @@ maxwellSlipUFvPatchVectorField::maxwellSlipUFvPatchVectorField
|
||||
vectorField("value", dict, p.size())
|
||||
);
|
||||
|
||||
if (dict.found("refValue") && dict.found("valueFraction"))
|
||||
{
|
||||
this->refValue() = vectorField("refValue", dict, p.size());
|
||||
this->valueFraction() = scalarField("valueFraction", dict, p.size());
|
||||
this->valueFraction() =
|
||||
scalarField("valueFraction", dict, p.size());
|
||||
}
|
||||
else
|
||||
{
|
||||
mixedFixedValueSlipFvPatchVectorField::evaluate();
|
||||
this->refValue() = *this;
|
||||
this->valueFraction() = scalar(1.0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user