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

Adding new lookup parameter to OF21

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   July 22, 2022, 00:42
Default Adding new lookup parameter to OF21
  #1
Senior Member
 
Farzad Faraji
Join Date: Nov 2019
Posts: 205
Rep Power: 7
farzadmech is on a distinguished road
Hello all
I want to add a new dimensionless parameter to pimpleFoam in OF21. I know that if I add these lines to OF6 or OF7, it will work, but it does not work in OF21;

Code:
 dimensionedScalar FFarzad
(
     "FFarzad",
     dimless, 
     transportProperties.lookup("FFarzad")
    
);
Why these lines does not work in OF21? and what should I do?

Error;
Code:
pimpleFoamEpsilonGeneral.C: In function ‘int main(int, char**)’:
pimpleFoamEpsilonGeneral.C:205:6: error: ‘transportProperties’ was not declared in this scope
      transportProperties.lookup("FFarzad")
      ^~~~~~~~~~~~~~~~~~~
pimpleFoamEpsilonGeneral.C:205:6: note: suggested alternative: ‘transportModel_H’
      transportProperties.lookup("FFarzad")
      ^~~~~~~~~~~~~~~~~~~
      transportModel_H
In file included from pimpleFoamEpsilonGeneral.C:353:0:
Thanks,
Farzas
Attached Images
File Type: jpg photo_2022-07-21_23-40-24.jpg (80.6 KB, 8 views)
farzadmech is offline   Reply With Quote

 

Tags
lookup, new parameter, of21, openfoam2106


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
multiRegionHeater error ordinary OpenFOAM Running, Solving & CFD 2 June 9, 2020 17:43
Long output in terminal. ssa_cfd OpenFOAM Running, Solving & CFD 1 March 18, 2019 05:25
DPMFoam - Serious Error --particle-laden flow in simple geometric config benz25 OpenFOAM Running, Solving & CFD 27 December 19, 2017 20:47
conjugateHeatFoam + interFoam farhagim OpenFOAM Programming & Development 15 July 19, 2016 07:55
Convergence on anisotropic tetahedral meshes pbo OpenFOAM Running, Solving & CFD 12 December 14, 2010 11:59


All times are GMT -4. The time now is 10:51.