Commit e06306b7 authored by Sergio Ferraris's avatar Sergio Ferraris
Browse files

BUG: If refGrad and refValue are in the init fiel read them otherwise

set the BC to fixedValue using refValues as values
parent d6e24bb6
......@@ -104,12 +104,17 @@ maxwellSlipUFvPatchVectorField::maxwellSlipUFvPatchVectorField
vectorField("value", dict, p.size())
);
this->refValue() = vectorField("refValue", dict, p.size());
this->valueFraction() = scalarField("valueFraction", dict, p.size());
}
else
{
mixedFixedValueSlipFvPatchVectorField::evaluate();
if (dict.found("refValue") && dict.found("valueFraction"))
{
this->refValue() = vectorField("refValue", dict, p.size());
this->valueFraction() =
scalarField("valueFraction", dict, p.size());
}
else
{
this->refValue() = *this;
this->valueFraction() = scalar(1.0);
}
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment