|
[Sponsors] |
October 8, 2008, 12:23 |
How to calculate a custom field
|
#1 | |
New Member
Ravi Ramalho
Join Date: Mar 2009
Location: Recife, PE, Brazil
Posts: 5
Rep Power: 17 |
Hi,
I'm new in OpenFOAM and didn't find anything clear enough explaining how to calculate a custom field. For example, how to calculate the vorticity? Q-criterion? u<sup>+</sup>, y<sup>+</sup>, wall shear stress? Skin friction coefficient? Pressure coefficient? etc. The user guide shows the foamCalc tool, but it doesn't seems to do the trick. Quote:
Ravi Ramalho |
||
October 8, 2008, 14:22 |
Go to the OpenFOAM application
|
#2 |
Member
Ville Tossavainen
Join Date: Mar 2009
Posts: 60
Rep Power: 17 |
Go to the OpenFOAM applications/utilities/postProcessing directory. You may be interested about the utilities that are under "stressFields", "velocityField" and "wall" directories. These utilities are precompiled and have the same names as the directories. Try them out in your case directory!
Anyone can correct me about this. I'm not sure if there are any utilities for skin friction/pressure coefficients in the OpenFOAM distribution. But you can call function objects in your /system/controlDict while the computation. Here are more discussion about it "http://www.cfd-online.com/OpenFOAM_D...es/1/8402.html". You can also compute the values aferhand using the "execFlowFunctionObjects" utility. |
|
October 8, 2008, 15:02 |
Hi Ville,
I found the OpenF
|
#3 |
New Member
Ravi Ramalho
Join Date: Mar 2009
Location: Recife, PE, Brazil
Posts: 5
Rep Power: 17 |
Hi Ville,
I found the OpenFOAM post-processing utilities on in the website. If someone have the same problem, here is the link: http://www.opencfd.co.uk/openfoam/indexhe23.html The execFlowFunctionObjects didn't work, or I don't know how to use it. I'll try a little bit. I've managed to calculate the skin friction, pressure coefficient and other stuff using the "calculator filter" in paraFoam. But how to save these field data to make things easier? Thanks in advance. Ravi Ramalho |
|
October 8, 2008, 15:57 |
Hi.
The best thing to do is
|
#4 |
Senior Member
Gavin Tabor
Join Date: Mar 2009
Posts: 181
Rep Power: 17 |
Hi.
The best thing to do is to roll your own code, so to speak. Copy one of the utilities to your own directory, change the entry in Make/files to read EXE = $(FOAM_USER_APPBIN)/new_file_Name and then edit the .C file to do whatever you want to do with the data. The utilities will provide you with a template to work from, showing you how to read in an existing field and manipulate it, then write it out. Compile the code using the command wmake, then run it on your case. Gavin |
|
November 16, 2012, 05:24 |
|
#5 |
Member
Suranga Dharmarathne
Join Date: Jan 2011
Location: TX, USA
Posts: 39
Rep Power: 15 |
@ Ravi,
I know the thread is very old. But if you remember could you please explain me how did you find skin friction coefficient. BR, Suranga. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[mesh manipulation] Importing Multiple Meshes | thomasnwalshiii | OpenFOAM Meshing & Mesh Conversion | 18 | December 19, 2015 19:57 |
Custom Field Functions | mtfl | FLUENT | 1 | November 23, 2015 13:32 |
"if statement" Custom Field Functions | asal | FLUENT | 1 | October 11, 2015 11:22 |
time step size in Custom Field Function | Tong | FLUENT | 0 | May 2, 2008 16:51 |
Custom Field Function Question | Jason | FLUENT | 0 | August 4, 2004 11:23 |