Tutorial update

This commit is contained in:
Hrvoje Jasak 2014-01-20 11:52:31 +00:00
parent 19f0ef5bf0
commit 20c6d00c78
11 changed files with 34 additions and 29 deletions

View file

@ -5,5 +5,6 @@
cleanTimeDirectories cleanTimeDirectories
cleanCase cleanCase
\rm -rf 0/polyMesh
\rm -rf constant/polyMesh/sets constant/polyMesh/*Zones* \rm -rf constant/polyMesh/sets constant/polyMesh/*Zones*
\rm -rf VTK case.foam history \rm -rf VTK case.foam history

View file

@ -7,3 +7,4 @@ application="elasticNonLinTLSolidFoam"
runApplication blockMesh runApplication blockMesh
runApplication $application runApplication $application
runApplication deformedGeom 1

View file

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | foam-extend: Open Source CFD | | \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 3.0 | | \\ / O peration | Version: 3.0 |
| \\ / A nd | Web: http://www.extend-project.de | | \\ / A nd | Web: http://www.extend-project.de |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

View file

@ -22,37 +22,38 @@ internalField uniform (0 0 0);
boundaryField boundaryField
{ {
top top
{ {
type timeVaryingFixedDisplacementZeroShear; type timeVaryingFixedDisplacementZeroShear;
nonLinear totalLagrangian; nonLinear totalLagrangian;
fileName "$FOAM_CASE/constant/timeVsDisp"; fileName "$FOAM_CASE/constant/timeVsDisp";
outOfBounds clamp; outOfBounds clamp;
value uniform ( 0 0.1 0 ); value uniform ( 0 0 0 );
} }
bottom bottom
{ {
type symmetryPlane; type symmetryPlane;
} }
left left
{ {
type symmetryPlane; type symmetryPlane;
} }
right right
{ {
type solidTraction; type solidTraction;
nonLinear totalLagrangian; nonLinear totalLagrangian;
traction uniform (0 0 0); traction uniform (0 0 0);
pressure uniform 0; pressure uniform 0;
value uniform (0 0 0); value uniform (0 0 0);
} }
frontAndBack frontAndBack
{ {
type empty; type empty;
} }
} }
// ************************************************************************* // // ************************************************************************* //

View file

@ -5,5 +5,6 @@
cleanTimeDirectories cleanTimeDirectories
cleanCase cleanCase
\rm -rf 0/polyMesh
\rm -rf constant/polyMesh/sets constant/polyMesh/*Zones* \rm -rf constant/polyMesh/sets constant/polyMesh/*Zones*
\rm -rf VTK case.foam history \rm -rf VTK case.foam history

View file

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | foam-extend: Open Source CFD | | \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 3.0 | | \\ / O peration | Version: 3.0 |
| \\ / A nd | Web: http://www.extend-project.de | | \\ / A nd | Web: http://www.extend-project.de |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

View file

@ -1,4 +1,4 @@
( (
( 0 (0 0 0) ) ( 0 (0 0 0) )
( 64 (0 0.4 0)) ( 64 (0 0.4 0))
) )

View file

@ -23,7 +23,7 @@ startTime 0;
stopAt endTime; stopAt endTime;
endTime 50; endTime 40;
deltaT 1; deltaT 1;

View file

@ -5,5 +5,6 @@
cleanTimeDirectories cleanTimeDirectories
cleanCase cleanCase
\rm -rf constant/polyMesh/sets constant/polyMesh/*Zones* \rm -rf 0/polyMesh
\rm -rf constant/polyMesh/sets constant/polyMesh/*Zones* constant/polyMesh/zone*
\rm -rf VTK case.foam history \rm -rf VTK case.foam history

View file

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | foam-extend: Open Source CFD | | \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 3.0 | | \\ / O peration | Version: 3.0 |
| \\ / A nd | Web: http://www.extend-project.de | | \\ / A nd | Web: http://www.extend-project.de |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/