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

Pressure convergence

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Fouch

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 7, 2022, 10:44
Default Pressure convergence
  #1
Member
 
Gabriel
Join Date: Aug 2021
Posts: 37
Rep Power: 4
daylen is on a distinguished road
Hi, im simulating flow around a box, to do that i modified the example case WindAroundBuildings, when i run pimpleFoam, i get pressure residuals oscillations, how do i fix this?
Case folder: https://www.dropbox.com/s/3gs1vw1ojd...pf122.zip?dl=0
Attached Images
File Type: png image1.png (30.3 KB, 15 views)
daylen is offline   Reply With Quote

Old   September 7, 2022, 15:38
Default
  #2
Member
 
Join Date: Feb 2020
Posts: 79
Rep Power: 6
Fouch is on a distinguished road
Hi,


This is not oscillation. This is because you use correctors.


Try the code below to plot your residuals.


Code:
set logscale y
set title "Residuales vs iteración caso circular 3 transiente"
set ylabel 'Residual'
set xlabel 'Iteración'
plot "< cat log | grep 'Solving for Ux' | cut -d' ' -f9 | tr -d ','" title 'Ux' with lines,\
"< cat log | grep 'Solving for Uy' | cut -d' ' -f9 | tr -d ','" title 'Uy' with lines,\
"< cat log | grep 'Solving for Uz' | cut -d' ' -f9 | tr -d ','" title 'Uz' with lines,\
"< cat log | grep 'Solving for omega' | cut -d' ' -f9 | tr -d ','" title 'omega' with lines,\
"< cat log | grep 'Solving for k' | cut -d' ' -f9 | tr -d ','" title 'k' with lines,\
"< cat log | grep 'Solving for p' | cut -d' ' -f9 | sed -n 'p;N' | tr -d ','" title 'p' with lines
pause 1
reread

BR
daylen likes this.
Fouch is offline   Reply With Quote

Old   September 7, 2022, 17:46
Default
  #3
Member
 
Gabriel
Join Date: Aug 2021
Posts: 37
Rep Power: 4
daylen is on a distinguished road
it works, thanks
daylen 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
viscosity udf don't use correct temperature and strain rate rezvani Fluent UDF and Scheme Programming 8 May 27, 2021 05:40
Fail to converge when solving with a fabricated solution zizhou FLUENT 0 March 22, 2021 06:33
Residuals and forces spiraling out of control before failing edomalley1 OpenFOAM Running, Solving & CFD 3 September 7, 2018 10:42
Neumann pressure BC and velocity field Antech Main CFD Forum 0 April 25, 2006 02:15
Hydrostatic pressure in 2-phase flow modeling (CFX4.2) HB &DS CFX 0 January 9, 2000 13:19


All times are GMT -4. The time now is 18:56.