CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

Dictionary echo

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By olesen

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 18, 2022, 04:29
Default Dictionary echo
  #1
Member
 
Join Date: Mar 2018
Posts: 33
Rep Power: 8
ghastbug is on a distinguished road
I want openfoam to print out my dictionary's env variables when I run it. Can you guys tell me how to?


For some (unnecesary) background: I'm using #calc to make my blockMesh parametric, for dimensions and cell grading. So I want blockMesh to tell me the dimensioning and cell grading variable results it obtains.
ghastbug is offline   Reply With Quote

Old   February 18, 2022, 06:24
Default
  #2
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,714
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
Quote:
Originally Posted by ghastbug View Post
I want openfoam to print out my dictionary's env variables when I run it. Can you guys tell me how to?


For some (unnecesary) background: I'm using #calc to make my blockMesh parametric, for dimensions and cell grading. So I want blockMesh to tell me the dimensioning and cell grading variable results it obtains.
Sounds like you want the #message directive https://www.openfoam.com/news/main-n...rds-directives


Note that you should probably also consider using #eval instead of #calc where possible.
ghastbug likes this.
olesen is offline   Reply With Quote

Old   February 18, 2022, 07:07
Default
  #3
Member
 
Join Date: Mar 2018
Posts: 33
Rep Power: 8
ghastbug is on a distinguished road
Aww, Now I'm sad about using the version from openfoam.org, it doesn't have #message.
ghastbug is offline   Reply With Quote

Old   February 18, 2022, 14:33
Default
  #4
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,714
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
Quote:
Originally Posted by ghastbug View Post
Aww, Now I'm sad about using the version from openfoam.org, it doesn't have #message.

The #eval and expressions bits are quite nice as well.
olesen is offline   Reply With Quote

Reply


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
FOAM Command Flow 1 .bash peteryuan OpenFOAM Running, Solving & CFD 0 November 17, 2013 09:36
OpenFOAM-1.6 install cookbook MadsR OpenFOAM Installation 372 November 20, 2010 12:57
My experience Installing Elmer (Open Source Multi physics programme) on Linux Ahmed Main CFD Forum 3 August 10, 2010 14:42
[OpenFOAM] ParaView/ParaFoam in OpenFoam 1.5 dev titio ParaView 2 February 27, 2010 15:02
Problem with rhoSimpleFoam matteo_gautero OpenFOAM Running, Solving & CFD 0 February 28, 2008 07:51


All times are GMT -4. The time now is 04:27.