|
[Sponsors] |
July 31, 2022, 04:12 |
Density, user define function
|
#1 |
New Member
Piyush Rawat
Join Date: Jul 2022
Posts: 14
Rep Power: 4 |
-transient state condition
- density is function of liquid fraction - liquid fraction is function of temperature, hence density is the function of temperature - coded a user define function for density - it worked fine but soon temperature limited warning in console which results in divergence - what could be the possible problem, any solution pls reply. |
|
July 31, 2022, 20:43 |
|
#2 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 |
compile your code and read log -> this is what you better do each time after any modification
code seems ok, however you may do following: 1. change double to real type 2. put #define {a_0,a_1,...} part into the header it's not supposed to be inside the loop 3. of course you shold check you equation and parametes it should be smooth and defined on the whole requested range. 4. As you have rather tight range of 2.1 degree make sure you have small enougth timestep to simulate it
__________________
best regards ****************************** press LIKE if this message was helpful |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Other] refineWallLayer Error | Yuby | OpenFOAM Meshing & Mesh Conversion | 2 | November 11, 2021 11:04 |
user define function | upendra.shukla | Main CFD Forum | 0 | March 25, 2013 04:58 |
Installing OF 1.6 on Mac OS X | gschaider | OpenFOAM Installation | 129 | June 19, 2010 09:23 |
Version 15 on Mac OS X | gschaider | OpenFOAM Installation | 113 | December 2, 2009 10:23 |
Problem with compile the setParabolicInlet | ivanyao | OpenFOAM Running, Solving & CFD | 6 | September 5, 2008 20:50 |