|
[Sponsors] |
Changing constants via controlDict not working |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
Member
hekseli
Join Date: Mar 2013
Posts: 49
Rep Power: 14 ![]() |
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? |
|
![]() |
![]() |
![]() |
![]() |
#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 |
|
![]() |
![]() |
![]() |
![]() |
#3 |
Member
hekseli
Join Date: Mar 2013
Posts: 49
Rep Power: 14 ![]() |
Hey!
I print the the R in the solver routine. |
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
potentialFoam not working properly | GAlava | OpenFOAM Running, Solving & CFD | 7 | March 9, 2021 11:34 |
[OpenFOAM.com] [v3.0+] not working anymore (note: was missing entry in .bashrc) | Jambne | OpenFOAM Installation | 1 | May 29, 2016 14:37 |
Wrong forces coming from forces function object in controlDict | Jason_Duguay | OpenFOAM Post-Processing | 0 | April 13, 2016 09:07 |
Is there any institutions still working on solving N-S equations? | sharonyue | Main CFD Forum | 2 | November 11, 2015 08:23 |
Help required on working of Micro-oven | aero | CFX | 4 | January 19, 2007 08:21 |