You are on page 1of 12

DamBreak

.
$%

. * ( $%

%"

'

( VOF %

"#

% %"

1
%

"#

3 ( (
3 "

"

% .

1 "
.
"#
%

( 3

( % .

( 2 2 (

. ,
: 2 (

)(volume of fluid

)(

) "# ( 1 ( "

( VOF

%
.

'

"#

. " 2 t=0 ( (

2
.

"

FoamX ( # %. "

% RUN $%

%
2

.

% '

? % 3 %
%. % (
%

. %

InterFoam < 2

=( %

% 2%

error% % % 2

/*------------------------------------------------------------------------\*--
=========
|
\\
/ F ield
| OpenFOAM: The Open Source CFD Toolbox
\\
/
O peration
|
\\ /
A nd
| Copyright held by original author
\\/
| M anipulation
-----------------------------------------------------------------------------License

This file is part of OpenFOAM.


OpenFOAM is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 2 of the License, or (at your
option) any later version.
OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
for more details.
You should have received a copy of the GNU General Public License
along with OpenFOAM; if not, write to the Free Software Foundation,
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Application
interFoam
Description
Solver for 2 incompressible fluids, which tracks the interface and
includes
the option of mesh motion.
\*--------------------------------------------------------------------------*/
#include
#include
#include
#include
#include

"fvCFD.H"
"MULES.H"
"subCycle.H"
"interfaceProperties.H"
"twoPhaseMixture.H"

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* //
int main(int argc, char *argv[])
{
#
#
#
#
#
#
#
#
#
#

include
include
include
include
include
include
include
include
include
include

"setRootCase.H"
"createTime.H"
"createMesh.H"
"readEnvironmentalProperties.H"
"readPISOControls.H"
"initContinuityErrs.H"
"createFields.H"
"readTimeControls.H"
"correctPhi.H"
"setInitialDeltaT.H"

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* //
Info<< "\nStarting time loop\n" << endl;

#
#
#
#

while (runTime.run())
{
include "readPISOControls.H"
include "readTimeControls.H"
include "CourantNo.H"
include "setDeltaT.H"

runTime++;
Info<< "Time = " << runTime.timeName() << nl << endl;
twoPhaseProperties.correct();
#

include "gammaEqnSubCycle.H"

include "UEqn.H"
// --- PISO loop
for (int corr=0; corr<nCorr; corr++)
{
include "pEqn.H"
}

include "movingMeshRhoUContinuityErrs.H"
runTime.write();
Info<< "ExecutionTime = " << runTime.elapsedCpuTime() << " s"
<< " ClockTime = " << runTime.elapsedClockTime() << " s"
<< nl << endl;
}
Info<< "End\n" << endl;
return(0);

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

. % load , paraFoam *
.

Actions

( @

. ( (


$HOME/.bashrc
Edit as Root
: % &' root
! # $

+, ) %

( save

. $HOME/OpenFOAM/OpenFOAM-1.4.1/.OpenFOAM-1.4.1/bashrc
%

3 (.) (" $HOME

2 ( 2 A %

Executing (

' (space) $ (

) (Konsole

.' ( 3

$ 3 % A

". $ = 3 (

.
:

:
blockMesh /home/caelinux/OpenFOAM/caelinux-1.4.1/run/tuturials/interFoam damBreak

3 %.

%:

( "

. $ 3 . blockMesh

.
3 blockMesh

. enter A 3 ( 2
% #( A ( ) =
. enter % *

3 ."

? (
:

setFields
$" 2

enter % ( console

interFoam /home/caelinux/OpenFOAM/caelinux-1.4.1/run/tuturials/interFoam damBreak

end < 2 "#

% "2

paraFoam % . ( .

paraFoam $% "
.

paraFoam /home/caelinux/OpenFOAM/caelinux-1.4.1/run/tuturials/interFoam
/home/caelinux/OpenFOAM/caelin 1.4.1/run/tuturials/interFoam damBreak

. F paraFoam 2 %

( %

% ( Display 2

$% H

% Accept

( Point volPintInterpolate(gamma)
.

'Color by
Parameters 2

( '

2 Display-View
(

( "

". $
$% Play

"

% '

( " L

% (

%.

"

'

2
. (

# % 2

# . :
KF .
%Accept

Data ,Scalar bar ,Cube Axes

$ %

@ $ F .

$%

%.

"# K3

) (Time step
@ $ ?

*
'

$ $

$%

"

@ $ . % (

% 2 2

) MPEG 2 movie file(.*mpg ( % 2 save $%

. 2

( KF

<( 2 . ok

( 3

% ( ( %

rate

' Display Style

$% 3 %

wireframe of surface (

(<

. "

%.

@ $ (< ( % @

You might also like