CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

TransformCoupleField for what is that used

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By ffbof

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 27, 2008, 16:34
Default I investigated that function i
  #1
New Member
 
Franz
Join Date: Mar 2009
Posts: 17
Rep Power: 17
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
Franz
fumiya likes this.
ffbof is offline   Reply With Quote

Old   April 18, 2019, 10:26
Default
  #2
New Member
 
Thang
Join Date: Apr 2019
Posts: 5
Rep Power: 7
thang_cegroup is on a distinguished road
I know its been a long time but do you figure out anything about this function ? If yes , could u explain it for me ? I need to understand this function to implement cyclic bc for block matrix in foam extend 4-0 since its not implemented for block matrix
thang_cegroup is offline   Reply With Quote

Reply


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 Off
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 01:37.