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

Adding source term to epsilon Eqn containing cell coordinate

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 8, 2016, 11:47
Default Adding source term to epsilon Eqn containing cell coordinate
  #1
Senior Member
 
Mojtaba.a's Avatar
 
Mojtaba Amiraslanpour
Join Date: Jun 2011
Location: Tampa, US
Posts: 308
Rep Power: 15
Mojtaba.a is on a distinguished road
Send a message via Skype™ to Mojtaba.a
Hello,

I am stuck in adding a source term to the turbulence kinetic energy dissipation Eqn in kEpsilon turbulence model. the source term consists of cell coordinate, for example:

S_eps (z) = C*z

I am unable to get cell coordinate. I believe I have to load the mesh, but I don't know how. I tried:
Code:
    fvMesh & mesh  =  mesh();
    volScalarField z = mesh.C().component(vector::Z);
Buy I get error in compilation:
Code:
error: no match for call to ‘(Foam::fvMesh) ()’
     fvMesh & mesh  =  mesh();
I have no idea how I can do that.
It would be great help if you could teach me how.

Thanks.
__________________
Learn OpenFOAM in Persian
SFO (StarCCM+ FLUENT OpenFOAM) Project Team Member
Complex Heat & Flow Simulation Research Group
If you can't explain it simply, you don't understand it well enough. "Richard Feynman"
Mojtaba.a 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
[foam-extend.org] problem when installing foam-extend-1.6 Thomas pan OpenFOAM Installation 7 September 9, 2015 21:53
Problem adding a source term in interfoam's alphaEqn.H Quentin OpenFOAM Running, Solving & CFD 1 July 30, 2014 05:33
Adding an explicit source term in the UEqn() Anne Lincke OpenFOAM Running, Solving & CFD 0 June 25, 2013 12:19
[swak4Foam] build problem swak4Foam OF 2.2.0 mcathela OpenFOAM Community Contributions 14 April 23, 2013 13:59
define a source term at cell faces, possible? Hugoles OpenFOAM Pre-Processing 0 May 22, 2012 17:49


All times are GMT -4. The time now is 17:37.