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

using k-variable in solver (object-oriented)

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 14, 2009, 13:09
Default using k-variable in solver (object-oriented)
  #1
Member
 
Sven Degner
Join Date: Mar 2009
Location: Zürich
Posts: 55
Rep Power: 17
sven82 is on a distinguished road
Hi Foamers,
I will output the variable k on the screen, with a output command in the solver.C
solver.C:
something like this.....
#include "/......./kEpsilon.H"
.
.
.
scalar Temp2 = gSum( mesh.magSf().boundaryField()[1] * k ( ).boundaryField()[1] ) / area2;
Info<< "......." << Temp2 << endl;
kEpsilon.H:
.
.
.
virtual tmp<volScalarField> k() const
{
return k_;
}
Error: error: 'k' was not declared in this scope
But why, i linked the kEpsilon.H with a return Methode for k !
Hope anyone can help,
Thx a lot
Sven
sven82 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
LES solver with variable density for incompressible liquids matthias OpenFOAM Running, Solving & CFD 1 April 26, 2010 05:46
Pass a variable from a class to a subequation in the main solver lord_kossity OpenFOAM Running, Solving & CFD 0 September 3, 2009 12:03
[blockMesh] BlockMeshmergePatchPairs hjasak OpenFOAM Meshing & Mesh Conversion 11 August 15, 2008 07:36
OpenFOAM141dev linking error on IBM AIX 52 matthias OpenFOAM Installation 24 April 28, 2008 15:49
fluent solver variable Peter FLUENT 0 October 8, 2006 11:59


All times are GMT -4. The time now is 04:58.