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

dimentionSet was not declared in this scope

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 10, 2021, 06:17
Default dimentionSet was not declared in this scope
  #1
New Member
 
Zhang Yan
Join Date: Nov 2021
Posts: 15
Rep Power: 4
Erikaaa is on a distinguished road
Hello Foamers,
I'm trying to add a temperature module in simpleFoam (vertion: openFOAM 8), but there is a error:

code:
dimensionedScalar AL
(
"AL",
dimentionSet(0,2,-1,0,0),
0.0001
);

error:
TicoFoam.C:66:9: error: ‘dimentionSet’ was not declared in this scope
dimentionSet(0,2,-1,0,0),
^~~~~~~~~~~~
TicoFoam.C:66:9: note: suggested alternative: ‘dimensionSet_H’
dimentionSet(0,2,-1,0,0),
^~~~~~~~~~~~
dimensionSet_H

I would be grateful if someone could help me.
Erikaaa is offline   Reply With Quote

Old   November 10, 2021, 09:05
Default
  #2
Member
 
s1291's Avatar
 
Join Date: Aug 2017
Location: Algeria
Posts: 98
Rep Power: 8
s1291 is on a distinguished road
That is a spelling error: it should be dimensionSet not dimentionSet.
s1291 is offline   Reply With Quote

Old   November 10, 2021, 09:28
Default
  #3
New Member
 
Zhang Yan
Join Date: Nov 2021
Posts: 15
Rep Power: 4
Erikaaa is on a distinguished road
Quote:
Originally Posted by s1291 View Post
That is a spelling error: it should be dimensionSet not dimentionSet.
Embarrassed!Thank you.
Erikaaa is offline   Reply With Quote

Old   November 11, 2021, 03:37
Default
  #4
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,686
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
Quote:
Originally Posted by Erikaaa View Post
Embarrassed!Thank you.
To save future embarrassment, but mostly for less typing and making it easier to read, could consider using one of the predefined sets of dimensions: eg, dimless, dimVelocity, etc. Can even combine them (dimVelocity/dimMass,...)
https://www.openfoam.com/documentati...onSets_8H.html
olesen is offline   Reply With Quote

Old   March 14, 2024, 07:38
Default
  #5
New Member
 
HagawaArashi
Join Date: Mar 2023
Posts: 4
Rep Power: 3
HagawaArashi is on a distinguished road
Quote:
Originally Posted by s1291 View Post
That is a spelling error: it should be dimensionSet not dimentionSet.
same problem, and thanks to your reply!!!
HagawaArashi 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
Compile calcMassFlowC aurore OpenFOAM Programming & Development 13 March 23, 2018 07:43
error compiling modified applications yvyan OpenFOAM Programming & Development 21 March 1, 2016 04:53
Compile problem ivanyao OpenFOAM Running, Solving & CFD 1 October 12, 2012 09:31
checking the system setup and Qt version vivek070176 OpenFOAM Installation 22 June 1, 2010 12:34
How to get the max value of the whole field waynezw0618 OpenFOAM Running, Solving & CFD 4 June 17, 2008 05:07


All times are GMT -4. The time now is 21:57.