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

Programming variable limiters

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 21, 2019, 08:03
Default Programming variable limiters
  #1
New Member
 
Fab
Join Date: Apr 2019
Posts: 27
Rep Power: 7
Rotidpor is on a distinguished road
Hello everyone.


I'm currently learning to use openFoam. I have succesfully used buoyantSimple/PimpleFoam on several models and I would like to have some hints on programming little handy utilities to limit variables.


I feel like the rho variable is really annoying sometimes when using buoyant solvers... A single bad cell with unrealistic rho max and/or rho min value can crash a whole simulation after a few iterations.



So, instead of trying another mesh, trying to relax rho or try using another model for rho, I would like to limit rho max/min between certain values.
Also, I would like openFoam to return the number of corrected cells to be able to tell if I'm cheating a lot or if it is ok...


Has anyone some hints to program this utility ? I have almost zero knowledge in code. Only things I have found are threads asking how to limit variables but nothing to return the number of "bad" cells.


Thank you all for reading
Rotidpor 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
Embed explicitSetValue in chtMultiRegionFoam samiam1000 OpenFOAM 2 April 18, 2012 06:14
Additional variable as output of an expression Chander CFX 1 November 22, 2011 13:54
Additional Variable tav98f CFX 3 April 28, 2011 13:33
Question about making a variable function of proprities of onother variable ? rafiktharwat CFX 0 March 26, 2011 15:23
Problem in installation of OpenFOAM sachin OpenFOAM Installation 7 January 22, 2008 02:40


All times are GMT -4. The time now is 21:42.