mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: cyclicLduInterfaceField : nonuniform transformation
This commit is contained in:
@ -41,16 +41,20 @@ Foam::cyclicLduInterfaceField::~cyclicLduInterfaceField()
|
|||||||
|
|
||||||
void Foam::cyclicLduInterfaceField::transformCoupleField
|
void Foam::cyclicLduInterfaceField::transformCoupleField
|
||||||
(
|
(
|
||||||
scalarField& pnf,
|
scalarField& f,
|
||||||
const direction cmpt
|
const direction cmpt
|
||||||
) const
|
) const
|
||||||
{
|
{
|
||||||
if (doTransform())
|
if (doTransform())
|
||||||
{
|
{
|
||||||
scalar forwardScale =
|
if (forwardT().size() == 1)
|
||||||
pow(diag(forwardT()[0]).component(cmpt), rank());
|
{
|
||||||
|
f *= pow(diag(forwardT()[0]).component(cmpt), rank());
|
||||||
pnf *= forwardScale;
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
f *= pow(diag(forwardT())().component(cmpt), rank());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user