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

Changing constants via controlDict not working

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 25, 2016, 06:49
Default Changing constants via controlDict not working
  #1
Member
 
hekseli
Join Date: Mar 2013
Posts: 49
Rep Power: 13
heksel8i is on a distinguished road
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;
        }
   }
}
When I run the case in the beginning I get a message that solver is overridinng DimensionedConstants and whatever I input is shown correctly.

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?
heksel8i is offline   Reply With Quote

Old   August 25, 2016, 11:55
Default
  #2
Member
 
Darko Radenkovic
Join Date: Oct 2015
Posts: 38
Rep Power: 10
dradenkovic is on a distinguished road
How do you know that your solver is using old value?


Regards,
Darko
dradenkovic is offline   Reply With Quote

Old   August 25, 2016, 15:36
Default
  #3
Member
 
hekseli
Join Date: Mar 2013
Posts: 49
Rep Power: 13
heksel8i is on a distinguished road
Hey!

I print the the R in the solver routine.
heksel8i is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
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


All times are GMT -4. The time now is 19:17.