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

Dimensionless equations, variables, mesh etc

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

Like Tree1Likes
  • 1 Post By henrik

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 10, 2009, 10:56
Default Dimensionless equations, variables, mesh etc
  #1
bhh
Member
 
Bjorn H. Hjertager
Join Date: Mar 2009
Posts: 72
Rep Power: 17
bhh is on a distinguished road
Hi,

All my equations, variables and coordinates etc. are dimensionless. OF require dimensions on all variables, coordinates etc.. How can I do my modelling in OF without dimensions?

Regards

Bjorn
bhh is offline   Reply With Quote

Old   July 10, 2009, 12:33
Default
  #2
Senior Member
 
Antonio Martins
Join Date: Mar 2009
Location: Porto, Porto, Portugal
Posts: 112
Rep Power: 17
titio is on a distinguished road
Send a message via MSN to titio Send a message via Skype™ to titio
bhh,

Even with normalized dimensions, you still have the points relative position. From there you create the mesh. Concerning the variables, it is a question of defining dimensioned scalar, or volVectorField, or equivalent, in the createFields.H fil.

Regards,

Titio
titio is offline   Reply With Quote

Old   July 13, 2009, 00:56
Default
  #3
bhh
Member
 
Bjorn H. Hjertager
Join Date: Mar 2009
Posts: 72
Rep Power: 17
bhh is on a distinguished road
Hi,

How and where may I turn off the dimension checking?

Bjørn
bhh is offline   Reply With Quote

Old   July 13, 2009, 05:14
Default
  #4
Senior Member
 
isabel
Join Date: Apr 2009
Location: Spain
Posts: 171
Rep Power: 16
isabel is on a distinguished road
I need to turn off the dimension checking. Does anybody know how to do it in OpenFOAM?
isabel is offline   Reply With Quote

Old   July 13, 2009, 10:22
Default
  #5
Senior Member
 
Henrik Rusche
Join Date: Mar 2009
Location: Wernigerode, Sachsen-Anhalt, Germany
Posts: 281
Rep Power: 18
henrik is on a distinguished road
Dear All,

google("dimension checking openfoam") yields

http://openfoamwiki.net/index.php/Ma...al_checking.3F

as the first hit - not that I think it's a good idea to switch it off!

Henrik
henrik is offline   Reply With Quote

Old   July 13, 2009, 11:41
Default
  #6
bhh
Member
 
Bjorn H. Hjertager
Join Date: Mar 2009
Posts: 72
Rep Power: 17
bhh is on a distinguished road
Henrik,

Thanks for the info!

I agree that the dimension checking should generally not be turned off. However, when doing a non-dimensional problem it should be OK, or?

Bjorn
bhh is offline   Reply With Quote

Old   July 13, 2009, 12:31
Default
  #7
Senior Member
 
Henrik Rusche
Join Date: Mar 2009
Location: Wernigerode, Sachsen-Anhalt, Germany
Posts: 281
Rep Power: 18
henrik is on a distinguished road
Dear Bjorn,

Why do you want to implement the equation set in dimensionless-form in the first place? You loose one of the best features of OpenFOAM while you need it most, i.e. while implementing a new set of equations and solution algorithmn.

Without knowing you and your skills, my bet is that you will make mistakes which could have been easily flagged through dimension checking. I cannot tell you how much I hated the void fraction for being dimensionless, but that one cannot be helped ;-)

I would rather read the dimensionless parameters from dictionary and set the properties in the code. Post-processing can do the reverse and everybody is happy.

Henrik
henrik is offline   Reply With Quote

Old   August 5, 2009, 13:21
Default
  #8
Member
 
Sven Winkler
Join Date: May 2009
Posts: 70
Rep Power: 16
sven is on a distinguished road
Hey henrik,

where can I set dimensions, when I implement new equations, that means in which file can I set the dimensions of constants that come with the implementation of a new equation? Thank you!
sven is offline   Reply With Quote

Old   August 5, 2009, 13:41
Default
  #9
Senior Member
 
Henrik Rusche
Join Date: Mar 2009
Location: Wernigerode, Sachsen-Anhalt, Germany
Posts: 281
Rep Power: 18
henrik is on a distinguished road
Dear Sven,

the only dimensions that are not read in from file are those that arise from the discretisation (fvc::* and fvm::* methods). Those can not be changed - only the errors can be switched off.

Not sure this answers your question ...

Henrik
6863523 likes this.
henrik is offline   Reply With Quote

Old   August 5, 2009, 14:09
Default
  #10
Member
 
Sven Winkler
Join Date: May 2009
Posts: 70
Rep Power: 16
sven is on a distinguished road
Hey Henrik,

thanks for your answer. If I understand you right, you say that the dimensions of constants (for example Cmu in some turbulence models) are read in from file. I agree with that. But in the files where these constants are defined, there is no information about the dimensions of these constants. Thus, I guess there must be another file in which the dimensions of these constants are set.
I also tried to switch of the dimensions checking of OF. Unfortunately I can not find the controlDict file. According to the user Guide it should be located in $WM_PROJECT_DIR/OpenFOAM-1.5/.OpenFOAM-1.5. But in WM_PROJECT_DIR/OpenFOAM-1.5 there is no hidden folder named .OpenFOAM-1.5.
Thanks for your help!
sven is offline   Reply With Quote

Old   August 5, 2009, 15:01
Default
  #11
Senior Member
 
Henrik Rusche
Join Date: Mar 2009
Location: Wernigerode, Sachsen-Anhalt, Germany
Posts: 281
Rep Power: 18
henrik is on a distinguished road
Sven,

Cmu, C1, C2, alphaEps are dimensionless.

The guide is outdated: The controlDict is now in $WM_PROJECT_DIR/etc

Please file a bug on this or make a note on the Wiki.

Henrik
henrik is offline   Reply With Quote

Old   December 10, 2016, 12:25
Smile How to use the dimensionless N-S equations in OpenFOAM
  #12
Senior Member
 
Bill Wang
Join Date: Aug 2014
Posts: 109
Rep Power: 11
6863523 is on a distinguished road
Dear All,
I wonder if you guys have found a solution to this problem?
I also want to use the dimentionless equations in OpenFOAM. I have copied the controlDict out and changed the dimensionSet from 1 to 0, since I have no priviledge to modify the original file. But there is still dimension checking. It seems that the dimension chekcing was not turned off at all.
I wonder if there is any other solution, or did I miss something? Details could be been at How to use the dimensionless N-S equations in OpenFOAM
Thank you in advance.
Best Regards,
Bill

Last edited by 6863523; December 14, 2016 at 06:08.
6863523 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
[Other] vtk mesh or Abaqus mesh to OpenFOAM bigphil OpenFOAM Meshing & Mesh Conversion 27 November 23, 2015 18:31
Calculation of the Governing Equations Mihail CFX 7 September 7, 2014 07:27
Actual drag force from dimensionless equations slaxmi CFX 10 September 14, 2007 20:20
How to do Geometry from 3D mesh in ICEM San24 Main CFD Forum 4 August 8, 2005 03:49
mesh refinement on top of existent mesh? jx FLUENT 10 January 11, 2004 05:32


All times are GMT -4. The time now is 03:35.