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

my first Natural Ventilation case with OpenFOAM

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 8, 2011, 18:13
Default my first Natural Ventilation case with OpenFOAM
  #1
New Member
 
Alessandro Zomparelli
Join Date: Jun 2011
Posts: 8
Rep Power: 14
alessandro.zomparelli is on a distinguished road
Hi to all!
I'm a newbie of CFD. I'm a student of Building Engineering/Architecture and I'm trying to simulate the natural ventilation of my building considering the wind and buoyancy effects using OpenFOAM. What do you think would be the best settings for boundary conditions? My mesh is like a box, with the faces not oriented in direction of the wind, because I need to simulate different direction cases.

I'm trying to find a good solution for setting fields U, p and p_rgh for my boundaries top, ground/building, north, south, east and west, but every time something goes wrong... someone can give me a hand?

thankyou

PS: I start from hotroom case of buoyancySimpleFoam tutorial. Is it right?
alessandro.zomparelli is offline   Reply With Quote

Old   November 9, 2011, 06:14
Default
  #2
New Member
 
Alessandro Zomparelli
Join Date: Jun 2011
Posts: 8
Rep Power: 14
alessandro.zomparelli is on a distinguished road
Until now, I tried setting east side of my volume as inlet, the building and ground like a wall and top/west/north/south like outlet. The resulting U fields looks like:

Quote:
dimensions [0 1 -1 0 0 0 0];

internalField uniform (-10 0 0);

boundaryField
{
top
{
type zeroGradient;
}

west
{
type zeroGradient;
}

east
{
type fixedValue;
value uniform (-10 0 0);
}
south
{
type zeroGradient;
}

north
{
type zeroGradient;
}

ground
{
type fixedValue;
value uniform (0 0 0);
}
}
the p fields:

Quote:
dimensions [1 -1 -2 0 0 0 0];

internalField uniform 101325;

boundaryField
{
top
{
type fixedValue;
value uniform 0;
}

west
{
type fixedValue;
value uniform 0;
}

east
{
type zeroGradient;
}

south
{
type fixedValue;
value uniform 0;
}

north
{
type fixedValue;
value uniform 0;
}

ground
{
type buoyantPressure;
}
}
the p_rgh:

Quote:
dimensions [1 -1 -2 0 0 0 0];

internalField uniform 101325;

boundaryField
{
top
{
type fixedValue;
value uniform 0;
}

west
{
type fixedValue;
value uniform 0;
}

east
{
type zeroGradient;
}

south
{
type fixedValue;
value uniform 0;
}

north
{
type fixedValue;
value uniform 0;
}

ground
{
type buoyantPressure;
}
}
alphat:

Quote:
dimensions [1 -1 -1 0 0 0 0];

internalField uniform 0;

boundaryField
{
top
{
type fixedValue;
value $internalField;
}
west
{
type fixedValue;
value $internalField;
}
east
{
type fixedValue;
value $internalField;
}
south
{
type fixedValue;
value $internalField;
}
north
{
type fixedValue;
value $internalField;
}
ground
{
type alphatWallFunction;
Prt 0.85;
value uniform 0;
}
}
and epsilon:

Quote:
dimensions [0 2 -3 0 0 0 0];

internalField uniform 0.01;

boundaryField
{
top
{
type fixedValue;
value $internalField;
}
west
{
type fixedValue;
value $internalField;
}
east
{
type fixedValue;
value $internalField;
}
south
{
type fixedValue;
value $internalField;
}
north
{
type fixedValue;
value $internalField;
}
ground
{
type compressible::epsilonWallFunction;
Cmu 0.09;
kappa 0.41;
E 9.8;
value uniform 0.01;
}
}
nobody can give me some help?
This is the output message:
Quote:
Create time

Create mesh for time = 0


Reading g
Reading thermophysical properties

Selecting thermodynamics package hPsiThermo<pureMixture<constTransport<specieThermo <hConstThermo<perfectGas>>>>>
Reading field U

Reading/calculating face flux field phi

Creating turbulence model

Selecting RAS turbulence model kEpsilon
#0 Foam::error:rintStack(Foam::Ostream&) in "/opt/openfoam201/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#1 Foam::sigFpe::sigHandler(int) in "/opt/openfoam201/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#2 in "/lib/libc.so.6"
#3 Foam::compressible::RASModels::mutkWallFunctionFvP atchScalarField::calcMut() const in "/opt/openfoam201/platforms/linux64GccDPOpt/lib/libcompressibleRASModels.so"
#4 Foam::compressible::RASModels::mutkWallFunctionFvP atchScalarField::updateCoeffs() in "/opt/openfoam201/platforms/linux64GccDPOpt/lib/libcompressibleRASModels.so"
#5 Foam::fvPatchField<double>::evaluate(Foam::UPstrea m::commsTypes) in "/opt/openfoam201/platforms/linux64GccDPOpt/bin/buoyantSimpleFoam"
#6 Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::GeometricBoundaryField::evaluate() in "/opt/openfoam201/platforms/linux64GccDPOpt/bin/buoyantSimpleFoam"
#7 Foam::compressible::RASModels::kEpsilon::kEpsilon( Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&, Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh> const&, Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh> const&, Foam::basicThermo const&, Foam::word const&, Foam::word const&) in "/opt/openfoam201/platforms/linux64GccDPOpt/lib/libcompressibleRASModels.so"
#8 Foam::compressible::RASModel::adddictionaryConstru ctorToTable<Foam::compressible::RASModels::kEpsilo n>::New(Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&, Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh> const&, Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh> const&, Foam::basicThermo const&, Foam::word const&) in "/opt/openfoam201/platforms/linux64GccDPOpt/lib/libcompressibleRASModels.so"
#9 Foam::compressible::RASModel::New(Foam::GeometricF ield<double, Foam::fvPatchField, Foam::volMesh> const&, Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh> const&, Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh> const&, Foam::basicThermo const&, Foam::word const&) in "/opt/openfoam201/platforms/linux64GccDPOpt/lib/libcompressibleRASModels.so"
#10
in "/opt/openfoam201/platforms/linux64GccDPOpt/bin/buoyantSimpleFoam"
#11 __libc_start_main in "/lib/libc.so.6"
#12
in "/opt/openfoam201/platforms/linux64GccDPOpt/bin/buoyantSimpleFoam"
Errore di virgola mobile
alessandro.zomparelli is offline   Reply With Quote

Old   November 9, 2011, 10:22
Default
  #3
New Member
 
Alessandro Zomparelli
Join Date: Jun 2011
Posts: 8
Rep Power: 14
alessandro.zomparelli is on a distinguished road
well, I changed the value of pressure for both inlet and outlet conditions to fixedValue uniform 101325. Now the simulation run, but I can't understend very well the differences between p and p_rgh. It's correct to use the same settings for both pressures?
alessandro.zomparelli is offline   Reply With Quote

Old   April 1, 2015, 10:16
Default
  #4
Member
 
behrouz
Join Date: Mar 2015
Posts: 34
Rep Power: 11
behrouz is on a distinguished road
hi to all.i'm a newbie of CFD.i'm try to run one case in tutorial that can simulate ventilation in simple room,so wich one case can be use?? and how i can run it
any refrence,guid,idea can help
tnx
behrouz is offline   Reply With Quote

Reply

Tags
buyancysimplefoam, natural ventilation, openfoam


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
Is Playstation 3 cluster suitable for CFD work hsieh OpenFOAM 9 August 16, 2015 14:53
Superlinear speedup in OpenFOAM 13 msrinath80 OpenFOAM Running, Solving & CFD 18 March 3, 2015 05:36
Natural ventilation arium cfx kordou Main CFD Forum 0 July 16, 2011 10:59
CFD software for natural ventilation of building & urban design Christian Bosselmann Main CFD Forum 6 April 1, 2011 03:00
OpenFOAM Training and Workshop Zagreb 2628Jan2006 hjasak OpenFOAM 1 February 2, 2006 21:07


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