CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (http://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Using shipFoam the tank slowly runs empty (http://www.cfd-online.com/Forums/openfoam-solving/129666-using-shipfoam-tank-slowly-runs-empty.html)

manoj_nav February 10, 2014 11:46

Using shipFoam the tank slowly runs empty
 
Hi all

I am new to OF and I am using shipFoam under OF1.6 to simulate flow around ship hull in calm water and with waves. But as the simulation progresses, the tank slowly empties. Please help me to identify the issue.

I have given following input to alpha, p and U under folder '0'.

Alpha :

FoamFile
{
version 2.0;
format ascii;
class volScalarField;
location "0";
object alpha;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [0 0 0 0 0 0 0];

internalField uniform 0;
boundaryField
{

Inlet
{
type fixedValue;
value uniform 1;
}
Outlet
{
type inletOutlet;
inletValue uniform 0;
value uniform 1;
}
Top
{
type inletOutlet;
inletValue uniform 0;
value uniform 0;
}
sides
{
type symmetryPlane;
}

hull_wall
{
type zeroGradient;
}

}

p :

FoamFile
{
version 2.0;
format ascii;
class volScalarField;
location "0";
object pd;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

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

internalField uniform 0;

boundaryField
{
Inlet
{
type zeroGradient;
}
Outlet
{
type zeroGradient;

}
Top
{
type totalPressure;
p0 uniform 0;
U U;
phi phi;
rho rho;
psi none;
gamma 0;
value uniform 0;
}
sides
{
type symmetryPlane;
}

hull_wall
{
type zeroGradient;
}
}

U:

FoamFile
{
version 2.0;
format ascii;
class volVectorField;
location "0";
object U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [0 1 -1 0 0 0 0];

internalField uniform (0.5 0 0);

boundaryField
{
Inlet
{
type surfaceWaveVelocity;
phi phi;
value uniform (0.5 0 0);
}
Outlet
{
type inletOutlet;
inletValue uniform (0 0 0);
value uniform (0.5 0 0);
}
Top
{
type pressureInletOutletVelocity;
value uniform (0.5 0 0);
}

sides
{
type symmetryPlane;
}
hull_wall
{
type movingWallVelocity;
value uniform (0 0 0);
}
}

Regards,

Manoj


All times are GMT -4. The time now is 03:23.