|
[Sponsors] |
Changing constants via controlDict not working |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 25, 2016, 07:49 |
Changing constants via controlDict not working
|
#1 |
Member
hekseli
Join Date: Mar 2013
Posts: 49
Rep Power: 13 |
Hey!
I would like to change the value of the universal gas constant, which appears in openfoam-2.4.x as NA*k = 8314.47 and in some other references as 8314.4621 etc. (May have an effect in my testing atm.) I found out that I can access to the universal constants via controlDict by adding: Code:
DimensionedConstants { unitSet SI; // USCS SICoeffs { physicoChemical { R R [1 2 -2 -1 -1 0 0] XXXXXXX; } } } However then in actual solution part e.g. R is still the original 8.31447 instead of the value in controlDict. Any ideas how to change R otherwise? |
|
August 25, 2016, 12:55 |
|
#2 |
Member
Darko Radenkovic
Join Date: Oct 2015
Posts: 38
Rep Power: 11 |
How do you know that your solver is using old value?
Regards, Darko |
|
August 25, 2016, 16:36 |
|
#3 |
Member
hekseli
Join Date: Mar 2013
Posts: 49
Rep Power: 13 |
Hey!
I print the the R in the solver routine. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
potentialFoam not working properly | GAlava | OpenFOAM Running, Solving & CFD | 7 | March 9, 2021 12:34 |
[OpenFOAM.com] [v3.0+] not working anymore (note: was missing entry in .bashrc) | Jambne | OpenFOAM Installation | 1 | May 29, 2016 15:37 |
Wrong forces coming from forces function object in controlDict | Jason_Duguay | OpenFOAM Post-Processing | 0 | April 13, 2016 10:07 |
Is there any institutions still working on solving N-S equations? | sharonyue | Main CFD Forum | 2 | November 11, 2015 09:23 |
Help required on working of Micro-oven | aero | CFX | 4 | January 19, 2007 09:21 |