|
[Sponsors] |
June 21, 2019, 08:03 |
Programming variable limiters
|
#1 |
New Member
Fab
Join Date: Apr 2019
Posts: 27
Rep Power: 7 |
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 |
|
|
|
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 |