BUGFIX: script change: snappy fails with refinement history re-read

This commit is contained in:
Hrvoje Jasak 2013-12-16 14:25:35 +00:00
parent d114f1244f
commit 52f4078d64
4 changed files with 78 additions and 456 deletions

View file

@ -0,0 +1,9 @@
#!/bin/sh
# Source tutorial clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
cleanCase
\rm -rf constant/polyMesh
mkdir constant/polyMesh
\cp -f blockMeshDict constant/polyMesh/

View file

@ -3,6 +3,8 @@
. $WM_PROJECT_DIR/bin/tools/RunFunctions
runApplication blockMesh
runApplication snappyHexMesh -overwrite
runApplication snappyHexMesh
\rm -rf constant/polyMesh
\mv 3/polyMesh constant
\rm -rf 1 2 3
runApplication simpleFoam

View file

@ -0,0 +1,65 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 3.0 |
| \\ / A nd | Web: http://www.extend-project.de |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object blockMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
convertToMeters 1;
vertices
(
(-5 -4 0)
(15 -4 0)
(15 4 0)
(-5 4 0)
(-5 -4 8)
(15 -4 8)
(15 4 8)
(-5 4 8)
);
blocks
(
hex (0 1 2 3 4 5 6 7) (20 8 8) simpleGrading (1 1 1)
);
edges
(
);
patches
(
patch frontAndBack
(
(3 7 6 2)
(1 5 4 0)
)
patch inlet
(
(0 4 7 3)
)
patch outlet
(
(2 6 5 1)
)
wall lowerWall
(
(0 3 2 1)
)
patch upperWall
(
(4 5 6 7)
)
);
// ************************************************************************* //

View file

@ -1,454 +0,0 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 3.0 |
| \\ / A nd | Web: http://www.extend-project.de |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class polyBoundaryMesh;
location "constant/polyMesh";
object boundary;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
72
(
frontAndBack
{
type patch;
nFaces 320;
startFace 1016586;
}
inlet
{
type patch;
nFaces 64;
startFace 1016906;
}
outlet
{
type patch;
nFaces 64;
startFace 1016970;
}
lowerWall
{
type wall;
nFaces 5330;
startFace 1017034;
}
upperWall
{
type patch;
nFaces 160;
startFace 1022364;
}
motorBike_frt-fairing:001%1
{
type wall;
nFaces 6626;
startFace 1022524;
}
motorBike_windshield:002%2
{
type wall;
nFaces 50;
startFace 1029150;
}
motorBike_rr-wh-rim:005%5
{
type wall;
nFaces 181;
startFace 1029200;
}
motorBike_rr-wh-rim:010%10
{
type wall;
nFaces 340;
startFace 1029381;
}
motorBike_fr-wh-rim:011%11
{
type wall;
nFaces 474;
startFace 1029721;
}
motorBike_fr-wh-brake-disk:012%12
{
type wall;
nFaces 54;
startFace 1030195;
}
motorBike_frame:016-shadow%13
{
type wall;
nFaces 131;
startFace 1030249;
}
motorBike_rear-susp:014%14
{
type wall;
nFaces 1073;
startFace 1030380;
}
motorBike_rear-susp:014-shadow%15
{
type wall;
nFaces 159;
startFace 1031453;
}
motorBike_frame:016%16
{
type wall;
nFaces 20;
startFace 1031612;
}
motorBike_rr-wh-rim:005-shadow%17
{
type wall;
nFaces 25;
startFace 1031632;
}
motorBike_rr-wh-chain-hub:022%22
{
type wall;
nFaces 141;
startFace 1031657;
}
motorBike_rearseat%24
{
type wall;
nFaces 432;
startFace 1031798;
}
motorBike_frt-fairing%25
{
type wall;
nFaces 626;
startFace 1032230;
}
motorBike_windshield%26
{
type wall;
nFaces 428;
startFace 1032856;
}
motorBike_headlights%27
{
type wall;
nFaces 161;
startFace 1033284;
}
motorBike_driversseat%28
{
type wall;
nFaces 367;
startFace 1033445;
}
motorBike_rear-body%29
{
type wall;
nFaces 2076;
startFace 1033812;
}
motorBike_fuel-tank%30
{
type wall;
nFaces 912;
startFace 1035888;
}
motorBike_exhaust%31
{
type wall;
nFaces 2391;
startFace 1036800;
}
motorBike_rr-wh-rim%32
{
type wall;
nFaces 1430;
startFace 1039191;
}
motorBike_fr-mud-guard%33
{
type wall;
nFaces 767;
startFace 1040621;
}
motorBike_fr-wh-rim%34
{
type wall;
nFaces 592;
startFace 1041388;
}
motorBike_fr-wh-brake-disk%35
{
type wall;
nFaces 533;
startFace 1041980;
}
motorBike_fr-brake-caliper%36
{
type wall;
nFaces 164;
startFace 1042513;
}
motorBike_fr-wh-tyre%37
{
type wall;
nFaces 1118;
startFace 1042677;
}
motorBike_hbars%38
{
type wall;
nFaces 535;
startFace 1043795;
}
motorBike_fr-forks%39
{
type wall;
nFaces 1144;
startFace 1044330;
}
motorBike_chain%40
{
type wall;
nFaces 474;
startFace 1045474;
}
motorBike_rr-wh-tyre%41
{
type wall;
nFaces 1785;
startFace 1045948;
}
motorBike_square-dial%42
{
type wall;
nFaces 6;
startFace 1047733;
}
motorBike_round-dial%43
{
type wall;
nFaces 18;
startFace 1047739;
}
motorBike_dial-holder%44
{
type wall;
nFaces 87;
startFace 1047757;
}
motorBike_rear-susp%45
{
type wall;
nFaces 1787;
startFace 1047844;
}
motorBike_rear-brake-lights%46
{
type wall;
nFaces 54;
startFace 1049631;
}
motorBike_rear-light-bracket%47
{
type wall;
nFaces 163;
startFace 1049685;
}
motorBike_frame%48
{
type wall;
nFaces 2040;
startFace 1049848;
}
motorBike_rear-mud-guard%49
{
type wall;
nFaces 804;
startFace 1051888;
}
motorBike_rear-susp-spring-damp%50
{
type wall;
nFaces 125;
startFace 1052692;
}
motorBike_fairing-inner-plate%51
{
type wall;
nFaces 446;
startFace 1052817;
}
motorBike_clutch-housing%52
{
type wall;
nFaces 966;
startFace 1053263;
}
motorBike_radiator%53
{
type wall;
nFaces 48;
startFace 1054229;
}
motorBike_water-pipe%54
{
type wall;
nFaces 103;
startFace 1054277;
}
motorBike_water-pump%55
{
type wall;
nFaces 74;
startFace 1054380;
}
motorBike_engine%56
{
type wall;
nFaces 2384;
startFace 1054454;
}
motorBike_rear-shock-link%57
{
type wall;
nFaces 29;
startFace 1056838;
}
motorBike_rear-brake-fluid-pot-bracket%58
{
type wall;
nFaces 59;
startFace 1056867;
}
motorBike_rear-brake-fluid-pot%59
{
type wall;
nFaces 53;
startFace 1056926;
}
motorBike_footpeg%60
{
type wall;
nFaces 87;
startFace 1056979;
}
motorBike_rr-wh-chain-hub%61
{
type wall;
nFaces 145;
startFace 1057066;
}
motorBike_rear-brake-caliper%62
{
type wall;
nFaces 142;
startFace 1057211;
}
motorBike_rider-helmet%65
{
type wall;
nFaces 583;
startFace 1057353;
}
motorBike_rider-visor%66
{
type wall;
nFaces 95;
startFace 1057936;
}
motorBike_rider-boots%67
{
type wall;
nFaces 1025;
startFace 1058031;
}
motorBike_rider-gloves%68
{
type wall;
nFaces 320;
startFace 1059056;
}
motorBike_rider-body%69
{
type wall;
nFaces 4555;
startFace 1059376;
}
motorBike_frame:0%70
{
type wall;
nFaces 37;
startFace 1063931;
}
motorBike_frt-fairing:001-shadow%74
{
type wall;
nFaces 1274;
startFace 1063968;
}
motorBike_windshield-shadow%75
{
type wall;
nFaces 101;
startFace 1065242;
}
motorBike_fr-mud-guard-shadow%81
{
type wall;
nFaces 129;
startFace 1065343;
}
motorBike_fr-wh-brake-disk-shadow%83
{
type wall;
nFaces 77;
startFace 1065472;
}
motorBike_rear-mud-guard-shadow%84
{
type wall;
nFaces 138;
startFace 1065549;
}
motorBike_rear-susp-spring-damp-shadow%85
{
type wall;
nFaces 15;
startFace 1065687;
}
motorBike_radiator-shadow%86
{
type wall;
nFaces 12;
startFace 1065702;
}
motorBike_rear-shock-link-shadow%87
{
type wall;
nFaces 7;
startFace 1065714;
}
motorBike_rear-brake-fluid-pot-bracket-shadow%88
{
type wall;
nFaces 6;
startFace 1065721;
}
motorBike_rr-wh-chain-hub-shadow%89
{
type wall;
nFaces 24;
startFace 1065727;
}
)
// ************************************************************************* //