|
[Sponsors] | |||||
|
|
|
#1 |
|
New Member
Marco Sala
Join Date: Oct 2019
Posts: 3
Rep Power: 8 ![]() |
Dear all,
I've a very big problem to run in parallel a boussinesq case with openFOAM. I want to track the average Nu number in my domain and so on I write a simple functionObjects: Code:
Nusselt_meanFlow
{
lib ("libutilityFunctionObjects.so");
type coded;
name Nu_meanFlow;
codeExecute
#{
//look for T and U mean field and assign them to a variable with same name
volVectorField UMean = mesh().lookupObject<volVectorField>("UMean");
volScalarField TMean = mesh().lookupObject<volScalarField>("TMean");
volScalarField nu = mesh().lookupObject<volScalarField>("nu");
dimensionedScalar nu_avg = fvc::domainIntegrate(nu)/gSum(mesh().V());
and so on...
Code:
#include "functionObjects/Nu_mean.H" Code:
Starting time loop [0] [2] [2] [2] --> FOAM FATAL ERROR: [2] Unknown function type coded Valid functions are : 6 ( patchProbes probes psiReactionThermoMoleFractions rhoReactionThermoMoleFractions sets surfaces ) [2] [2] [2] From function static Foam::autoPtr<Foam::functionObject> Foam::functionObject::New(const Foam::word&, const Foam::Time&, const Foam::dictionary&) [2] in file db/functionObjects/functionObject/functionObject.C at line 100. [2] FOAM parallel run exiting [2] I'm very stack on this problen and I very need your help. Thanks, Marco P.S. I'm using 5.x version OF |
|
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| MPIrun Problem with FoamJob Workaround | kaszt | OpenFOAM Running, Solving & CFD | 3 | October 4, 2018 13:55 |
| mpirun unable to find SU2_PRT | Apollinaris | SU2 Installation | 1 | May 10, 2017 06:31 |
| using mpirun | EmadTandis | OpenFOAM Running, Solving & CFD | 1 | December 4, 2016 15:29 |
| OF mpirun and parallel problem | heksel8i | OpenFOAM Running, Solving & CFD | 2 | September 11, 2013 06:33 |
| MPIRUN fails | lfbarcelo | OpenFOAM | 3 | March 29, 2010 08:41 |