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

convergenceCeck pUcoupledFoam

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree2Likes
  • 2 Post By fabian_roesler

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 14, 2014, 03:25
Default convergenceCeck pUcoupledFoam
  #1
Senior Member
 
Fabian Roesler
Join Date: Mar 2009
Location: Germany
Posts: 213
Rep Power: 18
fabian_roesler is on a distinguished road
Hi Folks,

I implemented a convergenceCheck to pUCoupledFoam. Just one hour of work but maybe one of you can use it. The convergenceCheck is the same as in simpleFoam. Just compile the solver pUConvergedCoupledFoam add

Code:
blockSolver
{
    convergence 1e-4;
}
to fvSolution. Attached you find the solver (foam-extend-3.1) and a basic cavity case.

Cheers

Fabian
Attached Files
File Type: gz pUConvergedCoupledFoam.tar.gz (3.2 KB, 24 views)
File Type: gz cavity.tar.gz (2.6 KB, 15 views)
Ohbuchi and ssss like this.
fabian_roesler is offline   Reply With Quote

Old   October 15, 2014, 07:09
Default
  #2
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,904
Rep Power: 33
hjasak will become famous soon enough
Dear Fabian,

Thanks for that - with your permission, I would like to include this into foam-extend-3.2. I have done some minor changes, the most important is elegance:

maxResidual = cmptMax(UpEqn.solve().initialResidual());

Perharps we should do some Master Classes for FOAM programmers... Would anyone be interested? We can run this at Uni Zagreb for academia and at Wikki for industrial users.

Hrv
__________________
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk
hjasak is offline   Reply With Quote

Old   October 15, 2014, 11:10
Default
  #3
Senior Member
 
Fabian Roesler
Join Date: Mar 2009
Location: Germany
Posts: 213
Rep Power: 18
fabian_roesler is on a distinguished road
PERMISSION GRANTED!

Thanks for highlighting your changes. Indeed, your code is much more elegant. A programmes course would be great.

Cheers Fabian
fabian_roesler is offline   Reply With Quote

Old   November 4, 2015, 10:34
Default
  #4
Senior Member
 
Markus Rehm
Join Date: Mar 2009
Location: Erlangen (Germany)
Posts: 184
Rep Power: 17
markusrehm is on a distinguished road
Hi,

how can I switch on the residual output of the solver? At the moment I just have a line for continuity errors and execution time for each iteration.

Regards, Markus.
markusrehm is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
pUCoupledFoam with Multiple Reference Frames (MRF) PorscheGTIII OpenFOAM Programming & Development 23 July 1, 2016 07:18


All times are GMT -4. The time now is 22:26.