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

Compile a nes solver

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 5, 2020, 03:31
Default Compile a nes solver
  #1
New Member
 
Hossein Seyyedzadeh
Join Date: Dec 2019
Location: Isfahan
Posts: 1
Rep Power: 0
Hosseinsz93 is on a distinguished road
Hello everyone,
I tried to develope rheoEFoam solver, when I want to compile it with wmake command, I got these errors:
./createFields.H:21:1: error: ‘transportProperties’ was not declared in this scope
transportProperties.lookup("sigma")
^~~~~~~~~~~~~~~~~~~
./createFields.H:21:1: note: suggested alternative: ‘electromagneticProperties’
transportProperties.lookup("sigma")
^~~~~~~~~~~~~~~~~~~
electromagneticProperties
In file included from rheoEBFoam.C:62:0:
createFields.H:21:1: error: ‘transportProperties’ was not declared in this scope
transportProperties.lookup("sigma")
^~~~~~~~~~~~~~~~~~~
createFields.H:21:1: note: suggested alternative: ‘electromagneticProperties’
transportProperties.lookup("sigma")
^~~~~~~~~~~~~~~~~~~
electromagneticProperties
In file included from rheoEBFoam.C:150:0:
UEqn.H:14:8: error: ‘rho’ was not declared in this scope
+ (1/rho)*lorentz //Lorentz term
^~~
rheoEBFoam.C:176:13: error: ‘psiub’ was not declared in this scope
fvc::div(psiub)
^~~~~
/opt/openfoam6/wmake/rules/General/transform:25: recipe for target 'Make/linux64GccDPInt32Opt/rheoEBFoam.o' failed
make: *** [Make/linux64GccDPInt32Opt/rheoEBFoam.o] Error 1
Can anyone please help me in this regard?
Hosseinsz93 is offline   Reply With Quote

Old   March 11, 2020, 12:57
Default
  #2
Member
 
MNM
Join Date: Aug 2017
Posts: 69
Rep Power: 9
SHUBHAM9595 is on a distinguished road
Quote:
./createFields.H:21:1: error: ‘transportProperties’ was not declared in this scope
transportProperties.lookup("sigma")
^~~~~~~~~~~~~~~~~~~
./createFields.H:21:1: note: suggested alternative: ‘electromagneticProperties’
transportProperties.lookup("sigma")
^~~~~~~~~~~~~~~~~~~
electromagneticProperties
In file included from rheoEBFoam.C:62:0:
createFields.H:21:1: error: ‘transportProperties’ was not declared in this scope
transportProperties.lookup("sigma")
^~~~~~~~~~~~~~~~~~~
createFields.H:21:1: note: suggested alternative: ‘electromagneticProperties’
transportProperties.lookup("sigma")
Assuming you want to have a single file for all the properties, replace "transportProperties" with 'electromagneticProperties'' in the createFields.H inside your solver.


Quote:
In file included from rheoEBFoam.C:150:0:
UEqn.H:14:8: error: ‘rho’ was not declared in this scope
+ (1/rho)*lorentz //Lorentz term
^~~
rheoEBFoam.C:176:13: error: ‘psiub’ was not declared in this scope
fvc::div(psiub)
Initialise them in createFields.H.You can define rho over the whole mesh as volScalarField or also as a dimensioned scalar (if its independent of any variable). psiub can be initialised as a surfaceScalar/VectorField.
SHUBHAM9595 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
Can't compile solver juanblanco OpenFOAM Programming & Development 9 March 19, 2019 03:09
How to compile openfoam solver without wmake silverbluep OpenFOAM Programming & Development 0 February 15, 2018 19:22
How to compile a new solver in OpenFOAM-2.1.0? sandy OpenFOAM Programming & Development 24 July 27, 2016 05:10
Working directory via command line Luiz CFX 4 March 6, 2011 21:02
How to compile an unsteady solver based on solver of MRFSimpleFoam? renyun0511 OpenFOAM Running, Solving & CFD 0 April 27, 2010 12:16


All times are GMT -4. The time now is 06:29.