CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Programming & Development

Where is physicoChemical::k defined?

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

Reply
 
LinkBack Thread Tools Display Modes
Old   May 14, 2013, 15:47
Default Where is physicoChemical::k defined?
  #1
Senior Member
 
santiagomarquezd's Avatar
 
Santiago Marquez Damian
Join Date: Aug 2009
Location: Santa Fe, Santa Fe, Argentina
Posts: 418
Rep Power: 14
santiagomarquezd will become famous soon enough
I was looking for the physicoChemical::k definition but I couldn't find it. Where is it located in FOAM 2.2.x or 2.2? The best I could find was what is in fundamentalConstants.C, but i couldn't find the point where the value 1.3806488*10-23 is assigned.

Regards.
__________________
Santiago MÁRQUEZ DAMIÁN, Ph.D.
Post-doctoral Fellow
Research Center for Computational Mechanics (CIMEC) - CONICET/FICH-UNL
T.E.: 54-342-4511594 Ext. 1005
Güemes 3450 - (3000) Santa Fe
Santa Fe - Argentina
http://www.cimec.org.ar
santiagomarquezd is offline   Reply With Quote

Old   May 14, 2013, 17:08
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,301
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings Santiago,

Remember one of the new features in 2.2 for dynamic units and constants? http://www.openfoam.org/version2.2.0...me-control.php

Check the list "DimensionedConstants" in "$WM_PROJECT_DIR/etc/controlDict". To see where it's located, run:
Code:
echo $WM_PROJECT_DIR/etc/controlDict
You can also check it online, in particular line 924: https://github.com/OpenFOAM/OpenFOAM...ntrolDict#L924
It's dynamically loaded at runtime!

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   May 15, 2013, 10:07
Default
  #3
Senior Member
 
santiagomarquezd's Avatar
 
Santiago Marquez Damian
Join Date: Aug 2009
Location: Santa Fe, Santa Fe, Argentina
Posts: 418
Rep Power: 14
santiagomarquezd will become famous soon enough
Thanks Bruno, now I'm understanding the presence of the defineDimensionedConstant* macros, they read the constant from the definition file. I checked the 1.7.x distro and the k constant was hard-coded.

Regards.
__________________
Santiago MÁRQUEZ DAMIÁN, Ph.D.
Post-doctoral Fellow
Research Center for Computational Mechanics (CIMEC) - CONICET/FICH-UNL
T.E.: 54-342-4511594 Ext. 1005
Güemes 3450 - (3000) Santa Fe
Santa Fe - Argentina
http://www.cimec.org.ar
santiagomarquezd is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[ICEM] How can I define different zones in ICEM? llrr ANSYS Meshing & Geometry 13 August 4, 2014 20:04
UDF link fortran source yorelchr Fluent UDF and Scheme Programming 0 February 7, 2013 04:44
using METIS functions in fortran dokeun Main CFD Forum 7 January 29, 2013 05:06
OpenFOAM static build on Cray XT5 asaijo OpenFOAM Installation 9 April 6, 2011 12:21
OpenFOAM13 for Mac OSX Darwin 104 hjasak OpenFOAM Installation 70 September 24, 2010 05:06


All times are GMT -4. The time now is 00:49.