mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: solution: allow Function1 with database
This commit is contained in:
@ -106,7 +106,8 @@ void Foam::solution::read(const dictionary& dict)
|
|||||||
fieldRelaxDefault_ = Function1<scalar>::NewIfPresent
|
fieldRelaxDefault_ = Function1<scalar>::NewIfPresent
|
||||||
(
|
(
|
||||||
"default",
|
"default",
|
||||||
fieldRelaxDict_
|
fieldRelaxDict_,
|
||||||
|
&db()
|
||||||
);
|
);
|
||||||
if (!fieldRelaxDefault_)
|
if (!fieldRelaxDefault_)
|
||||||
{
|
{
|
||||||
@ -119,7 +120,8 @@ void Foam::solution::read(const dictionary& dict)
|
|||||||
eqnRelaxDefault_ = Function1<scalar>::NewIfPresent
|
eqnRelaxDefault_ = Function1<scalar>::NewIfPresent
|
||||||
(
|
(
|
||||||
"default",
|
"default",
|
||||||
eqnRelaxDict_
|
eqnRelaxDict_,
|
||||||
|
&db()
|
||||||
);
|
);
|
||||||
if (!eqnRelaxDefault_)
|
if (!eqnRelaxDefault_)
|
||||||
{
|
{
|
||||||
@ -341,7 +343,8 @@ bool Foam::solution::relaxField(const word& name, scalar& factor) const
|
|||||||
fieldRelaxCache_, // cache
|
fieldRelaxCache_, // cache
|
||||||
name,
|
name,
|
||||||
fieldRelaxDict_,
|
fieldRelaxDict_,
|
||||||
keyType::REGEX
|
keyType::REGEX,
|
||||||
|
&db()
|
||||||
)().value(time().timeOutputValue());
|
)().value(time().timeOutputValue());
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
@ -368,7 +371,8 @@ bool Foam::solution::relaxEquation(const word& name, scalar& factor) const
|
|||||||
eqnRelaxCache_, // cache
|
eqnRelaxCache_, // cache
|
||||||
name,
|
name,
|
||||||
eqnRelaxDict_,
|
eqnRelaxDict_,
|
||||||
keyType::REGEX
|
keyType::REGEX,
|
||||||
|
&db()
|
||||||
)().value(time().timeOutputValue());
|
)().value(time().timeOutputValue());
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user