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

ERROR in mpirun

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 6, 2020, 06:41
Default ERROR in mpirun
  #1
New Member
 
Marco Sala
Join Date: Oct 2019
Posts: 3
Rep Power: 7
masal is on a distinguished road
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...
Then I put it in my controlDict:
Code:
 #include "functionObjects/Nu_mean.H"
When I run not using mpirun the simulation is fine and I obtain the results, but when I run in parallel I obtain this error:
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 check the syntax at src/utilites/codedFunctionObjects and it's fine (there's an example). I think that is a problem of mpirun, but i'm new with openFoam and i'm no practice with Linux enviroment.
I'm very stack on this problen and I very need your help.


Thanks,


Marco


P.S. I'm using 5.x version OF
masal 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
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


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