Professional Documents
Culture Documents
.
$%
. * ( $%
%"
'
( 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
"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
%
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
% "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
$ %
@ $ F .
$%
%.
"# K3
) (Time step
@ $ ?
*
'
$ $
$%
"
@ $ . % (
% 2 2
. 2
( KF
<( 2 . ok
( 3
% ( ( %
rate
$% 3 %
wireframe of surface (
(<
. "
%.
@ $ (< ( % @