|
[Sponsors] |
March 12, 2012, 09:45 |
calculate nusselt with swak4Foam
|
#1 |
Senior Member
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,267
Blog Entries: 1
Rep Power: 25 |
Hi dear friends
im interested to use swak4Foam to calculate Nusselt along a patch. is there any option to calculate patch gradient in swak4Foam? |
|
March 12, 2012, 10:40 |
|
#2 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
|
||
March 13, 2012, 07:55 |
|
#3 | |
Senior Member
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,267
Blog Entries: 1
Rep Power: 25 |
Quote:
|
||
March 13, 2012, 18:54 |
|
#4 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
If you want postprocess the boundary values in paraview then the best guess is to use the readFields-FO that comes with OpenFOAM to read a field that defines a groovyBC with that expression |
||
May 13, 2012, 02:32 |
|
#5 | ||
Senior Member
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,267
Blog Entries: 1
Rep Power: 25 |
Quote:
Quote:
|
|||
May 14, 2012, 18:17 |
|
#6 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
The "interesting" part is getting the patch field. Currently not sure how to do that in a functionObject. One way would be to write a field where the expression is "written" in a groovyBC in the initial timestep and then run the replayTransientBC-utility on it. The other would be to write a similar file but with a fixedValue-BC and then use funkySetBoundaryField to set the value-entry. The advantage of the second approach is that it works for the initial timestep as well. |
||
September 5, 2013, 12:37 |
|
#7 | |
Member
Join Date: Jun 2011
Posts: 80
Rep Power: 15 |
Hi!
Quote:
|
||
September 5, 2013, 15:19 |
|
#8 |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
No. I've explained it several times before: differential operators can only be calculated for the whole field at once and I don't want to trigger a calculation on thousands (millions) of cells just to update a few hundred faces, If a user wants that he should create that field with an expressionField-functionObject (curlU for instance) and then use it in his BC. Only downside is that this only happens at the end of the time-step. So for a solver that does several loops per timestep it might be inaccurate. But if it is for a patchExpression, swakExpression it shouldn't be a problem
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
|
September 6, 2013, 04:54 |
|
#9 | |
Member
Join Date: Jun 2011
Posts: 80
Rep Power: 15 |
Quote:
In fact, I meant calculate the curl(U) by using functionObjects. So, if I try to calculate the curl(U) just in the patch I get this error: Code:
--> FOAM FATAL ERROR: Parser Error for driver PatchValueExpressionDriver at "1.1-4" :"field curl not existing or of wrong type" "curl(U)" ^^^^ --| On the other hand, for a surface integral on a patch, always by using swakExpressions, should I use 'mag(Sf())' as 'dS' term as in the volume one I use 'vol()' as 'dV'?? Thank you very much! |
||
September 6, 2013, 07:43 |
|
#10 | ||
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
"expressionField-functionObject (curlU for instance) and then use it in his BC" (it may be a bit brief but as my time is limited I expect people to at least spend as much time reading the stuff as it took me to write it. Arrogant, I know. But that's me) Quote:
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
|||
Tags |
nusselt, patch gradient, swak4foam |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to calculate the Nusselt number after running wallHeatFlux utility | cfd@kgp | OpenFOAM Post-Processing | 0 | November 19, 2016 02:19 |
[OpenFOAM] Calculating and Plotting Nusselt Number with ParaView | RTom | ParaView | 8 | May 3, 2016 18:58 |
calculate avg nusselt no. for 2d convective heat transfer problem | saurabhg2014 | FLUENT | 2 | August 25, 2014 06:14 |
How to calculate Nusselt number | SeRGeiSarov | Main CFD Forum | 4 | May 6, 2009 02:57 |
how to calculate Nusselt number,in CFX? | prayskyer | CFX | 2 | June 19, 2006 02:24 |