CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Trouble with simpleFoam (https://www.cfd-online.com/Forums/openfoam-solving/188838-trouble-simplefoam.html)

kinbean June 7, 2017 20:07

Trouble with simpleFoam
 
Hi, I'm trying to run simpleFoam on OpenFoam 4.1 using:

foamJob simpleFoam

and I receive:

Application : simpleFoam
Executing: /opt/openfoam4/platforms/linux64GccDPInt32Opt/bin/simpleFoam > log 2>&1 &

and when I check top command nothing is running.

I have no idea where to begin to solve this error, if anyone has any insight I would very much appreciate it.

I have modified the motorBike tutorial

Forgive me as I am new to CFD and OpenFOAM.

Thank you

hokhay June 7, 2017 21:14

It looks to me that foamJob is running simpleFoam in the background and put the process log in a log file. Try to look for the log file.

You can run the case using only simpleFoam. Your command window should show you all the process

Sent from my LG-H818 using CFD Online Forum mobile app

kinbean June 7, 2017 21:21

Thanks for the reply.

The command window shows me nothing it just stays on

Application : simpleFoam
Executing: /opt/openfoam4/platforms/linux64GccDPInt32Opt/bin/simpleFoam > log 2>&1 &

and if i click enter again i get

[1] 18928

Sorry if I am not explaining this properly I am quite new to CFD and OpenFoam.

hokhay June 7, 2017 21:26

Sorry I didn't explain clearly. What I mean is instead of typing " foamJob simpleFoam", you should use only "simpleFoam" to run your case. Try it

Sent from my LG-H818 using CFD Online Forum mobile app

kinbean June 8, 2017 06:07

Ah thanks, oh a whole bunch of warnings appeared. I guess I should start going through these and fixing them.

Thank you for your help

kinbean June 8, 2017 07:15

I've managed to fix some of the errors, but I'm left with this. Does anyone know how to approach this?



Code:

forces forceCoeffs1:
    Not including porosity effects
forceCoeffs forceCoeffs1:
    Not including porosity effects
--> FOAM Warning :
    From function void Foam::timeControl::read(const Foam::dictionary&)
    in file db/functionObjects/timeControl/timeControl.C at line 89
    Reading "/home/kizbiz/OpenFOAM/kizbiz-4.1/run/tutorials/pipe/system/controlDict.functions.forces1" from line 11 to line 26
    Using deprecated 'outputControl'
    Please use 'writeControl' with 'writeInterval'
forces forces1:
    Not including porosity effects

--> FOAM FATAL IO ERROR:
keyword cumulative is undefined in dictionary "/home/kizbiz/OpenFOAM/kizbiz-4.1/run/tutorials/pipe/system/controlDict.functions.forces1.binData"

file: /home/kizbiz/OpenFOAM/kizbiz-4.1/run/tutorials/pipe/system/controlDict.functions.forces1.binData from line 23 to line 26.

    From function const Foam::entry& Foam::dictionary::lookupEntry(const Foam::word&, bool, bool) const
    in file db/dictionary/dictionary.C at line 441.


kera June 9, 2017 07:03

Quote:

Originally Posted by kinbean (Post 652250)
I've managed to fix some of the errors, but I'm left with this. Does anyone know how to approach this?



Code:

forces forceCoeffs1:
    Not including porosity effects
forceCoeffs forceCoeffs1:
    Not including porosity effects
--> FOAM Warning :
    From function void Foam::timeControl::read(const Foam::dictionary&)
    in file db/functionObjects/timeControl/timeControl.C at line 89
    Reading "/home/kizbiz/OpenFOAM/kizbiz-4.1/run/tutorials/pipe/system/controlDict.functions.forces1" from line 11 to line 26
    Using deprecated 'outputControl'
    Please use 'writeControl' with 'writeInterval'
forces forces1:
    Not including porosity effects

--> FOAM FATAL IO ERROR:
keyword cumulative is undefined in dictionary "/home/kizbiz/OpenFOAM/kizbiz-4.1/run/tutorials/pipe/system/controlDict.functions.forces1.binData"

file: /home/kizbiz/OpenFOAM/kizbiz-4.1/run/tutorials/pipe/system/controlDict.functions.forces1.binData from line 23 to line 26.

    From function const Foam::entry& Foam::dictionary::lookupEntry(const Foam::word&, bool, bool) const
    in file db/dictionary/dictionary.C at line 441.


Hello

you are missing "cumulative" within subDict binData in your foceCoeffs functionObject. It should look something like this:

Code:


forceCoeffs1
{
    type        forceCoeffs;

    functionObjectLibs ( "libforces.so" );

    outputControl  timeStep;
    timeInterval    1;

    log        yes;

    patches    ( motorBikeGroup );
    rhoName    rhoInf;      // Indicates incompressible
    rhoInf      1;          // Redundant for incompressible
    liftDir    (0 0 1);
    dragDir    (1 0 0);
    CofR        (0.72 0 0);  // Axle midpoint on ground
    pitchAxis  (0 1 0);
    magUInf    20;
    lRef        1.42;        // Wheelbase length
    Aref        0.75;        // Estimated

    binData
    {
        nBin        20;          // output data into 20 bins
        direction  (1 0 0);    // bin direction
        cumulative  yes;
    }

}

Regards,
Ricky


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