CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Post-Processing

Standard utilities, noob question,

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 22, 2017, 09:24
Default Standard utilities, noob question,
  #1
New Member
 
Marius Lang
Join Date: Sep 2017
Posts: 19
Rep Power: 8
Ursmooth is on a distinguished road
Hello

How do you run Standard utilities in openFoam? I have created a flow over a cylinder and I want to find its separation point, this can be found when the gradient of the boundary layer is zero, and I therefore want to compute wallGradU, but how do you run wallGradU, I tried to type icoFoam -postProcess -func WallGradU, but got error message (see picture). Do you need to implement it as a function in controlDict? I also tried this but got a error message as well
Attached Images
File Type: jpg Screen Shot 2017-09-22 at 15.14.43.jpg (126.6 KB, 15 views)
Ursmooth is offline   Reply With Quote

Old   September 22, 2017, 09:46
Default
  #2
New Member
 
Join Date: Apr 2016
Posts: 21
Rep Power: 10
robob is on a distinguished road
As you can see on the output (invalid arguments) icofoam has no option postprocess.
postprocess is an own openfoam utility.
See the tutorial https://cfd.direct/openfoam/user-gui...#x5-130002.1.4
and https://cfd.direct/openfoam/user-gui...31-2400006.2.3
robob is offline   Reply With Quote

Old   September 22, 2017, 09:54
Default
  #3
New Member
 
Join Date: Apr 2016
Posts: 21
Rep Power: 10
robob is on a distinguished road
and if I type "wallGradU" into the console (it was an openFoam utility)
then the following output is printed:
wallGradU has been superseded by the postProcess utility:
postProcess -func 'grad(U)'
robob is offline   Reply With Quote

Old   September 22, 2017, 14:42
Default
  #4
New Member
 
Marius Lang
Join Date: Sep 2017
Posts: 19
Rep Power: 8
Ursmooth is on a distinguished road
Thank you for your help robob. The postProcess -func 'grad(U)' it worked for time step 0 but for timestep 1,2,3 and so forth, it coulndt find required field U.
The command postProcess -func 'components(U)' worked fine though. How do you create field U? Is this done in the fvSolution with a gradscheme in fvSchemes?
Attached Images
File Type: jpg Screen Shot 2017-09-22 at 20.27.33.jpg (123.2 KB, 8 views)

Last edited by Ursmooth; September 22, 2017 at 18:24.
Ursmooth is offline   Reply With Quote

Old   September 23, 2017, 02:05
Default
  #5
New Member
 
Join Date: Apr 2016
Posts: 21
Rep Power: 10
robob is on a distinguished road
Normally U is writtten to all timesteps. There is something wrong with your solver. What commands do you execute for your simulation?
robob is offline   Reply With Quote

Old   September 23, 2017, 02:12
Default
  #6
New Member
 
Shrirang
Join Date: May 2016
Location: India
Posts: 18
Rep Power: 9
shrirang is on a distinguished road
There is an option in controlDict about writing files every time step, you can check that for your case.

Shrirang
shrirang is offline   Reply With Quote

Old   September 23, 2017, 03:42
Default
  #7
New Member
 
Marius Lang
Join Date: Sep 2017
Posts: 19
Rep Power: 8
Ursmooth is on a distinguished road
Just icoFoam, but I found this thread How to get grad(p) in OpenFOAM and it seems to be a bug in openfoam 4.1. The same version I am using.
Ursmooth is offline   Reply With Quote

Old   September 23, 2017, 03:46
Default
  #8
New Member
 
Join Date: Apr 2016
Posts: 21
Rep Power: 10
robob is on a distinguished road
Looks like an bug indeed, thanks for the notice. Maybe you should try with OpenFOAM 5?
robob is offline   Reply With Quote

Old   September 23, 2017, 04:49
Default
  #9
New Member
 
Marius Lang
Join Date: Sep 2017
Posts: 19
Rep Power: 8
Ursmooth is on a distinguished road
Yes I will try that, Thanks again for your help!
Ursmooth 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
question about uds tanven FLUENT 2 July 5, 2015 11:22
internal field question - PitzDaily Case atareen64 OpenFOAM Running, Solving & CFD 2 January 26, 2011 15:26
Question about calculating standard deviation Alicelin OpenFOAM Running, Solving & CFD 0 January 19, 2010 23:27
Question about Table applicaiton. universez OpenFOAM Running, Solving & CFD 0 January 12, 2010 20:31
A Simple Question Thomas P. Abraham Main CFD Forum 3 September 6, 1999 18:19


All times are GMT -4. The time now is 11:13.