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

Error using nuEff

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By jherb
  • 1 Post By mariojsn

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 8, 2016, 00:53
Default Error using nuEff
  #1
New Member
 
Join Date: Oct 2015
Posts: 6
Rep Power: 10
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, 06:26
Default
  #2
Senior Member
 
Joachim Herb
Join Date: Sep 2010
Posts: 650
Rep Power: 21
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)
rajibroy likes this.
jherb is offline   Reply With Quote

Old   December 9, 2016, 00:39
Default
  #3
New Member
 
Join Date: Oct 2015
Posts: 6
Rep Power: 10
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());
rajibroy likes this.
mariojsn 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
Calculating divDevReff jposunz OpenFOAM Running, Solving & CFD 82 June 12, 2022 14:01
nuEff()()[patchI] and nuEff() Tobi OpenFOAM Programming & Development 39 November 11, 2017 08:45
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 12:57


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