Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
dac9c7c4
Commit
dac9c7c4
authored
Dec 03, 2010
by
mattijs
Browse files
BUG: cyclicLduInterfaceField : nonuniform transformation
parent
4e6f2763
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/OpenFOAM/matrices/lduMatrix/lduAddressing/lduInterfaceFields/cyclicLduInterfaceField/cyclicLduInterfaceField.C
View file @
dac9c7c4
...
...
@@ -41,16 +41,20 @@ Foam::cyclicLduInterfaceField::~cyclicLduInterfaceField()
void
Foam
::
cyclicLduInterfaceField
::
transformCoupleField
(
scalarField
&
pn
f
,
scalarField
&
f
,
const
direction
cmpt
)
const
{
if
(
doTransform
())
{
scalar
forwardScale
=
pow
(
diag
(
forwardT
()[
0
]).
component
(
cmpt
),
rank
());
pnf
*=
forwardScale
;
if
(
forwardT
().
size
()
==
1
)
{
f
*=
pow
(
diag
(
forwardT
()[
0
]).
component
(
cmpt
),
rank
());
}
else
{
f
*=
pow
(
diag
(
forwardT
())().
component
(
cmpt
),
rank
());
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment