|
[Sponsors] |
October 14, 2009, 14:09 |
using k-variable in solver (object-oriented)
|
#1 |
Member
Sven Degner
Join Date: Mar 2009
Location: Zürich
Posts: 55
Rep Power: 17 |
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 |
|
|
|
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 06:46 |
Pass a variable from a class to a subequation in the main solver | lord_kossity | OpenFOAM Running, Solving & CFD | 0 | September 3, 2009 13:03 |
[blockMesh] BlockMeshmergePatchPairs | hjasak | OpenFOAM Meshing & Mesh Conversion | 11 | August 15, 2008 08:36 |
OpenFOAM141dev linking error on IBM AIX 52 | matthias | OpenFOAM Installation | 24 | April 28, 2008 16:49 |
fluent solver variable | Peter | FLUENT | 0 | October 8, 2006 12:59 |