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:
Sergio Ferraris
2011-06-09 16:36:55 +01:00
parent d6e24bb668
commit e06306b798

View File

@ -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);
}
}
}