CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Running, Solving & CFD

TransformCoupleField for what is that used

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By ffbof

LinkBack Thread Tools Display Modes
Old   August 27, 2008, 15:34
Default I investigated that function i
New Member
Join Date: Mar 2009
Posts: 17
Rep Power: 10
ffbof is on a distinguished road
I investigated that function is called in the updateInterfaceMatrix method of the cyclicFvPatchField. Going deeper,
the implementation of the call can be found in the cyclicLduInterfaceField::transformCoupleField

there the following code confuses me a bit

scalar forwardScale =
pow(diag(forwardT()[0]).component(cmpt), rank());

1. forwardT is a 3x3 tensor which defines a rotation ok
2. diag gives back the diagonal of the forwardT()[0]
3. but what is forwardT()[0] ?
4. pow is clear
5. why is that scale multiplied with a scalar
for (label facei=0; facei<sizeby2; facei++)
pnf[facei] *= forwardScale;
pnf[facei + sizeby2] *= reverseScale;
My explanation for that is that the forwardScale is a kind of jacobi
matrix because the pnf[facei] is a derivative or a sum of derivatives.

But i feel not good with that vague explanation.

So does anybody know what is going on in that part of OpenFOAM ??
And is there literature which explains what the forwardScale is?

Thank you for reading
fumiya likes this.
ffbof is offline   Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

All times are GMT -4. The time now is 03:42.