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

Error using nuEff

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

Reply
 
LinkBack Thread Tools Display Modes
Old   December 8, 2016, 01:53
Default Error using nuEff
  #1
New Member
 
Join Date: Oct 2015
Posts: 6
Rep Power: 3
mariojsn is on a distinguished road
I am trying to add the following transport equation to rhoSimpleFoam:
Solve
(
fvm::ddt(rho,Z)
+ fvm:: div(phi,Z)
- fvm::laplacian(nuEff(),Z)
);

When I compile, I get the following error : "'nuEff() not declared in this scope "

How do I declare nuEff()?
mariojsn is offline   Reply With Quote

Old   December 8, 2016, 07:26
Default
  #2
Senior Member
 
Joachim Herb
Join Date: Sep 2010
Posts: 421
Rep Power: 12
jherb is on a distinguished road
nuEff is not defined in rhoSimpleFoam.C What should quantity should be stored in the field. In multiphaseEulerFoam/UEqns.H a nuEff is defined (see https://github.com/OpenFOAM/OpenFOAM...am/UEqns.H#L13) You have to add a similar definition to your code (of course depending on the physical meaning of your field)
jherb is offline   Reply With Quote

Old   December 9, 2016, 01:39
Default
  #3
New Member
 
Join Date: Oct 2015
Posts: 6
Rep Power: 3
mariojsn is on a distinguished road
Thank you for your answer. The piece of code compiles when modified as follows:

volScalarField nuEff( turbulence->nut() + turbulence-> nu());
mariojsn is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Calculating divDevReff jposunz OpenFOAM Running, Solving & CFD 65 May 29, 2017 04:45
nuEff()()[patchI] and nuEff() Tobi OpenFOAM Programming & Development 14 March 12, 2016 16:30
Add new nuEff() law to simpleFoam T.D. OpenFOAM Running, Solving & CFD 2 July 16, 2015 07:27
Calculate and display eddy viscosity ceyrows OpenFOAM Running, Solving & CFD 4 February 16, 2009 13:57


All times are GMT -4. The time now is 08:18.