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

Is there any built-in function that returns the dimension units of a certain field?

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By überschwupper

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 29, 2022, 04:41
Default Is there any built-in function that returns the dimension units of a certain field?
  #1
New Member
 
Zeinab Abosedaira
Join Date: Mar 2022
Posts: 24
Rep Power: 4
ZeinabM is on a distinguished road
Hello,
I am currently developing a solver and I am facing the problem of inconsistent units. I was asking if Is there any built-in function that returns the dimension units of a certain field? This will help me in the debugging process. Thank you so much!
ZeinabM is offline   Reply With Quote

Old   July 29, 2022, 07:24
Default
  #2
Member
 
Join Date: Jan 2022
Location: Germany
Posts: 72
Rep Power: 4
überschwupper is on a distinguished road
field.dimensions()


https://cpp.openfoam.org/v9/classFoa...ef8eb0e499466a
ZeinabM likes this.
überschwupper is offline   Reply With Quote

Old   August 1, 2022, 05:26
Default
  #3
New Member
 
Zeinab Abosedaira
Join Date: Mar 2022
Posts: 24
Rep Power: 4
ZeinabM is on a distinguished road
Oh okay thank you! I knew about it but I was using it with non-field entries.
ZeinabM 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
Point Set Profile User Function with Field Function Arguments wcj1n18 STAR-CCM+ 0 March 23, 2022 05:47
Implement field function with data from previous time steps as boundary condition Faraam STAR-CCM+ 0 August 20, 2021 15:33
[Other] dynamicTopoFVMesh and pointDisplacement RandomUser OpenFOAM Meshing & Mesh Conversion 6 April 26, 2018 07:30
[blockMesh] Errors during blockMesh meshing Madeleine P. Vincent OpenFOAM Meshing & Mesh Conversion 51 May 30, 2016 10:51
[snappyHexMesh] How to define to right point for locationInMesh Mirage12 OpenFOAM Meshing & Mesh Conversion 7 March 13, 2016 14:07


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