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/)
-   -   Boussinesq tutorials? (https://www.cfd-online.com/Forums/openfoam-solving/139049-boussinesq-tutorials.html)

eaglemckenna July 16, 2014 10:19

Boussinesq tutorials?
 
Hi
I am trying to run a tutorial using the Boussinesq approximation. I am quite new to openfoam and have completed the cavity and stress in a plate tutorials, however I need to use Boussinesq solver for my project.
When I try to run the solver in the hot room tutorial I receive the error message, is my command prompt correct - also is there any tutorials I can access with instructions?

gowain@gowain-Aspire-V5-122P:~/OpenFOAM/OpenFOAM-2.3.0/tutorials/heatTransfer/buoyantBoussinesqSimpleFoam/hotRoom$ buoyantBoussinesqSimpleFoam
/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.3.0 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 2.3.0-f5222ca19ce6
Exec : buoyantBoussinesqSimpleFoam
Date : Jul 16 2014
Time : 15:14:19
Host : "gowain-Aspire-V5-122P"
PID : 3424
Case : /home/gowain/OpenFOAM/OpenFOAM-2.3.0/tutorials/heatTransfer/buoyantBoussinesqSimpleFoam/hotRoom
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Disallowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh for time = 0


Reading g
Reading thermophysical properties

Reading field T



--> FOAM FATAL IO ERROR:
cannot find file

file: /home/gowain/OpenFOAM/OpenFOAM-2.3.0/tutorials/heatTransfer/buoyantBoussinesqSimpleFoam/hotRoom/0/T at line 0.

From function regIOobject::readStream()
in file db/regIOobject/regIOobjectRead.C at line 73.

FOAM exiting

kind regards
gowain

adambarfi July 16, 2014 14:44

dear Gowain,
did you check that if there is a T file in 0 case??? or what does it contain?

p.s:
did you remove or delete something from that tutorial?

eaglemckenna July 17, 2014 13:31

Hi
thanks for the response.
there is a T.org file which I found quite strange;
the T.org file reads:

/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.3.0 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object T;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [0 0 0 1 0 0 0];

internalField uniform 300;

boundaryField
{
floor
{
type fixedValue;
value uniform 300;
}
ceiling
{
type fixedValue;
value uniform 300;
}
fixedWalls
{
type zeroGradient;
}
}

// ************************************************** ********************

I am sure I have not deleted any files.
kind regards
g

adambarfi July 17, 2014 13:43

just make a copy of "T.org" and then rename it to "T", the tutorial will work correctly.

eaglemckenna July 18, 2014 13:53

Thank you very much :)

vaina74 October 17, 2014 05:27

Hi everybody, I'd like to run the hotRoom tutorial as a starting point to simulate a simple case of room ventilation. I obviously rename the file T.org, but I have an error message anyway.
Code:

nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Disallowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh for time = 0


Reading g
Reading thermophysical properties

Reading field T



--> FOAM FATAL IO ERROR:
cannot find file

file: /home/user-a5/OpenFOAM/user-a5-2.3.0/run/tutorials/heatTransfer/buoyantBoussinesqSimpleFoam/hotRoom/0/T at line 0.

    From function regIOobject::readStream()
    in file db/regIOobject/regIOobjectRead.C at line 73.

FOAM exiting

What's wrong with it? Thanks for your help.

adambarfi October 17, 2014 05:33

Quote:

Originally Posted by vaina74 (Post 514777)
Hi everybody, I'd like to run the hotRoom tutorial as a starting point to simulate a simple case of room ventilation. I obviously rename the file T.org, but I have an error message anyway.
Code:

nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Disallowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh for time = 0


Reading g
Reading thermophysical properties

Reading field T



--> FOAM FATAL IO ERROR:
cannot find file

file: /home/user-a5/OpenFOAM/user-a5-2.3.0/run/tutorials/heatTransfer/buoyantBoussinesqSimpleFoam/hotRoom/0/T at line 0.

    From function regIOobject::readStream()
    in file db/regIOobject/regIOobjectRead.C at line 73.

FOAM exiting

What's wrong with it? Thanks for your help.

hi,

1- check the file name again
2- check the address, i.e the name of 0 case.
3- try it not using parallel processing

vaina74 October 17, 2014 06:38

Dear adambarfi, I checked again and it was all correct.
So I made a test and launch Allrun: the case ran without problems. I had a suspect, I read the script and found out I forgot to run setFields before the solver.
I leave this post to help newbies like me to avoid my stupid error.
Thanks anyway.


All times are GMT -4. The time now is 08:19.