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

using k-variable in solver (object-oriented)

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

Reply
 
LinkBack Thread Tools 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: 54
Rep Power: 8
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

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
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
BlockMeshmergePatchPairs hjasak OpenFOAM Native Meshers: blockMesh 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 15:26.