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

Trouble with simpleFoam

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 7, 2017, 21:07
Default Trouble with simpleFoam
  #1
New Member
 
Join Date: Jun 2017
Posts: 11
Rep Power: 9
kinbean is on a distinguished road
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
kinbean is offline   Reply With Quote

Old   June 7, 2017, 22:14
Default
  #2
Member
 
Join Date: Nov 2014
Posts: 92
Rep Power: 12
hokhay is on a distinguished road
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
hokhay is offline   Reply With Quote

Old   June 7, 2017, 22:21
Default
  #3
New Member
 
Join Date: Jun 2017
Posts: 11
Rep Power: 9
kinbean is on a distinguished road
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.
kinbean is offline   Reply With Quote

Old   June 7, 2017, 22:26
Default
  #4
Member
 
Join Date: Nov 2014
Posts: 92
Rep Power: 12
hokhay is on a distinguished road
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
hokhay is offline   Reply With Quote

Old   June 8, 2017, 07:07
Default
  #5
New Member
 
Join Date: Jun 2017
Posts: 11
Rep Power: 9
kinbean is on a distinguished road
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 is offline   Reply With Quote

Old   June 8, 2017, 08:15
Default
  #6
New Member
 
Join Date: Jun 2017
Posts: 11
Rep Power: 9
kinbean is on a distinguished road
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.
kinbean is offline   Reply With Quote

Old   June 9, 2017, 08:03
Default
  #7
Member
 
Ricky
Join Date: Jul 2014
Location: Germany
Posts: 78
Rep Power: 12
kera is on a distinguished road
Quote:
Originally Posted by kinbean View Post
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
__________________
If it is easy, then something is fishy!
kera is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
interFoam vs. simpleFoam channel flow comparison DanM OpenFOAM Running, Solving & CFD 12 January 31, 2020 16:26
having trouble using simpleFoam and moving reference frame (MRF) joyw OpenFOAM 5 June 24, 2018 16:23
simpleFoam parallel solver & Fluent polyhedral mesh Zlatko OpenFOAM Running, Solving & CFD 3 September 26, 2014 07:53
Trying to run a benchmark case with simpleFoam spsb OpenFOAM 3 February 24, 2012 10:07
Small speed simpleFoam trouble milos OpenFOAM Post-Processing 0 November 17, 2009 09:00


All times are GMT -4. The time now is 01:22.