Merge branch 'master' of /home/dm4/OpenFOAM/OpenFOAM-dev

This commit is contained in:
mattijs
2013-06-04 11:33:22 +01:00
342 changed files with 114228 additions and 1470 deletions

View File

@ -18,6 +18,10 @@ do
then
rm -rf fluentInterface
fi
if [ "$caseName" = cavityClipped ]
then
rm -rf 0
fi
)
done

View File

@ -9,13 +9,13 @@ cavityCases="cavity cavityFine cavityGrade cavityHighRe cavityClipped"
runMapFields()
{
echo "Running mapFields from $1 to $2"
mapFields $1 -case $2 -sourceTime latestTime > $2/log.mapFields 2>&1
mapFieldsNew $1 -case $2 -sourceTime latestTime > $2/log.mapFields 2>&1
}
runMapFieldsConsistent()
{
echo "Running mapFields from $1 to $2"
mapFields $1 -case $2 -sourceTime latestTime -consistent > $2/log.mapFields 2>&1
mapFieldsNew $1 -case $2 -sourceTime latestTime -consistent > $2/log.mapFields 2>&1
}
runFluentMeshToFoam()
@ -37,8 +37,6 @@ setCavityFine()
sed s/"20 20 1"/"41 41 1"/g $blockMeshDict > temp.$$
mv temp.$$ $blockMeshDict
sed \
-e s/"\(startTime[ \t]*\) 0;"/"\1 0.5;"/g \
-e s/"\(endTime[ \t]*\) 0.5;"/"\1 0.7;"/g \
-e s/"\(deltaT[ \t]*\) 0.005;"/"\1 0.0025;"/g \
-e s/"\(writeControl[ \t]*\) timeStep;"/"\1 runTime;"/g \
-e s/"\(writeInterval[ \t]*\) 20;"/"\1 0.1;"/g \
@ -83,12 +81,12 @@ do
runMapFieldsConsistent $previousCase $caseName
;;
cavityClipped)
cp -r $caseName/0 $caseName/0.5
cp -r $caseName/0.org $caseName/0
runMapFields cavity $caseName
if [ ".`grep nonuniform $caseName/0.5/U`" != "." ]
if [ ".`grep nonuniform $caseName/0/U`" != "." ]
then
sed -f resetFixedWallsScr $caseName/0.5/U > $caseName/0.5/U.temp
mv $caseName/0.5/U.temp $caseName/0.5/U
sed -f resetFixedWallsScr $caseName/0/U > $caseName/0/U.temp
mv $caseName/0/U.temp $caseName/0/U
fi
;;
esac

View File

@ -0,0 +1,445 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volVectorField;
location "0";
object U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 1 -1 0 0 0 0];
internalField nonuniform List<vector>
336
(
(0.000253336 -0.000250529 0)
(0.000141099 0.000111382 0)
(-0.0011771 0.000564608 0)
(-0.00348132 0.000885014 0)
(-0.00637783 0.00104575 0)
(-0.00946999 0.00106179 0)
(-0.0124036 0.000957888 0)
(-0.0148858 0.000760472 0)
(-0.0166905 0.000494669 0)
(-0.0176593 0.000184572 0)
(-0.0177032 -0.000145276 0)
(-0.0168061 -0.000468394 0)
(-7.75158e-05 -0.000169506 0)
(-0.00161174 0.00164483 0)
(-0.00569333 0.00361747 0)
(-0.0117197 0.00503511 0)
(-0.0188936 0.00574358 0)
(-0.0264026 0.00576057 0)
(-0.0334716 0.005172 0)
(-0.0394297 0.00409278 0)
(-0.0437472 0.00264781 0)
(-0.0460505 0.000966984 0)
(-0.0461328 -0.000813291 0)
(-0.0439645 -0.00254727 0)
(-0.000528665 0.00109163 0)
(-0.0037117 0.0057366 0)
(-0.0105897 0.0102251 0)
(-0.0199932 0.0134086 0)
(-0.0307672 0.0149473 0)
(-0.0418254 0.0148399 0)
(-0.0521239 0.0132566 0)
(-0.0607489 0.0104569 0)
(-0.0669746 0.00674243 0)
(-0.0702881 0.00243899 0)
(-0.0704061 -0.00210675 0)
(-0.0672895 -0.006526 0)
(-0.000928303 0.00348005 0)
(-0.00569193 0.0122214 0)
(-0.015303 0.019923 0)
(-0.0279189 0.0251995 0)
(-0.0419886 0.0275989 0)
(-0.0561833 0.0271394 0)
(-0.0692573 0.0241106 0)
(-0.0801317 0.0189551 0)
(-0.0879548 0.0121963 0)
(-0.0921257 0.00440527 0)
(-0.0923103 -0.00380838 0)
(-0.0884566 -0.0117975 0)
(-0.00127903 0.00687825 0)
(-0.00753657 0.020955 0)
(-0.0198062 0.0325125 0)
(-0.0355373 0.0401058 0)
(-0.0527471 0.0432931 0)
(-0.0698634 0.0421956 0)
(-0.0854693 0.03728 0)
(-0.0983674 0.0292149 0)
(-0.107627 0.0187783 0)
(-0.112596 0.00681398 0)
(-0.112905 -0.005781 0)
(-0.108482 -0.0180561 0)
(-0.00160762 0.0112163 0)
(-0.00931856 0.0318764 0)
(-0.0242106 0.0479546 0)
(-0.043005 0.0580753 0)
(-0.0632605 0.0619407 0)
(-0.0831575 0.0598846 0)
(-0.10113 0.0526312 0)
(-0.115899 0.0411281 0)
(-0.126495 0.0264384 0)
(-0.132244 0.00969317 0)
(-0.132757 -0.0079171 0)
(-0.12793 -0.0251339 0)
(-0.00194013 0.0164779 0)
(-0.0111217 0.0449764 0)
(-0.0286514 0.0662365 0)
(-0.0504817 0.0790631 0)
(-0.0736876 0.0834502 0)
(-0.0962072 0.0800779 0)
(-0.116356 0.0700276 0)
(-0.132819 0.0545872 0)
(-0.144636 0.0351331 0)
(-0.151147 0.013085 0)
(-0.151954 -0.0100874 0)
(-0.14692 -0.0328345 0)
(-0.00230008 0.0226958 0)
(-0.0130253 0.0603031 0)
(-0.0332515 0.0873668 0)
(-0.0580808 0.103 0)
(-0.0840762 0.107669 0)
(-0.108956 0.102565 0)
(-0.13097 0.0892474 0)
(-0.148837 0.0694133 0)
(-0.16167 0.0447731 0)
(-0.168871 0.0170201 0)
(-0.170066 -0.0121345 0)
(-0.165074 -0.0408952 0)
(-0.00271166 0.0299479 0)
(-0.0151081 0.0779587 0)
(-0.038115 0.111359 0)
(-0.0658488 0.129753 0)
(-0.0943274 0.134321 0)
(-0.1211 0.126977 0)
(-0.144445 0.109905 0)
(-0.163214 0.085284 0)
(-0.176688 0.0551684 0)
(-0.184408 0.0214872 0)
(-0.186059 -0.0138756 0)
(-0.181423 -0.0489586 0)
(-0.00320765 0.0383603 0)
(-0.0174662 0.0980912 0)
(-0.043341 0.138192 0)
(-0.0737566 0.159049 0)
(-0.10416 0.162904 0)
(-0.132032 0.152676 0)
(-0.155826 0.131344 0)
(-0.174679 0.101642 0)
(-0.188168 0.0659589 0)
(-0.196068 0.0263898 0)
(-0.198186 -0.0151135 0)
(-0.194284 -0.0565472 0)
(-0.00384394 0.0481293 0)
(-0.0202461 0.120895 0)
(-0.0490464 0.167754 0)
(-0.0816861 0.190369 0)
(-0.113053 0.19256 0)
(-0.140746 0.178618 0)
(-0.163621 0.152515 0)
(-0.181309 0.117595 0)
(-0.193846 0.0765362 0)
(-0.20136 0.0314946 0)
(-0.203856 -0.0156595 0)
(-0.201109 -0.0630521 0)
(-0.00472534 0.0595717 0)
(-0.0236945 0.146619 0)
(-0.0553826 0.199758 0)
(-0.0893758 0.222793 0)
(-0.120121 0.221895 0)
(-0.145675 0.203191 0)
(-0.165629 0.171843 0)
(-0.18037 0.131813 0)
(-0.19058 0.0859712 0)
(-0.196862 0.0363768 0)
(-0.199501 -0.0153711 0)
(-0.198335 -0.0677445 0)
(-0.00605154 0.0732287 0)
(-0.0282256 0.175564 0)
(-0.0625082 0.233572 0)
(-0.0962561 0.254749 0)
(-0.123856 0.248734 0)
(-0.144396 0.224029 0)
(-0.158668 0.18711 0)
(-0.168105 0.142464 0)
(-0.174199 0.0929702 0)
(-0.178116 0.0403795 0)
(-0.180483 -0.0141989 0)
(-0.181264 -0.0698224 0)
(-0.00819201 0.0900465 0)
(-0.0344824 0.208021 0)
(-0.0704115 0.267885 0)
(-0.101022 0.283608 0)
(-0.121573 0.269813 0)
(-0.133105 0.237843 0)
(-0.13816 0.195407 0)
(-0.139459 0.147235 0)
(-0.139364 0.0959103 0)
(-0.139592 0.04262 0)
(-0.141106 -0.0122333 0)
(-0.144052 -0.0685082 0)
(-0.0117674 0.111636 0)
(-0.0432594 0.243962 0)
(-0.0782964 0.300035 0)
(-0.100626 0.305094 0)
(-0.108349 0.280462 0)
(-0.105728 0.240384 0)
(-0.0975255 0.193283 0)
(-0.0877664 0.14355 0)
(-0.0794961 0.0930368 0)
(-0.0747803 0.0420953 0)
(-0.074798 -0.00972907 0)
(-0.0798861 -0.063212 0)
(-0.0175493 0.140659 0)
(-0.0547642 0.282146 0)
(-0.0827854 0.324719 0)
(-0.0880788 0.312475 0)
(-0.075106 0.274457 0)
(-0.0525877 0.226772 0)
(-0.0274544 0.17729 0)
(-0.00450986 0.129136 0)
(0.013104 0.0829135 0)
(0.0234453 0.0379472 0)
(0.0254039 -0.00707372 0)
(0.0185126 -0.0537592 0)
(-0.0254497 0.181711 0)
(-0.0657743 0.317771 0)
(-0.0733323 0.331363 0)
(-0.0480756 0.295402 0)
(-0.00557609 0.244213 0)
(0.0412215 0.192381 0)
(0.0846568 0.145048 0)
(0.120541 0.102972 0)
(0.146707 0.0651384 0)
(0.162052 0.0298916 0)
(0.165946 -0.00467175 0)
(0.15794 -0.040629 0)
(-0.029649 0.239176 0)
(-0.0608412 0.335768 0)
(-0.0219419 0.300503 0)
(0.0505428 0.240128 0)
(0.127574 0.18295 0)
(0.19701 0.13539 0)
(0.254339 0.0973996 0)
(0.298254 0.0668516 0)
(0.328828 0.0413556 0)
(0.346471 0.0187787 0)
(0.35138 -0.00279428 0)
(0.343306 -0.0252655 0)
(0.00808309 0.281861 0)
(0.0197831 0.294972 0)
(0.139066 0.210973 0)
(0.26446 0.143477 0)
(0.364368 0.0971862 0)
(0.440365 0.0657777 0)
(0.496744 0.0442377 0)
(0.536876 0.0288862 0)
(0.563449 0.017199 0)
(0.578308 0.00748481 0)
(0.582382 -0.00149418 0)
(0.575697 -0.0108454 0)
(0.299604 0.146091 0)
(0.396272 0.127503 0)
(0.55742 0.0760895 0)
(0.674487 0.0437233 0)
(0.743889 0.0255721 0)
(0.787154 0.0152422 0)
(0.815486 0.00921237 0)
(0.833956 0.00550944 0)
(0.845386 0.00302719 0)
(0.851372 0.00114935 0)
(0.852667 -0.000499399 0)
(0.849383 -0.00221509 0)
(-0.170396 -0.0815962 0)
(-0.153082 -0.109327 0)
(-0.129972 -0.129385 0)
(-0.102186 -0.138832 0)
(-0.0716899 -0.13489 0)
(-0.0414672 -0.115472 0)
(-0.0162881 -0.0798971 0)
(-0.00285471 -0.0298903 0)
(-0.184082 -0.0956446 0)
(-0.167367 -0.129692 0)
(-0.144216 -0.155427 0)
(-0.115339 -0.169101 0)
(-0.0824459 -0.166806 0)
(-0.0486362 -0.145127 0)
(-0.0195288 -0.102161 0)
(-0.00353357 -0.0390479 0)
(-0.192648 -0.108493 0)
(-0.177857 -0.149174 0)
(-0.156224 -0.181419 0)
(-0.127779 -0.20061 0)
(-0.0936441 -0.201428 0)
(-0.056733 -0.178576 0)
(-0.0234798 -0.128174 0)
(-0.00443553 -0.050105 0)
(-0.192716 -0.118869 0)
(-0.181573 -0.166081 0)
(-0.163644 -0.205491 0)
(-0.137966 -0.231664 0)
(-0.104595 -0.237628 0)
(-0.0657334 -0.215527 0)
(-0.0283776 -0.158369 0)
(-0.00568207 -0.0635527 0)
(-0.179694 -0.125213 0)
(-0.174269 -0.178182 0)
(-0.162894 -0.224976 0)
(-0.143315 -0.259591 0)
(-0.113937 -0.273331 0)
(-0.0753928 -0.255068 0)
(-0.0345562 -0.193092 0)
(-0.00748627 -0.0801047 0)
(-0.147666 -0.125796 0)
(-0.150167 -0.182771 0)
(-0.148719 -0.236327 0)
(-0.139642 -0.280449 0)
(-0.119094 -0.305027 0)
(-0.0849355 -0.29516 0)
(-0.0424403 -0.232378 0)
(-0.010216 -0.100837 0)
(-0.0894586 -0.118992 0)
(-0.101785 -0.176959 0)
(-0.113683 -0.235287 0)
(-0.120303 -0.288884 0)
(-0.115262 -0.327197 0)
(-0.0922657 -0.331795 0)
(-0.0523154 -0.275404 0)
(-0.0144303 -0.127347 0)
(0.00298449 -0.103753 0)
(-0.0199929 -0.158322 0)
(-0.0476826 -0.217503 0)
(-0.0749823 -0.278362 0)
(-0.0935451 -0.331792 0)
(-0.0920629 -0.357684 0)
(-0.0632802 -0.319295 0)
(-0.0206335 -0.161974 0)
(0.137736 -0.0802473 0)
(0.105444 -0.125919 0)
(0.0622651 -0.179727 0)
(0.0118079 -0.242021 0)
(-0.0378285 -0.307878 0)
(-0.0716786 -0.360144 0)
(-0.0700552 -0.356609 0)
(-0.0279122 -0.208375 0)
(0.321472 -0.0507882 0)
(0.284645 -0.0820486 0)
(0.231574 -0.122446 0)
(0.162183 -0.17567 0)
(0.0799016 -0.243432 0)
(-0.00318934 -0.319136 0)
(-0.0546694 -0.368612 0)
(-0.0284593 -0.267618 0)
(0.55731 -0.0218472 0)
(0.525136 -0.0363351 0)
(0.475778 -0.0572598 0)
(0.404538 -0.0893843 0)
(0.305177 -0.139741 0)
(0.173417 -0.216386 0)
(0.0411721 -0.311655 0)
(0.0184302 -0.299995 0)
(0.841 -0.00433859 0)
(0.826141 -0.00742411 0)
(0.802078 -0.0125323 0)
(0.763621 -0.0217729 0)
(0.699108 -0.0392829 0)
(0.583952 -0.0726601 0)
(0.415827 -0.127868 0)
(0.308819 -0.149468 0)
)
;
boundaryField
{
lid
{
type fixedValue;
value uniform (1 0 0);
}
fixedWalls
{
type fixedValue;
value nonuniform List<vector>
60
(
(0.000253336 -0.000250529 0)
(-7.75158e-05 -0.000169506 0)
(-0.000528665 0.00109163 0)
(-0.000928303 0.00348005 0)
(-0.00127903 0.00687825 0)
(-0.00160762 0.0112163 0)
(-0.00194013 0.0164779 0)
(-0.00230008 0.0226958 0)
(-0.00271166 0.0299479 0)
(-0.00320765 0.0383603 0)
(-0.00384394 0.0481293 0)
(-0.00472534 0.0595717 0)
(-0.00605154 0.0732287 0)
(-0.00819201 0.0900465 0)
(-0.0117674 0.111636 0)
(-0.0175493 0.140659 0)
(-0.0254497 0.181711 0)
(-0.029649 0.239176 0)
(0.00808309 0.281861 0)
(0.299604 0.146091 0)
(-0.00285471 -0.0298903 0)
(-0.00353357 -0.0390479 0)
(-0.00443553 -0.050105 0)
(-0.00568207 -0.0635527 0)
(-0.00748627 -0.0801047 0)
(-0.010216 -0.100837 0)
(-0.0144303 -0.127347 0)
(-0.0206335 -0.161974 0)
(-0.0279122 -0.208375 0)
(-0.0284593 -0.267618 0)
(0.0184302 -0.299995 0)
(0.308819 -0.149468 0)
(-0.170396 -0.0815962 0)
(-0.153082 -0.109327 0)
(-0.129972 -0.129385 0)
(-0.102186 -0.138832 0)
(-0.0716899 -0.13489 0)
(-0.0414672 -0.115472 0)
(-0.0162881 -0.0798971 0)
(-0.00285471 -0.0298903 0)
(-0.0168061 -0.000468394 0)
(-0.0439645 -0.00254727 0)
(-0.0672895 -0.006526 0)
(-0.0884566 -0.0117975 0)
(-0.108482 -0.0180561 0)
(-0.12793 -0.0251339 0)
(-0.14692 -0.0328345 0)
(-0.165074 -0.0408952 0)
(0.000253336 -0.000250529 0)
(0.000141099 0.000111382 0)
(-0.0011771 0.000564608 0)
(-0.00348132 0.000885014 0)
(-0.00637783 0.00104575 0)
(-0.00946999 0.00106179 0)
(-0.0124036 0.000957888 0)
(-0.0148858 0.000760472 0)
(-0.0166905 0.000494669 0)
(-0.0176593 0.000184572 0)
(-0.0177032 -0.000145276 0)
(-0.0168061 -0.000468394 0)
)
;
}
frontAndBack
{
type empty;
}
}
// ************************************************************************* //

View File

@ -0,0 +1,379 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
location "0";
object p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 2 -2 0 0 0 0];
internalField nonuniform List<scalar>
336
(
5.88597e-06
-0.0058199
-0.0129574
-0.0184097
-0.0204272
-0.0182336
-0.0117692
-0.00147904
0.011842
0.0271538
0.0432491
0.0588278
0.005786
-0.00021294
-0.00579878
-0.00953747
-0.0105939
-0.00842781
-0.00296514
0.00547881
0.0163075
0.0287163
0.0417544
0.0543907
0.0133405
0.00503889
-0.000990222
-0.00441812
-0.00526801
-0.00325908
0.00160711
0.00903225
0.0185066
0.0293538
0.04077
0.0518743
0.0201447
0.00870114
0.00123093
-0.00266358
-0.00371726
-0.00188053
0.00273601
0.00978924
0.018785
0.0290996
0.0399965
0.0506586
0.0245072
0.0097783
0.000594882
-0.00398192
-0.00529736
-0.00350256
0.00117945
0.00833924
0.0174666
0.0279537
0.0390896
0.0500745
0.025183
0.00715521
-0.00379687
-0.00905213
-0.0105072
-0.00849513
-0.00335205
0.00443414
0.014318
0.0256837
0.0378185
0.0499079
0.0210986
-0.000257229
-0.0129293
-0.0187042
-0.0200247
-0.0174089
-0.0113135
-0.00231489
0.0089952
0.0219809
0.0359144
0.0499491
0.0111479
-0.0136131
-0.0278699
-0.0338491
-0.0345983
-0.0308524
-0.0232078
-0.0123402
0.00110974
0.0164887
0.0330574
0.0499385
-0.00596203
-0.0342614
-0.0498649
-0.0555434
-0.0550849
-0.0495093
-0.0395883
-0.0261082
-0.00975206
0.00882799
0.028906
0.0495984
-0.0318519
-0.0638709
-0.0804118
-0.085002
-0.0824149
-0.074073
-0.0609756
-0.0440313
-0.0239463
-0.00133174
0.0231507
0.0486661
-0.068662
-0.104598
-0.121339
-0.123585
-0.11751
-0.105121
-0.0877129
-0.0663201
-0.0416316
-0.0141503
0.0156109
0.0469584
-0.119397
-0.159351
-0.174909
-0.172752
-0.161142
-0.142923
-0.119753
-0.0927715
-0.0625719
-0.0294421
0.00637862
0.0444789
-0.188623
-0.232236
-0.243933
-0.233942
-0.213689
-0.187149
-0.156367
-0.122495
-0.0858922
-0.0464664
-0.0040087
0.0415445
-0.283968
-0.329299
-0.331826
-0.308274
-0.274703
-0.236434
-0.195758
-0.153604
-0.109834
-0.0637391
-0.0144318
0.0388695
-0.419312
-0.459665
-0.442344
-0.395786
-0.342123
-0.287733
-0.234609
-0.182923
-0.131603
-0.0789784
-0.0232075
0.0374818
-0.620525
-0.636737
-0.57867
-0.494186
-0.411234
-0.335651
-0.267773
-0.205971
-0.147529
-0.089376
-0.028419
0.0383553
-0.935917
-0.878508
-0.741734
-0.597941
-0.474386
-0.372652
-0.288861
-0.217755
-0.153946
-0.0924565
-0.0287099
0.041703
-1.47642
-1.20662
-0.920496
-0.691381
-0.517298
-0.387537
-0.290054
-0.21333
-0.148116
-0.087208
-0.0245701
0.045465
-2.53964
-1.63054
-1.04443
-0.710951
-0.495743
-0.352086
-0.254523
-0.183576
-0.126162
-0.0735876
-0.0192615
0.0427944
-4.36666
-2.04463
-0.973535
-0.563173
-0.357839
-0.240139
-0.170112
-0.123776
-0.087474
-0.0535029
-0.016647
0.0276682
0.0698025
0.0881595
0.103052
0.112706
0.115555
0.110197
0.0928392
0.0614164
0.0741007
0.0979773
0.118401
0.133131
0.139994
0.136823
0.118446
0.0819388
0.078861
0.109799
0.137629
0.159591
0.172732
0.173783
0.155526
0.113576
0.0840605
0.123708
0.161142
0.193091
0.215673
0.224082
0.208056
0.160638
0.0898478
0.139835
0.189324
0.234695
0.27108
0.29167
0.281748
0.229781
0.0965603
0.158283
0.22238
0.285294
0.341403
0.381581
0.38492
0.33184
0.10456
0.178844
0.259868
0.344976
0.428622
0.499706
0.529681
0.485397
0.113814
0.200479
0.299982
0.412032
0.533036
0.651782
0.732778
0.722402
0.123271
0.220725
0.338933
0.482162
0.652004
0.841349
1.01528
1.09751
0.128945
0.233078
0.36711
0.542685
0.7713
1.05932
1.40329
1.73015
0.11922
0.21879
0.35482
0.547991
0.8264
1.23659
1.91168
2.9242
0.084615
0.161737
0.272419
0.442106
0.718226
1.22572
2.41104
4.84854
)
;
boundaryField
{
lid
{
type zeroGradient;
}
fixedWalls
{
type zeroGradient;
}
frontAndBack
{
type empty;
}
}
// ************************************************************************* //

View File

@ -32,6 +32,7 @@ FoamFile
frontAndBack
{
type empty;
inGroups 1(empty);
nFaces 672;
startFace 712;
}

View File

@ -19,11 +19,11 @@ application icoFoam;
startFrom startTime;
startTime 0.5;
startTime 0;
stopAt endTime;
endTime 0.6;
endTime 0.5;
deltaT 0.005;

View File

@ -10,20 +10,449 @@ FoamFile
version 2.0;
format ascii;
class volVectorField;
location "0";
object U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 1 -1 0 0 0 0];
internalField uniform (0 0 0);
internalField nonuniform List<vector>
400
(
(7.77592e-05 -7.74314e-05 0)
(9.24465e-05 9.90119e-08 0)
(-0.000334275 0.000194835 0)
(-0.00129763 0.00036767 0)
(-0.00286343 0.000503916 0)
(-0.00494455 0.000576508 0)
(-0.00730369 0.000574836 0)
(-0.00964347 0.000498564 0)
(-0.0117102 0.00034179 0)
(-0.0128929 0.000126929 0)
(4.03178e-06 -9.46677e-05 0)
(-0.000327908 0.000334158 0)
(-0.00175804 0.00119198 0)
(-0.0042814 0.00196944 0)
(-0.00813354 0.00260203 0)
(-0.0131382 0.00294582 0)
(-0.0187679 0.00292999 0)
(-0.0243374 0.00254014 0)
(-0.0292504 0.00173976 0)
(-0.0320553 0.000642318 0)
(-0.000187657 0.000321548 0)
(-0.00119605 0.001768 0)
(-0.00416226 0.00411834 0)
(-0.00868815 0.00620737 0)
(-0.0151976 0.00791748 0)
(-0.0234033 0.00883917 0)
(-0.0324995 0.00874225 0)
(-0.041433 0.00755997 0)
(-0.0492814 0.00516822 0)
(-0.0537487 0.0019002 0)
(-0.000374981 0.00130006 0)
(-0.00207712 0.00438772 0)
(-0.0065967 0.00874463 0)
(-0.0130456 0.0124676 0)
(-0.021971 0.0154716 0)
(-0.0329447 0.0170375 0)
(-0.0449272 0.0167339 0)
(-0.0565905 0.014417 0)
(-0.0667836 0.00983357 0)
(-0.072574 0.00360938 0)
(-0.000562317 0.00300276 0)
(-0.0030009 0.00867184 0)
(-0.00921471 0.0158872 0)
(-0.0177622 0.0217751 0)
(-0.0292804 0.0264002 0)
(-0.0431487 0.0286797 0)
(-0.0580677 0.0279464 0)
(-0.0724456 0.023966 0)
(-0.0849373 0.0163056 0)
(-0.0920323 0.00598969 0)
(-0.000745322 0.00554788 0)
(-0.00393476 0.0149376 0)
(-0.0119241 0.0260455 0)
(-0.0226997 0.0347053 0)
(-0.0369662 0.0412738 0)
(-0.0538636 0.0442643 0)
(-0.0717978 0.042773 0)
(-0.0889114 0.0364906 0)
(-0.103696 0.0247665 0)
(-0.112119 0.00913805 0)
(-0.00093092 0.00901572 0)
(-0.00489502 0.0234069 0)
(-0.0147408 0.039587 0)
(-0.027864 0.0516962 0)
(-0.0450233 0.0605307 0)
(-0.0650795 0.0641651 0)
(-0.0861088 0.0614912 0)
(-0.105986 0.0521788 0)
(-0.123074 0.0353454 0)
(-0.132878 0.0131607 0)
(-0.00113149 0.0135389 0)
(-0.00593007 0.0344036 0)
(-0.017769 0.0570124 0)
(-0.0333952 0.0733311 0)
(-0.053601 0.0847548 0)
(-0.0769188 0.0888876 0)
(-0.101063 0.0844866 0)
(-0.123651 0.0713022 0)
(-0.142975 0.0482373 0)
(-0.154184 0.0182234 0)
(-0.00137666 0.0197259 0)
(-0.00717784 0.0493669 0)
(-0.0213632 0.0804986 0)
(-0.0398523 0.102161 0)
(-0.0634164 0.116597 0)
(-0.0901491 0.120906 0)
(-0.11735 0.113859 0)
(-0.142424 0.0954864 0)
(-0.163709 0.0645437 0)
(-0.176241 0.0249182 0)
(-0.00167131 0.0275121 0)
(-0.00864343 0.0680456 0)
(-0.0254591 0.109412 0)
(-0.0469581 0.137076 0)
(-0.073754 0.154396 0)
(-0.103351 0.15808 0)
(-0.132635 0.147237 0)
(-0.158961 0.12252 0)
(-0.180963 0.0827226 0)
(-0.194104 0.0328045 0)
(-0.0129112 -0.000119335 0)
(-0.0117458 -0.000341694 0)
(-0.00965701 -0.000507465 0)
(-0.00727209 -0.000587406 0)
(-0.00487018 -0.000585888 0)
(-0.00276981 -0.000505066 0)
(-0.00121437 -0.000360111 0)
(-0.00028002 -0.000182482 0)
(0.000111186 9.83519e-06 0)
(8.05099e-05 7.99212e-05 0)
(-0.0320881 -0.000613198 0)
(-0.0293109 -0.00174254 0)
(-0.0243486 -0.00258075 0)
(-0.0186865 -0.0029852 0)
(-0.0129706 -0.00298624 0)
(-0.00792763 -0.00260654 0)
(-0.00409668 -0.0019365 0)
(-0.00163233 -0.00113798 0)
(-0.000277587 -0.000287374 0)
(1.48683e-05 0.000113198 0)
(-0.053794 -0.00183057 0)
(-0.0493649 -0.00518068 0)
(-0.0414479 -0.00766944 0)
(-0.0323838 -0.00888855 0)
(-0.0231634 -0.00894624 0)
(-0.0148983 -0.00793054 0)
(-0.00841303 -0.00612144 0)
(-0.00396828 -0.0039738 0)
(-0.00111356 -0.00163457 0)
(-0.000168457 -0.000258733 0)
(-0.0726477 -0.00348138 0)
(-0.0669359 -0.00985102 0)
(-0.0566792 -0.0146085 0)
(-0.0448593 -0.0169956 0)
(-0.0327124 -0.017236 0)
(-0.0216433 -0.0155073 0)
(-0.0127244 -0.0123258 0)
(-0.00635936 -0.00849057 0)
(-0.00197162 -0.00414069 0)
(-0.000349533 -0.00117563 0)
(-0.0921806 -0.00573757 0)
(-0.0852815 -0.0162941 0)
(-0.0727743 -0.0242515 0)
(-0.0582179 -0.02837 0)
(-0.0430693 -0.0290283 0)
(-0.029029 -0.0265048 0)
(-0.0174576 -0.0215947 0)
(-0.00896428 -0.0155106 0)
(-0.00288066 -0.00827974 0)
(-0.000531706 -0.00279474 0)
(-0.11243 -0.00859305 0)
(-0.104468 -0.0246176 0)
(-0.0898004 -0.0368549 0)
(-0.0724982 -0.0434245 0)
(-0.0542274 -0.0448771 0)
(-0.0370072 -0.0415652 0)
(-0.0225483 -0.0345717 0)
(-0.0117312 -0.0255844 0)
(-0.00382139 -0.014395 0)
(-0.000713049 -0.00524164 0)
(-0.133488 -0.0119661 0)
(-0.124642 -0.03481 0)
(-0.107947 -0.0525464 0)
(-0.0879052 -0.0624586 0)
(-0.0663788 -0.0652461 0)
(-0.0457384 -0.0612557 0)
(-0.0281183 -0.0518284 0)
(-0.0147432 -0.0391919 0)
(-0.00483417 -0.0227762 0)
(-0.000905377 -0.00862174 0)
(-0.155281 -0.0157229 0)
(-0.14585 -0.0468335 0)
(-0.127414 -0.0714827 0)
(-0.104757 -0.0858727 0)
(-0.0799041 -0.0907717 0)
(-0.0555945 -0.0863676 0)
(-0.0344698 -0.0741786 0)
(-0.0182019 -0.0570393 0)
(-0.00600378 -0.0338816 0)
(-0.00112871 -0.0131219 0)
(-0.178091 -0.0198267 0)
(-0.168637 -0.06129 0)
(-0.149092 -0.0950265 0)
(-0.12421 -0.115775 0)
(-0.0960582 -0.124193 0)
(-0.0677259 -0.119995 0)
(-0.0424855 -0.10468 0)
(-0.0226591 -0.0817633 0)
(-0.00754204 -0.0494549 0)
(-0.0014282 -0.0194751 0)
(-0.19686 -0.0234072 0)
(-0.188422 -0.0762116 0)
(-0.169364 -0.120609 0)
(-0.143764 -0.149606 0)
(-0.113411 -0.163434 0)
(-0.0815219 -0.160811 0)
(-0.0520337 -0.142744 0)
(-0.0281718 -0.113303 0)
(-0.00951105 -0.0696929 0)
(-0.00182285 -0.0278255 0)
(-0.00205482 0.0373382 0)
(-0.0104895 0.0913204 0)
(-0.0303696 0.144655 0)
(-0.0549603 0.178528 0)
(-0.0844416 0.197835 0)
(-0.115493 0.199254 0)
(-0.14467 0.182865 0)
(-0.169646 0.150499 0)
(-0.189779 0.101307 0)
(-0.201899 0.0413711 0)
(-0.00256145 0.048775 0)
(-0.0128174 0.117872 0)
(-0.0361078 0.183428 0)
(-0.0633761 0.222155 0)
(-0.0939692 0.241063 0)
(-0.12357 0.237621 0)
(-0.148776 0.213829 0)
(-0.16823 0.173311 0)
(-0.182553 0.115904 0)
(-0.191068 0.0485951 0)
(-0.00333954 0.0625283 0)
(-0.0161578 0.148722 0)
(-0.0434395 0.225691 0)
(-0.0723793 0.266058 0)
(-0.101019 0.280184 0)
(-0.124185 0.267943 0)
(-0.139477 0.234591 0)
(-0.147594 0.186046 0)
(-0.151017 0.122947 0)
(-0.152636 0.0526174 0)
(-0.00457281 0.0782789 0)
(-0.0209748 0.182112 0)
(-0.0524161 0.266797 0)
(-0.0805895 0.303128 0)
(-0.102303 0.306816 0)
(-0.112643 0.282269 0)
(-0.111867 0.238839 0)
(-0.103754 0.184365 0)
(-0.0927559 0.119802 0)
(-0.0853918 0.0518692 0)
(-0.00684204 0.0983406 0)
(-0.0286568 0.220794 0)
(-0.0635163 0.306446 0)
(-0.0856108 0.330075 0)
(-0.0920607 0.316342 0)
(-0.0809813 0.276642 0)
(-0.0575774 0.224237 0)
(-0.0292904 0.16741 0)
(-0.00193267 0.106393 0)
(0.0152146 0.0462138 0)
(-0.0114225 0.125718 0)
(-0.0408773 0.265162 0)
(-0.0739349 0.337965 0)
(-0.0785937 0.33705 0)
(-0.0573111 0.300078 0)
(-0.0159042 0.246122 0)
(0.0340323 0.189489 0)
(0.0826149 0.136087 0)
(0.124505 0.0842065 0)
(0.149715 0.036382 0)
(-0.0205741 0.164753 0)
(-0.0570112 0.310161 0)
(-0.0708057 0.346506 0)
(-0.0388209 0.310706 0)
(0.0230489 0.251751 0)
(0.0980945 0.191419 0)
(0.171072 0.139207 0)
(0.23361 0.0959371 0)
(0.283396 0.057669 0)
(0.312223 0.0245832 0)
(-0.0337572 0.218068 0)
(-0.063854 0.338399 0)
(-0.0231108 0.312341 0)
(0.0641802 0.243977 0)
(0.168419 0.176411 0)
(0.267427 0.123297 0)
(0.350312 0.0845227 0)
(0.414801 0.0559155 0)
(0.46296 0.032638 0)
(0.489817 0.0136185 0)
(-0.0174788 0.280059 0)
(0.020044 0.294223 0)
(0.179666 0.194283 0)
(0.32234 0.123462 0)
(0.443244 0.0765276 0)
(0.535601 0.04838 0)
(0.603059 0.0311325 0)
(0.651211 0.0197562 0)
(0.685153 0.0111708 0)
(0.703318 0.00449339 0)
(0.238477 0.184328 0)
(0.383953 0.139634 0)
(0.588175 0.0653808 0)
(0.696245 0.0332812 0)
(0.766569 0.017537 0)
(0.812539 0.0100971 0)
(0.84334 0.00617112 0)
(0.864248 0.00378966 0)
(0.878479 0.0020798 0)
(0.885834 0.000789863 0)
(-0.205437 -0.0257369 0)
(-0.199534 -0.0897973 0)
(-0.18374 -0.145888 0)
(-0.160414 -0.18522 0)
(-0.130447 -0.207191 0)
(-0.0966194 -0.208706 0)
(-0.063362 -0.189348 0)
(-0.0351218 -0.153238 0)
(-0.0121224 -0.0960538 0)
(-0.00236632 -0.038894 0)
(-0.194711 -0.0260059 0)
(-0.192865 -0.0984107 0)
(-0.183868 -0.164784 0)
(-0.167274 -0.215119 0)
(-0.142262 -0.247754 0)
(-0.11016 -0.256998 0)
(-0.0752093 -0.23964 0)
(-0.0431659 -0.198647 0)
(-0.0153842 -0.127348 0)
(-0.00307997 -0.0523748 0)
(-0.155196 -0.0240535 0)
(-0.158674 -0.0996979 0)
(-0.160364 -0.172733 0)
(-0.156227 -0.233196 0)
(-0.142951 -0.278654 0)
(-0.118919 -0.300421 0)
(-0.0866065 -0.290715 0)
(-0.0525503 -0.249046 0)
(-0.0196987 -0.164615 0)
(-0.00409583 -0.0690759 0)
(-0.0857549 -0.0206053 0)
(-0.0945469 -0.0931125 0)
(-0.108684 -0.166856 0)
(-0.120988 -0.23351 0)
(-0.125783 -0.290954 0)
(-0.117467 -0.328494 0)
(-0.0945274 -0.332998 0)
(-0.0624005 -0.297697 0)
(-0.0252416 -0.204904 0)
(-0.00554776 -0.0882513 0)
(0.01773 -0.0162993 0)
(0.00432386 -0.0795761 0)
(-0.0223755 -0.147431 0)
(-0.0534277 -0.214554 0)
(-0.0819963 -0.280648 0)
(-0.0985203 -0.335441 0)
(-0.0950928 -0.361411 0)
(-0.0723134 -0.342724 0)
(-0.0331867 -0.250244 0)
(-0.0080028 -0.112065 0)
(0.154868 -0.0118381 0)
(0.138502 -0.061089 0)
(0.102061 -0.116678 0)
(0.0540877 -0.17678 0)
(0.000109448 -0.244097 0)
(-0.0488104 -0.312398 0)
(-0.0779682 -0.364217 0)
(-0.0780753 -0.374871 0)
(-0.0447528 -0.299385 0)
(-0.0127124 -0.143077 0)
(0.318718 -0.0078062 0)
(0.301714 -0.0410962 0)
(0.26126 -0.0804302 0)
(0.203591 -0.126575 0)
(0.130354 -0.184813 0)
(0.0492666 -0.255458 0)
(-0.0229547 -0.328291 0)
(-0.065475 -0.377167 0)
(-0.0583435 -0.344836 0)
(-0.0217915 -0.184858 0)
(0.495917 -0.00451266 0)
(0.480609 -0.0232272 0)
(0.442952 -0.0462116 0)
(0.386251 -0.0751584 0)
(0.307635 -0.115811 0)
(0.207456 -0.173748 0)
(0.0953767 -0.250368 0)
(-0.00452475 -0.330927 0)
(-0.0593172 -0.367174 0)
(-0.0339566 -0.238804 0)
(0.707142 -0.001728 0)
(0.696469 -0.00817254 0)
(0.670146 -0.0163546 0)
(0.629 -0.0273224 0)
(0.567766 -0.0443454 0)
(0.479525 -0.0729196 0)
(0.358357 -0.122052 0)
(0.209288 -0.198417 0)
(0.0351724 -0.308273 0)
(-0.0127872 -0.29491 0)
(0.887141 -0.000396638 0)
(0.882405 -0.00163119 0)
(0.871033 -0.003235 0)
(0.853065 -0.0054759 0)
(0.825407 -0.00921004 0)
(0.782608 -0.0163626 0)
(0.714893 -0.0317907 0)
(0.607692 -0.0642715 0)
(0.398843 -0.141465 0)
(0.245181 -0.188243 0)
)
;
boundaryField
{
movingWall
{
type fixedValue;
value uniform (1 0 0);
value nonuniform List<vector>
20
(
(1 0 0)
(1 0 0)
(1 0 0)
(1 0 0)
(1 0 0)
(1 0 0)
(1 0 0)
(1 0 0)
(1 0 0)
(1 0 0)
(1 0 0)
(1 0 0)
(1 0 0)
(1 0 0)
(1 0 0)
(1 0 0)
(1 0 0)
(1 0 0)
(1 0 0)
(1 0 0)
)
;
}
fixedWalls
{
@ -36,4 +465,5 @@ boundaryField
}
}
// ************************************************************************* //

View File

@ -10,13 +10,418 @@ FoamFile
version 2.0;
format ascii;
class volScalarField;
location "0";
object p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 2 -2 0 0 0 0];
internalField uniform 0;
internalField nonuniform List<scalar>
400
(
5.52402e-06
-0.00229538
-0.00774013
-0.0134457
-0.0182955
-0.0202942
-0.0178671
-0.010124
0.00412935
0.0232269
0.0023122
-8.56648e-06
-0.00431311
-0.00861915
-0.0121932
-0.0134505
-0.0110599
-0.0042145
0.00817294
0.0247006
0.00788852
0.00425942
-0.000230637
-0.00410498
-0.0070962
-0.0079743
-0.00569132
0.000416574
0.0113069
0.0257812
0.014126
0.00870618
0.00323272
-0.000947769
-0.00397238
-0.00482869
-0.0026946
0.0029497
0.0129493
0.02622
0.0202555
0.0127338
0.00578291
0.000844808
-0.00258855
-0.00363201
-0.00164603
0.00375017
0.0133077
0.0259998
0.0244929
0.0147236
0.00599413
1.7912e-06
-0.00408129
-0.00540459
-0.00345031
0.00204832
0.0117931
0.0247509
0.0249167
0.0127959
0.00213259
-0.0050374
-0.00982139
-0.0113316
-0.00911901
-0.00300128
0.00773874
0.0219993
0.0193824
0.0047426
-0.00795542
-0.0162944
-0.0216404
-0.0230221
-0.0200315
-0.0125544
0.000219103
0.0170553
0.00369386
-0.0139208
-0.0288595
-0.0382709
-0.0437922
-0.0443442
-0.0395825
-0.0294836
-0.0130469
0.00827599
-0.026299
-0.0473007
-0.0644576
-0.0744762
-0.0792818
-0.0777332
-0.0696678
-0.0552497
-0.0332117
-0.00530944
0.0448887
0.0642817
0.0788822
0.086761
0.0890699
0.0867819
0.0816334
0.0757444
0.0702744
0.0680518
0.04343
0.0602061
0.072888
0.0798553
0.0821584
0.0806706
0.0768525
0.0723898
0.0680566
0.0658278
0.0421893
0.0569264
0.0681388
0.0744007
0.076625
0.075532
0.0722957
0.068254
0.0637334
0.060242
0.0412959
0.0549012
0.0653298
0.0712155
0.0733369
0.0722633
0.0689564
0.0645632
0.0590318
0.0537776
0.0404811
0.0536513
0.0638535
0.069671
0.0717468
0.070496
0.0667206
0.0614853
0.0544032
0.0470424
0.0396289
0.0533146
0.0640878
0.0703465
0.0726098
0.0711437
0.0666534
0.0602356
0.0512306
0.0415506
0.0384883
0.0538857
0.0663017
0.073782
0.076738
0.0752775
0.0700537
0.0622904
0.0511071
0.0388851
0.0366467
0.0552771
0.0707953
0.0806772
0.0852285
0.0843488
0.0786403
0.0695238
0.0559293
0.0408022
0.0332112
0.0574489
0.078501
0.0929152
0.100851
0.101839
0.0963391
0.0860166
0.0696153
0.050776
0.0273838
0.0599073
0.0894946
0.111369
0.125449
0.130592
0.126844
0.116047
0.0967497
0.073356
-0.0766926
-0.10178
-0.120971
-0.13057
-0.132883
-0.126914
-0.113011
-0.0917737
-0.0616323
-0.0247479
-0.149366
-0.179286
-0.199682
-0.206748
-0.203452
-0.189499
-0.166393
-0.135559
-0.0951477
-0.0477641
-0.252602
-0.288755
-0.308157
-0.308064
-0.293054
-0.264902
-0.227429
-0.183361
-0.130477
-0.0716821
-0.386061
-0.429712
-0.442826
-0.427378
-0.391657
-0.341776
-0.285011
-0.225339
-0.159677
-0.0906935
-0.572464
-0.624085
-0.617383
-0.570168
-0.498588
-0.416408
-0.334779
-0.257685
-0.179905
-0.102847
-0.8514
-0.902235
-0.841174
-0.731866
-0.602733
-0.47727
-0.367627
-0.274207
-0.1875
-0.106255
-1.30904
-1.3063
-1.11074
-0.892443
-0.682999
-0.50932
-0.375051
-0.271107
-0.181556
-0.101458
-2.09545
-1.86213
-1.39155
-1.01465
-0.715574
-0.502329
-0.355072
-0.250216
-0.165163
-0.0914828
-3.98058
-2.67121
-1.60811
-1.02895
-0.659379
-0.436806
-0.299319
-0.208349
-0.137781
-0.0773138
-7.18227
-3.1681
-1.41184
-0.806704
-0.48937
-0.319976
-0.220877
-0.157034
-0.107682
-0.064011
0.0183613
0.062252
0.104185
0.13766
0.162208
0.175468
0.176455
0.166864
0.144945
0.115841
0.00715669
0.0642276
0.121401
0.170432
0.21041
0.237123
0.247542
0.242376
0.21922
0.18352
-0.00455663
0.0664556
0.141069
0.209788
0.271553
0.319751
0.347733
0.353345
0.332383
0.288991
-0.0134122
0.0695562
0.160699
0.25044
0.338512
0.416292
0.472279
0.498663
0.487024
0.435713
-0.0182693
0.0738185
0.179548
0.2908
0.409869
0.527963
0.628572
0.694482
0.708557
0.650684
-0.0186749
0.0781401
0.194231
0.324561
0.476486
0.645392
0.813452
0.952028
1.03083
0.978783
-0.0160557
0.0800304
0.200014
0.342877
0.523215
0.747039
1.00593
1.26722
1.49769
1.51226
-0.0129511
0.0772526
0.193893
0.339561
0.536157
0.805429
1.16435
1.60059
2.13145
2.40382
-0.0116026
0.0661826
0.169925
0.303976
0.494184
0.778367
1.21817
1.87684
3.04386
4.45278
-0.0139577
0.0478743
0.132048
0.241219
0.396048
0.631083
1.02405
1.72146
3.62706
7.79002
)
;
boundaryField
{
@ -34,4 +439,5 @@ boundaryField
}
}
// ************************************************************************* //

View File

@ -32,6 +32,7 @@ FoamFile
frontAndBack
{
type empty;
inGroups 1(empty);
nFaces 800;
startFace 840;
}

View File

@ -19,11 +19,11 @@ application icoFoam;
startFrom startTime;
startTime 0.7;
startTime 0;
stopAt endTime;
endTime 0.8;
endTime 0.5;
deltaT 0.0025;

View File

@ -8,14 +8,8 @@ Each ACMI patch requires the specification of a 'non-overlapping' patch. In
this example, the non-overlapping patches are described as walls, e.g. taken
from the constant/polyMesh/boundary file:
1. First ACMI poatch pair applied to the inlet channel outlet
1. First ACMI patch pair applied to the inlet channel outlet
ACMI1_blockage
{
type wall;
nFaces 40;
startFace 43680;
}
ACMI1_couple
{
type cyclicACMI;
@ -26,16 +20,16 @@ from the constant/polyMesh/boundary file:
neighbourPatch ACMI2_couple;
nonOverlapPatch ACMI1_blockage;
}
1. Second ACMI poatch pair applied to the fixed mesh region inlet
ACMI2_blockage
ACMI1_blockage
{
type wall;
nFaces 96;
startFace 43760;
nFaces 40;
startFace 43680;
}
1. Second ACMI patch pair applied to the fixed mesh region inlet
ACMI2_couple
{
type cyclicACMI;
@ -46,6 +40,12 @@ from the constant/polyMesh/boundary file:
neighbourPatch ACMI1_couple;
nonOverlapPatch ACMI2_blockage;
}
ACMI2_blockage
{
type wall;
nFaces 96;
startFace 43760;
}
In the above, the ACMI1_blockage and ACMI1_couple patches occupy the same space,
@ -56,7 +56,10 @@ The duplicate patches are initially created using the createBaffles utility.
Firstly, the original (non-duplicated) patch faces are collected into zones
using the topoSet utility.
Each ACMI/no-overlapping patch pair is specified using a master-slave approach.
Note: when specifying the ACMI patch-pairs, the coupled patch must be specified
before its associated non-overlapping patch.
Each ACMI/non-overlapping patch pair is specified using a master-slave approach.
However, since we are generating boundary patches (which are always master
patches) the slave patches are simply defined using 'dummy' entries, e.g.:
@ -65,22 +68,8 @@ patches) the slave patches are simply defined using 'dummy' entries, e.g.:
patches
{
// create blockage patch
master
{
//- Master side patch
name ACMI1_blockage;
type wall;
}
slave1 // dummy entries only
{
//- Slave side patch
name ACMI1_blockage;
type wall;
}
// create cyclic ACMI patch
master2
master
{
//- Master side patch
name ACMI1_couple;
@ -90,12 +79,26 @@ patches) the slave patches are simply defined using 'dummy' entries, e.g.:
nonOverlapPatch ACMI1_blockage;
transform noOrdering;
}
slave2 // dummy entries only
slave // dummy entries only
{
//- Slave side patch
name ACMI1_couple;
type patch;
}
// create blockage patch
master2
{
//- Master side patch
name ACMI1_blockage;
type wall;
}
slave12 // dummy entries only
{
//- Slave side patch
name ACMI1_blockage;
type wall;
}
}
Boundary conditions must then be applied to all geometric patches in the usual,

View File

@ -32,7 +32,8 @@ boundaryField
}
floatingObject
{
type zeroGradient;
type fixedFluxPressure;
value uniform 0;
}
frontAndBack
{

View File

@ -1,3 +1,3 @@
#!/bin/sh
awk '{print $1 " " $4}' poolHeight/0/faceSource.dat > poolHeight_vs_time
awk '{print $1 " " $4}' postProcessing/poolHeight/0/faceSource.dat > poolHeight_vs_time

View File

@ -9,32 +9,41 @@ FoamFile
{
version 2.0;
format ascii;
class volVectorField;
object U;
class volScalarField;
object T;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 1 -1 0 0 0 0];
dimensions [0 0 0 1 0 0 0];
internalField uniform (0 0 0);
internalField uniform 1;
boundaryField
{
lid
box_inlet
{
type fixedValue;
value uniform (1 0 0);
value uniform 1;
}
fixedWalls
box_outlet
{
type fixedValue;
value uniform (0 0 0);
type zeroGradient;
}
frontAndBack
box_bottom
{
type empty;
type zeroGradient;
}
box_top
{
type zeroGradient;
}
letters_text
{
type zeroGradient;
}
}

View File

@ -0,0 +1,59 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volVectorField;
object U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 1 -1 0 0 0 0];
internalField uniform (0 0 0);
boundaryField
{
box_inlet
{
type fixedValue;
value uniform (3 0 0);
}
box_outlet
{
type zeroGradient;
}
box_bottom
{
type supersonicFreestream;
UInf (3 0 0);
pInf 1;
TInf 1;
gamma 1.4;
}
box_top
{
type supersonicFreestream;
UInf (3 0 0);
pInf 1;
TInf 1;
gamma 1.4;
}
letters_text
{
type fixedValue;
value uniform (0 0 0);
}
}
// ************************************************************************* //

View File

@ -14,26 +14,38 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 2 -2 0 0 0 0];
dimensions [1 -1 -2 0 0 0 0];
internalField uniform 0;
internalField uniform 1;
boundaryField
{
lid
box_inlet
{
type fixedValue;
value uniform 1;
}
box_outlet
{
type zeroGradient;
}
fixedWalls
box_bottom
{
type zeroGradient;
}
frontAndBack
box_top
{
type empty;
type zeroGradient;
}
letters_text
{
type zeroGradient;
}
}
// ************************************************************************* //

View File

@ -0,0 +1,15 @@
#!/bin/sh
cd ${0%/*} || exit 1 # run from this directory
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
rm -rf constant/extendedFeatureEdgeMesh > /dev/null 2>&1
rm -rf constant/triSurface/*.eMesh > /dev/null 2>&1
rm -rf 0 > /dev/null 2>&1
rm -rf MeshedSurface.obj > /dev/null 2>&1
cleanCase
# ----------------------------------------------------------------- end-of-file

View File

@ -0,0 +1,15 @@
#!/bin/sh
cd ${0%/*} || exit 1 # run from this directory
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
cp system/controlDict.mesher system/controlDict
runApplication surfaceFeatureExtract
runApplication foamyHex2DMesh -overwrite
runApplication extrude2DMesh -overwrite polyMesh2D
runApplication checkMesh -allGeometry -allTopology -constant -noZero
# ----------------------------------------------------------------- end-of-file

View File

@ -0,0 +1,18 @@
#!/bin/sh
cd ${0%/*} || exit 1 # run from this directory
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
# Get the number of processors to run on from system/decomposeParDict
nProcs=$(getNumberOfProcessors)
cp system/controlDict.rhoCentralFoam system/controlDict
cp -r 0.org 0
runApplication decomposePar
runParallel rhoCentralFoam $nProcs
runApplication reconstructPar
# ----------------------------------------------------------------- end-of-file

View File

@ -0,0 +1,66 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class polyBoundaryMesh;
location "constant/polyMesh";
object boundary;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
7
(
letters_text
{
type patch;
nFaces 1064;
startFace 132063;
}
box_bottom
{
type patch;
nFaces 324;
startFace 133127;
}
box_top
{
type patch;
nFaces 324;
startFace 133451;
}
box_inlet
{
type patch;
nFaces 207;
startFace 133775;
}
box_outlet
{
type patch;
nFaces 207;
startFace 133982;
}
front
{
type empty;
inGroups 1(empty);
nFaces 64792;
startFace 134189;
}
back
{
type empty;
inGroups 1(empty);
nFaces 64792;
startFace 198981;
}
)
// ************************************************************************* //

View File

@ -0,0 +1,43 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "constant";
object thermophysicalProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
thermoType hePsiThermo<pureMixture<const<hConst<perfectGas<specie>>,sensibleEnthalpy>>>;
// Note: these are the properties for a "normalised" inviscid gas
// for which the speed of sound is 1 m/s at a temperature of 1K
// and gamma = 7/5
mixture
{
specie
{
nMoles 1;
molWeight 11640.3;
}
thermodynamics
{
Cp 2.5;
Hf 0;
}
transport
{
mu 0;
Pr 1;
}
}
// ************************************************************************* //

View File

@ -0,0 +1,96 @@
solid back
facet normal 0 0 -1
outer loop
vertex -1.618703 -1.830978 -0.557967
vertex 4.82342 2.27362 -0.557967
vertex 4.82342 -1.830978 -0.557967
endloop
endfacet
facet normal 0 0 -1
outer loop
vertex -1.618703 -1.830978 -0.557967
vertex -1.618703 2.27362 -0.557967
vertex 4.82342 2.27362 -0.557967
endloop
endfacet
endsolid back
solid front
facet normal 0 0 1
outer loop
vertex 4.82342 2.27362 0.586404
vertex -1.618703 -1.830978 0.586404
vertex 4.82342 -1.830978 0.586404
endloop
endfacet
facet normal 0 0 1
outer loop
vertex 4.82342 2.27362 0.586404
vertex -1.618703 2.27362 0.586404
vertex -1.618703 -1.830978 0.586404
endloop
endfacet
endsolid front
solid bottom
facet normal -2.19049e-08 -1 2.0834e-07
outer loop
vertex -1.618703 -1.830978 0.586404
vertex -1.618703 -1.830978 -0.557967
vertex 4.82342 -1.830978 -0.557967
endloop
endfacet
facet normal -1.97144e-07 -1 -6.25021e-07
outer loop
vertex 4.82342 -1.830978 -0.557967
vertex 4.82342 -1.830978 0.586404
vertex -1.618703 -1.830978 0.586404
endloop
endfacet
endsolid bottom
solid top
facet normal 6.57148e-08 1 4.1668e-07
outer loop
vertex 4.82342 2.27362 0.586404
vertex 4.82342 2.27362 -0.557967
vertex -1.618703 2.27362 -0.557967
endloop
endfacet
facet normal 8.76197e-08 1 3.1251e-07
outer loop
vertex -1.618703 2.27362 -0.557967
vertex -1.618703 2.27362 0.586404
vertex 4.82342 2.27362 0.586404
endloop
endfacet
endsolid top
solid inlet
facet normal -1 2.54891e-07 -2.60425e-07
outer loop
vertex -1.618703 -1.830978 -0.557967
vertex -1.618703 2.27362 0.586404
vertex -1.618703 2.27362 -0.557967
endloop
endfacet
facet normal -1 1.69927e-07 -1.0417e-07
outer loop
vertex -1.618703 -1.830978 -0.557967
vertex -1.618703 -1.830978 0.586404
vertex -1.618703 2.27362 0.586404
endloop
endfacet
endsolid inlet
solid outlet
facet normal 1 0 8.33361e-07
outer loop
vertex 4.82342 2.27362 -0.557967
vertex 4.82342 -1.830978 0.586404
vertex 4.82342 -1.830978 -0.557967
endloop
endfacet
facet normal 1 -6.79708e-07 -4.16681e-07
outer loop
vertex 4.82342 2.27362 -0.557967
vertex 4.82342 2.27362 0.586404
vertex 4.82342 -1.830978 0.586404
endloop
endfacet
endsolid outlet

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,21 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "constant";
object turbulenceProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
simulationType laminar;
// ************************************************************************* //

View File

@ -0,0 +1,55 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
application rhoCentralFoam;
startFrom startTime;
startTime 0;
stopAt endTime;
endTime 10;
deltaT 0.001;
writeControl adjustableRunTime;
writeInterval 0.25;
purgeWrite 0;
writeFormat ascii;
writePrecision 12;
writeCompression off;
timeFormat general;
timePrecision 6;
runTimeModifiable true;
adjustTimeStep yes;
maxCo 0.5;
maxDeltaT 1;
// ************************************************************************* //

View File

@ -0,0 +1,55 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
application rhoCentralFoam;
startFrom startTime;
startTime 0;
stopAt endTime;
endTime 100;
deltaT 1;
writeControl adjustableRunTime;
writeInterval 1;
purgeWrite 0;
writeFormat ascii;
writePrecision 12;
writeCompression off;
timeFormat general;
timePrecision 6;
runTimeModifiable true;
adjustTimeStep yes;
maxCo 0.2;
maxDeltaT 1;
// ************************************************************************* //

View File

@ -0,0 +1,55 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
application rhoCentralFoam;
startFrom startTime;
startTime 0;
stopAt endTime;
endTime 10;
deltaT 0.001;
writeControl adjustableRunTime;
writeInterval 0.25;
purgeWrite 0;
writeFormat ascii;
writePrecision 12;
writeCompression off;
timeFormat general;
timePrecision 6;
runTimeModifiable true;
adjustTimeStep yes;
maxCo 0.5;
maxDeltaT 1;
// ************************************************************************* //

View File

@ -0,0 +1,45 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object decomposeParDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
numberOfSubdomains 8;
method hierarchical;
simpleCoeffs
{
n ( 2 2 1 );
delta 0.001;
}
hierarchicalCoeffs
{
n ( 2 2 2 );
delta 0.001;
order xyz;
}
manualCoeffs
{
dataFile "";
}
distributed no;
roots ( );
// ************************************************************************* //

View File

@ -0,0 +1,42 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object extrude2DMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
extrudeModel linearDirection;
patchInfo
{}
patchType empty;
nLayers 1;
expansionRatio 1.0;
linearDirectionCoeffs
{
direction (0 0 1);
thickness 0.1;
}
wedgeCoeffs
{
axisPt (0 0 0);
axis (1 0 0);
angle 10;
}
// ************************************************************************* //

View File

@ -0,0 +1,159 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object foamyHex2DMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
geometry
{
opencfd_text.stl
{
name letters;
type closedTriSurfaceMesh;
}
opencfd_box.stl
{
name box;
type closedTriSurfaceMesh;
}
}
surfaceConformation
{
// The z-coordinate of the plane is taken from here.
locationInMesh (0 0 0);
pointPairDistanceCoeff 0.1;
minEdgeLenCoeff 0.1;
maxNotchLenCoeff 1.0;
minNearPointDistCoeff 0.1;
maxQuadAngle 120;
// Insert near-boundary point mirror or point-pairs
insertSurfaceNearestPointPairs yes;
// Mirror near-boundary points rather than insert point-pairs
mirrorPoints no;
// Insert point-pairs vor dual-cell vertices very near the surface
insertSurfaceNearPointPairs yes;
// Maximum number of iterations used in boundaryConform.
maxBoundaryConformingIter 5;
geometryToConformTo
{
letters
{
featureMethod extendedFeatureEdgeMesh;
extendedFeatureEdgeMesh "opencfd_text.extendedFeatureEdgeMesh";
}
box
{
featureMethod extendedFeatureEdgeMesh;
extendedFeatureEdgeMesh "opencfd_box.extendedFeatureEdgeMesh";
}
}
additionalFeatures
{}
// Choose if to randomise the initial grid created by insertGrid.
randomiseInitialGrid yes;
// Perturbation fraction, 1 = cell-size.
randomPerturbation 0.1;
}
motionControl
{
// This is a tolerance for determining whether to deal with surface
// protrusions or not.
minCellSize 0.02;
// Assign a priority to all requests for cell sizes, the highest overrules.
defaultPriority 0;
shapeControlFunctions
{
letters
{
type searchableSurfaceControl;
priority 1;
mode inside;
cellSizeFunction uniform;
linearDistanceCoeffs
{
distanceCellSizeCoeff 1;
distanceCoeff 50;
}
uniformCoeffs
{}
surfaceCellSizeFunction uniformValue;
uniformValueCoeffs
{
surfaceCellSizeCoeff 1;
}
}
}
relaxationModel adaptiveLinear;
adaptiveLinearCoeffs
{
relaxationStart 0.5;
relaxationEnd 0.0;
}
objOutput no;
meshedSurfaceOutput yes;
// Near-wall region where cells are aligned with the wall specified as a
// number of cell layers
nearWallAlignedDist 3;
}
shortEdgeFilter
{
// Factor to multiply the average of a face's edge lengths by.
// If an edge of that face is smaller than that value then delete it.
shortEdgeFilterFactor 0.2;
// Weighting for the lengths of edges that are attached to the boundaries.
// Used when calculating the length of an edge. Default 2.0.
edgeAttachedToBoundaryFactor 2.0;
}
extrusion
{
extrude off;
#include "extrude2DMeshDict"
}
// ************************************************************************* //

View File

@ -0,0 +1,61 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object fvSchemes;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
//fluxScheme Kurganov;
fluxScheme Tadmor;
ddtSchemes
{
default Euler;
}
gradSchemes
{
default Gauss linear;
}
divSchemes
{
default none;
div(tauMC) Gauss linear;
}
laplacianSchemes
{
default Gauss linear corrected;
}
interpolationSchemes
{
default linear;
reconstruct(rho) vanLeer;
reconstruct(U) vanLeerV;
reconstruct(T) vanLeer;
}
snGradSchemes
{
default corrected;
}
fluxRequired
{
default no;
}
// ************************************************************************* //

View File

@ -0,0 +1,42 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object fvSolution;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
solvers
{
"(rho|rhoU|rhoE)"
{
solver diagonal;
}
U
{
solver smoothSolver;
smoother GaussSeidel;
nSweeps 2;
tolerance 1e-09;
relTol 0.01;
}
h
{
$U;
tolerance 1e-10;
relTol 0;
}
}
// ************************************************************************* //

View File

@ -0,0 +1,87 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object surfaceFeatureExtractDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
opencfd_text.stl
{
extractionMethod extractFromSurface;
extractFromSurfaceCoeffs
{
// Mark edges whose adjacent surface normals are at an angle less
// than includedAngle as features
// - 0 : selects no edges
// - 180: selects all edges
includedAngle 120;
}
subsetFeatures
{
// Use a plane to select feature edges
// (normal)(basePoint)
// Keep only edges that intersect the plane will be included
plane (0 0 1)(0 0 0);
// Keep nonManifold edges (edges with >2 connected faces where
// the faces form more than two different normal planes)
nonManifoldEdges no;
// Keep open edges (edges with 1 connected face)
openEdges no;
}
// Write options
// Write features to obj format for postprocessing
writeObj no;
}
opencfd_box.stl
{
extractionMethod extractFromSurface;
extractFromSurfaceCoeffs
{
// Mark edges whose adjacent surface normals are at an angle less
// than includedAngle as features
// - 0 : selects no edges
// - 180: selects all edges
includedAngle 120;
}
subsetFeatures
{
// Use a plane to select feature edges
// (normal)(basePoint)
// Keep only edges that intersect the plane will be included
plane (0 0 1)(0 0 0);
// Keep nonManifold edges (edges with >2 connected faces where
// the faces form more than two different normal planes)
nonManifoldEdges no;
// Keep open edges (edges with 1 connected face)
openEdges no;
}
// Write options
// Write features to obj format for postprocessing
writeObj no;
}
// ************************************************************************* //

View File

@ -0,0 +1,16 @@
#!/bin/sh
cd ${0%/*} || exit 1 # run from this directory
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
rm -rf constant/extendedFeatureEdgeMesh > /dev/null 2>&1
rm -rf constant/triSurface/jaggedBoundary.eMesh > /dev/null 2>&1
rm -rf constant/polyMesh > /dev/null 2>&1
rm -rf MeshedSurface.obj > /dev/null 2>&1
cleanCase
# ----------------------------------------------------------------- end-of-file

View File

@ -0,0 +1,13 @@
#!/bin/sh
cd ${0%/*} || exit 1 # run from this directory
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
runApplication surfaceFeatureExtract
runApplication foamyHex2DMesh -overwrite
runApplication extrude2DMesh -overwrite MeshedSurface
runApplication checkMesh -allGeometry -allTopology -constant -noZero
# ----------------------------------------------------------------- end-of-file

View File

@ -0,0 +1,954 @@
solid jagged
facet normal 0.468764725245 0.883323062286 -0
outer loop
vertex 0.0385189987719 -0.0289657991379 -1.5
vertex -0.0187957007438 0.00145015004091 1.5
vertex 0.0385189987719 -0.0289657991379 1.5
endloop
endfacet
facet normal 0.647754318236 0.761849291662 -0
outer loop
vertex -0.0682383030653 0.0434882007539 -1.5
vertex -0.0682383030653 0.0434882007539 1.5
vertex -0.0187957007438 0.00145015004091 -1.5
endloop
endfacet
facet normal 0.647754318236 0.761849291662 -0
outer loop
vertex -0.0187957007438 0.00145015004091 -1.5
vertex -0.0682383030653 0.0434882007539 1.5
vertex -0.0187957007438 0.00145015004091 1.5
endloop
endfacet
facet normal 0.796376571447 0.604801088334 -0
outer loop
vertex -0.107496999204 0.0951823964715 -1.5
vertex -0.107496999204 0.0951823964715 1.5
vertex -0.0682383030653 0.0434882007539 -1.5
endloop
endfacet
facet normal 0.796376571447 0.604801088334 -0
outer loop
vertex -0.0682383030653 0.0434882007539 -1.5
vertex -0.107496999204 0.0951823964715 1.5
vertex -0.0682383030653 0.0434882007539 1.5
endloop
endfacet
facet normal 0.907731420759 0.419551746233 -0
outer loop
vertex -0.134736001492 0.154116004705 -1.5
vertex -0.134736001492 0.154116004705 1.5
vertex -0.107496999204 0.0951823964715 -1.5
endloop
endfacet
facet normal 0.907731420759 0.419551746233 -0
outer loop
vertex -0.107496999204 0.0951823964715 -1.5
vertex -0.134736001492 0.154116004705 1.5
vertex -0.107496999204 0.0951823964715 1.5
endloop
endfacet
facet normal 0.976665530864 0.214766014121 -0
outer loop
vertex -0.148680999875 0.217531993985 -1.5
vertex -0.148680999875 0.217531993985 1.5
vertex -0.134736001492 0.154116004705 -1.5
endloop
endfacet
facet normal 0.976665530864 0.214766014121 -0
outer loop
vertex -0.134736001492 0.154116004705 -1.5
vertex -0.148680999875 0.217531993985 1.5
vertex -0.134736001492 0.154116004705 1.5
endloop
endfacet
facet normal 1 0 -0
outer loop
vertex -0.148680999875 0.282467007637 -1.5
vertex -0.148680999875 0.282467007637 1.5
vertex -0.148680999875 0.217531993985 -1.5
endloop
endfacet
facet normal 1 0 0
outer loop
vertex -0.148680999875 0.217531993985 -1.5
vertex -0.148680999875 0.282467007637 1.5
vertex -0.148680999875 0.217531993985 1.5
endloop
endfacet
facet normal 0.976666240056 -0.214762788992 0
outer loop
vertex -0.134736001492 0.345883995295 -1.5
vertex -0.134736001492 0.345883995295 1.5
vertex -0.148680999875 0.282467007637 -1.5
endloop
endfacet
facet normal 0.976666240056 -0.214762788992 0
outer loop
vertex -0.148680999875 0.282467007637 -1.5
vertex -0.134736001492 0.345883995295 1.5
vertex -0.148680999875 0.282467007637 1.5
endloop
endfacet
facet normal 0.90773249136 -0.4195494299 0
outer loop
vertex -0.107496999204 0.404817998409 -1.5
vertex -0.107496999204 0.404817998409 1.5
vertex -0.134736001492 0.345883995295 -1.5
endloop
endfacet
facet normal 0.90773249136 -0.4195494299 0
outer loop
vertex -0.134736001492 0.345883995295 -1.5
vertex -0.107496999204 0.404817998409 1.5
vertex -0.134736001492 0.345883995295 1.5
endloop
endfacet
facet normal 0.796375500831 -0.604802498073 0
outer loop
vertex -0.0682383030653 0.456512004137 -1.5
vertex -0.0682383030653 0.456512004137 1.5
vertex -0.107496999204 0.404817998409 -1.5
endloop
endfacet
facet normal -0.99415065992 0.108002154517 0
outer loop
vertex 0.442546993494 0.185445994139 -1.5
vertex 0.442546993494 0.185445994139 1.5
vertex 0.449559986591 0.25 -1.5
endloop
endfacet
facet normal -0.99415065992 0.108002154517 0
outer loop
vertex 0.449559986591 0.25 -1.5
vertex 0.442546993494 0.185445994139 1.5
vertex 0.449559986591 0.25 1.5
endloop
endfacet
facet normal -0.947745893024 0.319026209355 0
outer loop
vertex 0.421833008528 0.12391000241 -1.5
vertex 0.421833008528 0.12391000241 1.5
vertex 0.442546993494 0.185445994139 -1.5
endloop
endfacet
facet normal -0.947745893024 0.319026209355 0
outer loop
vertex 0.442546993494 0.185445994139 -1.5
vertex 0.421833008528 0.12391000241 1.5
vertex 0.442546993494 0.185445994139 1.5
endloop
endfacet
facet normal -0.857078113059 0.515186478971 0
outer loop
vertex 0.388388007879 0.0682699978352 -1.5
vertex 0.388388007879 0.0682699978352 1.5
vertex 0.421833008528 0.12391000241 -1.5
endloop
endfacet
facet normal -0.857078113059 0.515186478971 0
outer loop
vertex 0.421833008528 0.12391000241 -1.5
vertex 0.388388007879 0.0682699978352 1.5
vertex 0.421833008528 0.12391000241 1.5
endloop
endfacet
facet normal -0.726331758 0.687344293146 0
outer loop
vertex 0.343775987625 0.02112749964 -1.5
vertex 0.343775987625 0.02112749964 1.5
vertex 0.388388007879 0.0682699978352 -1.5
endloop
endfacet
facet normal -0.726331758 0.687344293146 0
outer loop
vertex 0.388388007879 0.0682699978352 -1.5
vertex 0.343775987625 0.02112749964 1.5
vertex 0.388388007879 0.0682699978352 1.5
endloop
endfacet
facet normal -0.561565427605 0.827432335916 0
outer loop
vertex 0.290082991123 -0.0153131000698 -1.5
vertex 0.290082991123 -0.0153131000698 1.5
vertex 0.343775987625 0.02112749964 -1.5
endloop
endfacet
facet normal -0.561565427605 0.827432335916 0
outer loop
vertex 0.343775987625 0.02112749964 -1.5
vertex 0.290082991123 -0.0153131000698 1.5
vertex 0.343775987625 0.02112749964 1.5
endloop
endfacet
facet normal -0.370449778906 0.928852497068 0
outer loop
vertex 0.229818999767 -0.0393478982151 -1.5
vertex 0.229818999767 -0.0393478982151 1.5
vertex 0.290082991123 -0.0153131000698 -1.5
endloop
endfacet
facet normal -0.370449778906 0.928852497068 0
outer loop
vertex 0.290082991123 -0.0153131000698 -1.5
vertex 0.229818999767 -0.0393478982151 1.5
vertex 0.290082991123 -0.0153131000698 1.5
endloop
endfacet
facet normal -0.161937308414 0.986801047904 0
outer loop
vertex 0.165802001953 -0.0498532988131 -1.5
vertex 0.165802001953 -0.0498532988131 1.5
vertex 0.229818999767 -0.0393478982151 -1.5
endloop
endfacet
facet normal -0.161937308414 0.986801047904 0
outer loop
vertex 0.229818999767 -0.0393478982151 -1.5
vertex 0.165802001953 -0.0498532988131 1.5
vertex 0.229818999767 -0.0393478982151 1.5
endloop
endfacet
facet normal 0.0541918998299 0.998530539339 -0
outer loop
vertex 0.101025998592 -0.0463377982378 -1.5
vertex 0.101025998592 -0.0463377982378 1.5
vertex 0.165802001953 -0.0498532988131 -1.5
endloop
endfacet
facet normal 0.0541918998299 0.998530539339 -0
outer loop
vertex 0.165802001953 -0.0498532988131 -1.5
vertex 0.101025998592 -0.0463377982378 1.5
vertex 0.165802001953 -0.0498532988131 1.5
endloop
endfacet
facet normal 0.267771842801 0.963482350748 -0
outer loop
vertex 0.0385189987719 -0.0289657991379 -1.5
vertex 0.0385189987719 -0.0289657991379 1.5
vertex 0.101025998592 -0.0463377982378 -1.5
endloop
endfacet
facet normal 0.267771842801 0.963482350748 -0
outer loop
vertex 0.101025998592 -0.0463377982378 -1.5
vertex 0.0385189987719 -0.0289657991379 1.5
vertex 0.101025998592 -0.0463377982378 1.5
endloop
endfacet
facet normal 0.468764725245 0.883323062286 -0
outer loop
vertex -0.0187957007438 0.00145015004091 -1.5
vertex -0.0187957007438 0.00145015004091 1.5
vertex 0.0385189987719 -0.0289657991379 -1.5
endloop
endfacet
facet normal -0.947745881345 -0.31902624405 0
outer loop
vertex 0.442546993494 0.314554005861 -1.5
vertex 0.442546993494 0.314554005861 1.5
vertex 0.421833008528 0.376089990139 -1.5
endloop
endfacet
facet normal -0.947745881345 -0.31902624405 0
outer loop
vertex 0.421833008528 0.376089990139 -1.5
vertex 0.442546993494 0.314554005861 1.5
vertex 0.421833008528 0.376089990139 1.5
endloop
endfacet
facet normal -0.99415065992 -0.108002154517 0
outer loop
vertex 0.449559986591 0.25 -1.5
vertex 0.449559986591 0.25 1.5
vertex 0.442546993494 0.314554005861 -1.5
endloop
endfacet
facet normal -0.99415065992 -0.108002154517 0
outer loop
vertex 0.442546993494 0.314554005861 -1.5
vertex 0.449559986591 0.25 1.5
vertex 0.442546993494 0.314554005861 1.5
endloop
endfacet
facet normal 0 -1 0
outer loop
vertex -0.300000011921 0 -1.39999997616
vertex -0.300000011921 0 1.5
vertex -0.699999988079 0 -1.39999997616
endloop
endfacet
facet normal 0 -1 0
outer loop
vertex -0.699999988079 0 -1.39999997616
vertex -0.300000011921 0 1.5
vertex -0.699999988079 0 1.5
endloop
endfacet
facet normal -1 0 0
outer loop
vertex -0.300000011921 -0.40000000596 -1.39999997616
vertex -0.300000011921 -0.40000000596 1.5
vertex -0.300000011921 0 -1.39999997616
endloop
endfacet
facet normal -1 0 0
outer loop
vertex -0.300000011921 0 -1.39999997616
vertex -0.300000011921 -0.40000000596 1.5
vertex -0.300000011921 0 1.5
endloop
endfacet
facet normal 0 1 0
outer loop
vertex -0.699999988079 -0.40000000596 -1.39999997616
vertex -0.699999988079 -0.40000000596 1.5
vertex -0.300000011921 -0.40000000596 -1.39999997616
endloop
endfacet
facet normal 0 1 -0
outer loop
vertex -0.300000011921 -0.40000000596 -1.39999997616
vertex -0.699999988079 -0.40000000596 1.5
vertex -0.300000011921 -0.40000000596 1.5
endloop
endfacet
facet normal 1 0 -0
outer loop
vertex -0.699999988079 0 -1.39999997616
vertex -0.699999988079 0 1.5
vertex -0.699999988079 -0.40000000596 -1.39999997616
endloop
endfacet
facet normal 1 0 0
outer loop
vertex -0.699999988079 -0.40000000596 -1.39999997616
vertex -0.699999988079 0 1.5
vertex -0.699999988079 -0.40000000596 1.5
endloop
endfacet
facet normal 0.796375500831 -0.604802498073 0
outer loop
vertex -0.107496999204 0.404817998409 -1.5
vertex -0.0682383030653 0.456512004137 1.5
vertex -0.107496999204 0.404817998409 1.5
endloop
endfacet
facet normal 0.647754558747 -0.761849087171 0
outer loop
vertex -0.018795799464 0.498549997807 -1.5
vertex -0.018795799464 0.498549997807 1.5
vertex -0.0682383030653 0.456512004137 -1.5
endloop
endfacet
facet normal 0.647754558747 -0.761849087171 0
outer loop
vertex -0.0682383030653 0.456512004137 -1.5
vertex -0.018795799464 0.498549997807 1.5
vertex -0.0682383030653 0.456512004137 1.5
endloop
endfacet
facet normal 0.468765490288 -0.88332265629 0
outer loop
vertex 0.0385188981891 0.528966009617 -1.5
vertex 0.0385188981891 0.528966009617 1.5
vertex -0.018795799464 0.498549997807 -1.5
endloop
endfacet
facet normal 0.468765490288 -0.88332265629 0
outer loop
vertex -0.018795799464 0.498549997807 -1.5
vertex 0.0385188981891 0.528966009617 1.5
vertex -0.018795799464 0.498549997807 1.5
endloop
endfacet
facet normal 0.267771629378 -0.963482410063 0
outer loop
vertex 0.101025998592 0.546338021755 -1.5
vertex 0.101025998592 0.546338021755 1.5
vertex 0.0385188981891 0.528966009617 -1.5
endloop
endfacet
facet normal 0.267771629378 -0.963482410063 0
outer loop
vertex 0.0385188981891 0.528966009617 -1.5
vertex 0.101025998592 0.546338021755 1.5
vertex 0.0385188981891 0.528966009617 1.5
endloop
endfacet
facet normal 0.0541842846189 -0.9985309526 0
outer loop
vertex 0.165802001953 0.549853026867 -1.5
vertex 0.165802001953 0.549853026867 1.5
vertex 0.101025998592 0.546338021755 -1.5
endloop
endfacet
facet normal 0.0541842846189 -0.9985309526 0
outer loop
vertex 0.101025998592 0.546338021755 -1.5
vertex 0.165802001953 0.549853026867 1.5
vertex 0.101025998592 0.546338021755 1.5
endloop
endfacet
facet normal -0.161931604744 -0.986801983878 0
outer loop
vertex 0.229818999767 0.539348006248 -1.5
vertex 0.229818999767 0.539348006248 1.5
vertex 0.165802001953 0.549853026867 -1.5
endloop
endfacet
facet normal -0.161931604744 -0.986801983878 0
outer loop
vertex 0.165802001953 0.549853026867 -1.5
vertex 0.229818999767 0.539348006248 1.5
vertex 0.165802001953 0.549853026867 1.5
endloop
endfacet
facet normal -0.370452156748 -0.928851548721 0
outer loop
vertex 0.290082991123 0.515313029289 -1.5
vertex 0.290082991123 0.515313029289 1.5
vertex 0.229818999767 0.539348006248 -1.5
endloop
endfacet
facet normal -0.370452156748 -0.928851548721 0
outer loop
vertex 0.229818999767 0.539348006248 -1.5
vertex 0.290082991123 0.515313029289 1.5
vertex 0.229818999767 0.539348006248 1.5
endloop
endfacet
facet normal -0.561559256785 -0.827436523921 0
outer loop
vertex 0.343775987625 0.47887301445 -1.5
vertex 0.343775987625 0.47887301445 1.5
vertex 0.290082991123 0.515313029289 -1.5
endloop
endfacet
facet normal -0.561559256785 -0.827436523921 0
outer loop
vertex 0.290082991123 0.515313029289 -1.5
vertex 0.343775987625 0.47887301445 1.5
vertex 0.290082991123 0.515313029289 1.5
endloop
endfacet
facet normal -0.726335500024 -0.687340338846 0
outer loop
vertex 0.388388007879 0.431730002165 -1.5
vertex 0.388388007879 0.431730002165 1.5
vertex 0.343775987625 0.47887301445 -1.5
endloop
endfacet
facet normal -0.726335500024 -0.687340338846 0
outer loop
vertex 0.343775987625 0.47887301445 -1.5
vertex 0.388388007879 0.431730002165 1.5
vertex 0.343775987625 0.47887301445 1.5
endloop
endfacet
facet normal -0.857078143521 -0.515186428295 0
outer loop
vertex 0.421833008528 0.376089990139 -1.5
vertex 0.421833008528 0.376089990139 1.5
vertex 0.388388007879 0.431730002165 -1.5
endloop
endfacet
facet normal -0.857078143521 -0.515186428295 0
outer loop
vertex 0.388388007879 0.431730002165 -1.5
vertex 0.421833008528 0.376089990139 1.5
vertex 0.388388007879 0.431730002165 1.5
endloop
endfacet
facet normal 1 -0 0
outer loop
vertex 1.29999995232 0 1.5
vertex 1.29999995232 0.40000000596 -1.5
vertex 1.29999995232 0.40000000596 1.5
endloop
endfacet
facet normal 0 -1 0
outer loop
vertex 0.899999976158 0 1.5
vertex 0.899999976158 0 -1.5
vertex 1.29999995232 0 -1.5
endloop
endfacet
facet normal 0 -1 0
outer loop
vertex 0.899999976158 0 1.5
vertex 1.29999995232 0 -1.5
vertex 1.29999995232 0 1.5
endloop
endfacet
facet normal 0.196116149188 -0.980580672881 0
outer loop
vertex 0.40000000596 -0.10000000149 1.5
vertex 0.40000000596 -0.10000000149 -1.5
vertex 0.899999976158 0 -1.5
endloop
endfacet
facet normal 0.196116149188 -0.980580672881 0
outer loop
vertex 0.40000000596 -0.10000000149 1.5
vertex 0.899999976158 0 -1.5
vertex 0.899999976158 0 1.5
endloop
endfacet
facet normal 1 0 0
outer loop
vertex 0.40000000596 -0.300000011921 1.5
vertex 0.40000000596 -0.300000011921 -1.5
vertex 0.40000000596 -0.10000000149 -1.5
endloop
endfacet
facet normal 1 -0 0
outer loop
vertex 0.40000000596 -0.300000011921 1.5
vertex 0.40000000596 -0.10000000149 -1.5
vertex 0.40000000596 -0.10000000149 1.5
endloop
endfacet
facet normal 0.242535608029 0.970142504397 0
outer loop
vertex 0.800000011921 -0.40000000596 1.5
vertex 0.800000011921 -0.40000000596 -1.5
vertex 0.40000000596 -0.300000011921 -1.5
endloop
endfacet
facet normal 0.242535608029 0.970142504397 0
outer loop
vertex 0.800000011921 -0.40000000596 1.5
vertex 0.40000000596 -0.300000011921 -1.5
vertex 0.40000000596 -0.300000011921 1.5
endloop
endfacet
facet normal 0.242535591022 0.970142508649 0
outer loop
vertex 1.20000004768 -0.5 1.5
vertex 1.20000004768 -0.5 -1.5
vertex 0.800000011921 -0.40000000596 -1.5
endloop
endfacet
facet normal 0.242535591022 0.970142508649 0
outer loop
vertex 1.20000004768 -0.5 1.5
vertex 0.800000011921 -0.40000000596 -1.5
vertex 0.800000011921 -0.40000000596 1.5
endloop
endfacet
facet normal 0.980580666699 -0.196116180098 0
outer loop
vertex 1.10000002384 -1 1.5
vertex 1.10000002384 -1 -1.5
vertex 1.20000004768 -0.5 -1.5
endloop
endfacet
facet normal 0.980580666699 -0.196116180098 0
outer loop
vertex 1.10000002384 -1 1.5
vertex 1.20000004768 -0.5 -1.5
vertex 1.20000004768 -0.5 1.5
endloop
endfacet
facet normal 0.124034761887 -0.992277873301 0
outer loop
vertex 0.300000011921 -1.10000002384 1.5
vertex 0.300000011921 -1.10000002384 -1.5
vertex 1.10000002384 -1 -1.5
endloop
endfacet
facet normal 0.124034761887 -0.992277873301 0
outer loop
vertex 0.300000011921 -1.10000002384 1.5
vertex 1.10000002384 -1 -1.5
vertex 1.10000002384 -1 1.5
endloop
endfacet
facet normal -0.894427244312 0.447213488876 0
outer loop
vertex 0.40000000596 -0.899999976158 1.5
vertex 0.40000000596 -0.899999976158 -1.5
vertex 0.300000011921 -1.10000002384 -1.5
endloop
endfacet
facet normal 0.707106781187 0.707106781187 0
outer loop
vertex -0.600000023842 0.699999988079 1.5
vertex -0.600000023842 0.699999988079 -1.5
vertex -0.800000011921 0.899999976158 -1.5
endloop
endfacet
facet normal 0.707106781187 0.707106781187 0
outer loop
vertex -0.600000023842 0.699999988079 1.5
vertex -0.800000011921 0.899999976158 -1.5
vertex -0.800000011921 0.899999976158 1.5
endloop
endfacet
facet normal 0 1 0
outer loop
vertex -0.40000000596 0.699999988079 1.5
vertex -0.40000000596 0.699999988079 -1.5
vertex -0.600000023842 0.699999988079 -1.5
endloop
endfacet
facet normal 0 1 0
outer loop
vertex -0.40000000596 0.699999988079 1.5
vertex -0.600000023842 0.699999988079 -1.5
vertex -0.600000023842 0.699999988079 1.5
endloop
endfacet
facet normal -0.948683307475 0.316227737744 0
outer loop
vertex -0.300000011921 1 1.5
vertex -0.300000011921 1 -1.5
vertex -0.40000000596 0.699999988079 -1.5
endloop
endfacet
facet normal -0.948683307475 0.316227737744 0
outer loop
vertex -0.300000011921 1 1.5
vertex -0.40000000596 0.699999988079 -1.5
vertex -0.40000000596 0.699999988079 1.5
endloop
endfacet
facet normal -0.316227822563 0.948683279202 0
outer loop
vertex 0 1.10000002384 1.5
vertex 0 1.10000002384 -1.5
vertex -0.300000011921 1 -1.5
endloop
endfacet
facet normal -0.316227822563 0.948683279202 0
outer loop
vertex 0 1.10000002384 1.5
vertex -0.300000011921 1 -1.5
vertex -0.300000011921 1 1.5
endloop
endfacet
facet normal 0.447213675468 0.894427151016 0
outer loop
vertex 0.20000000298 1 1.5
vertex 0.20000000298 1 -1.5
vertex 0 1.10000002384 -1.5
endloop
endfacet
facet normal 0.447213675468 0.894427151016 0
outer loop
vertex 0.20000000298 1 1.5
vertex 0 1.10000002384 -1.5
vertex 0 1.10000002384 1.5
endloop
endfacet
facet normal 0.554700177151 0.832050307054 0
outer loop
vertex 0.5 0.800000011921 1.5
vertex 0.5 0.800000011921 -1.5
vertex 0.20000000298 1 -1.5
endloop
endfacet
facet normal 0.554700177151 0.832050307054 0
outer loop
vertex 0.5 0.800000011921 1.5
vertex 0.20000000298 1 -1.5
vertex 0.20000000298 1 1.5
endloop
endfacet
facet normal -0.707106781187 0.707106781187 0
outer loop
vertex 0.699999988079 1 1.5
vertex 0.699999988079 1 -1.5
vertex 0.5 0.800000011921 -1.5
endloop
endfacet
facet normal -0.707106781187 0.707106781187 0
outer loop
vertex 0.699999988079 1 1.5
vertex 0.5 0.800000011921 -1.5
vertex 0.5 0.800000011921 1.5
endloop
endfacet
facet normal 0.554700158076 0.832050319771 0
outer loop
vertex 1 0.800000011921 1.5
vertex 1 0.800000011921 -1.5
vertex 0.699999988079 1 -1.5
endloop
endfacet
facet normal 0.554700158076 0.832050319771 0
outer loop
vertex 1 0.800000011921 1.5
vertex 0.699999988079 1 -1.5
vertex 0.699999988079 1 1.5
endloop
endfacet
facet normal 0.800000050068 0.599999933243 0
outer loop
vertex 1.29999995232 0.40000000596 1.5
vertex 1.29999995232 0.40000000596 -1.5
vertex 1 0.800000011921 -1.5
endloop
endfacet
facet normal 0.800000050068 0.599999933243 0
outer loop
vertex 1.29999995232 0.40000000596 1.5
vertex 1 0.800000011921 -1.5
vertex 1 0.800000011921 1.5
endloop
endfacet
facet normal 1 0 0
outer loop
vertex 1.29999995232 0 1.5
vertex 1.29999995232 0 -1.5
vertex 1.29999995232 0.40000000596 -1.5
endloop
endfacet
facet normal -0.707106702161 -0.707106860212 -0
outer loop
vertex -1.20000004768 0.10000000149 1.5
vertex -1.20000004768 0.10000000149 -1.5
vertex -1.10000002384 0 -1.5
endloop
endfacet
facet normal -0.707106702161 -0.707106860212 0
outer loop
vertex -1.20000004768 0.10000000149 1.5
vertex -1.10000002384 0 -1.5
vertex -1.10000002384 0 1.5
endloop
endfacet
facet normal -0.894427370928 -0.447213235644 -0
outer loop
vertex -1.29999995232 0.300000011921 1.5
vertex -1.29999995232 0.300000011921 -1.5
vertex -1.20000004768 0.10000000149 -1.5
endloop
endfacet
facet normal -0.894427370928 -0.447213235644 0
outer loop
vertex -1.29999995232 0.300000011921 1.5
vertex -1.20000004768 0.10000000149 -1.5
vertex -1.20000004768 0.10000000149 1.5
endloop
endfacet
facet normal -0.894427350936 0.447213275628 0
outer loop
vertex -1.20000004768 0.5 1.5
vertex -1.20000004768 0.5 -1.5
vertex -1.29999995232 0.300000011921 -1.5
endloop
endfacet
facet normal -0.894427350936 0.447213275628 0
outer loop
vertex -1.20000004768 0.5 1.5
vertex -1.29999995232 0.300000011921 -1.5
vertex -1.29999995232 0.300000011921 1.5
endloop
endfacet
facet normal -0.894427350936 -0.447213275628 -0
outer loop
vertex -1.29999995232 0.699999988079 1.5
vertex -1.29999995232 0.699999988079 -1.5
vertex -1.20000004768 0.5 -1.5
endloop
endfacet
facet normal -0.894427350936 -0.447213275628 0
outer loop
vertex -1.29999995232 0.699999988079 1.5
vertex -1.20000004768 0.5 -1.5
vertex -1.20000004768 0.5 1.5
endloop
endfacet
facet normal -1 0 -0
outer loop
vertex -1.29999995232 0.800000011921 1.5
vertex -1.29999995232 0.800000011921 -1.5
vertex -1.29999995232 0.699999988079 -1.5
endloop
endfacet
facet normal -1 -0 0
outer loop
vertex -1.29999995232 0.800000011921 1.5
vertex -1.29999995232 0.699999988079 -1.5
vertex -1.29999995232 0.699999988079 1.5
endloop
endfacet
facet normal 0.447213808748 0.894427084376 0
outer loop
vertex -1.10000002384 0.699999988079 1.5
vertex -1.10000002384 0.699999988079 -1.5
vertex -1.29999995232 0.800000011921 -1.5
endloop
endfacet
facet normal 0.447213808748 0.894427084376 0
outer loop
vertex -1.10000002384 0.699999988079 1.5
vertex -1.29999995232 0.800000011921 -1.5
vertex -1.29999995232 0.800000011921 1.5
endloop
endfacet
facet normal -0.4472135955 0.894427191 0
outer loop
vertex -0.899999976158 0.800000011921 1.5
vertex -0.899999976158 0.800000011921 -1.5
vertex -1.10000002384 0.699999988079 -1.5
endloop
endfacet
facet normal -0.4472135955 0.894427191 0
outer loop
vertex -0.899999976158 0.800000011921 1.5
vertex -1.10000002384 0.699999988079 -1.5
vertex -1.10000002384 0.699999988079 1.5
endloop
endfacet
facet normal -0.707106781187 0.707106781187 0
outer loop
vertex -0.800000011921 0.899999976158 1.5
vertex -0.800000011921 0.899999976158 -1.5
vertex -0.899999976158 0.800000011921 -1.5
endloop
endfacet
facet normal -0.707106781187 0.707106781187 0
outer loop
vertex -0.800000011921 0.899999976158 1.5
vertex -0.899999976158 0.800000011921 -1.5
vertex -0.899999976158 0.800000011921 1.5
endloop
endfacet
facet normal -0.894427244312 0.447213488876 0
outer loop
vertex 0.40000000596 -0.899999976158 1.5
vertex 0.300000011921 -1.10000002384 -1.5
vertex 0.300000011921 -1.10000002384 1.5
endloop
endfacet
facet normal -0.316227744812 -0.948683305119 -0
outer loop
vertex -0.20000000298 -0.699999988079 1.5
vertex -0.20000000298 -0.699999988079 -1.5
vertex 0.40000000596 -0.899999976158 -1.5
endloop
endfacet
facet normal -0.316227744812 -0.948683305119 0
outer loop
vertex -0.20000000298 -0.699999988079 1.5
vertex 0.40000000596 -0.899999976158 -1.5
vertex 0.40000000596 -0.899999976158 1.5
endloop
endfacet
facet normal 0.707106754845 -0.707106807528 0
outer loop
vertex -0.40000000596 -0.899999976158 1.5
vertex -0.40000000596 -0.899999976158 -1.5
vertex -0.20000000298 -0.699999988079 -1.5
endloop
endfacet
facet normal 0.707106754845 -0.707106807528 0
outer loop
vertex -0.40000000596 -0.899999976158 1.5
vertex -0.20000000298 -0.699999988079 -1.5
vertex -0.20000000298 -0.699999988079 1.5
endloop
endfacet
facet normal -0.196116078939 -0.980580686931 -0
outer loop
vertex -0.899999976158 -0.800000011921 1.5
vertex -0.899999976158 -0.800000011921 -1.5
vertex -0.40000000596 -0.899999976158 -1.5
endloop
endfacet
facet normal -0.196116078939 -0.980580686931 0
outer loop
vertex -0.899999976158 -0.800000011921 1.5
vertex -0.40000000596 -0.899999976158 -1.5
vertex -0.40000000596 -0.899999976158 1.5
endloop
endfacet
facet normal -0.316227766017 -0.948683298051 -0
outer loop
vertex -1.20000004768 -0.699999988079 1.5
vertex -1.20000004768 -0.699999988079 -1.5
vertex -0.899999976158 -0.800000011921 -1.5
endloop
endfacet
facet normal -0.316227766017 -0.948683298051 0
outer loop
vertex -1.20000004768 -0.699999988079 1.5
vertex -0.899999976158 -0.800000011921 -1.5
vertex -0.899999976158 -0.800000011921 1.5
endloop
endfacet
facet normal -0.948683382869 -0.31622751156 -0
outer loop
vertex -1.29999995232 -0.40000000596 1.5
vertex -1.29999995232 -0.40000000596 -1.5
vertex -1.20000004768 -0.699999988079 -1.5
endloop
endfacet
facet normal -0.948683382869 -0.31622751156 0
outer loop
vertex -1.29999995232 -0.40000000596 1.5
vertex -1.20000004768 -0.699999988079 -1.5
vertex -1.20000004768 -0.699999988079 1.5
endloop
endfacet
facet normal -0.707106912895 0.707106649478 0
outer loop
vertex -1.10000002384 -0.20000000298 1.5
vertex -1.10000002384 -0.20000000298 -1.5
vertex -1.29999995232 -0.40000000596 -1.5
endloop
endfacet
facet normal -0.707106912895 0.707106649478 0
outer loop
vertex -1.10000002384 -0.20000000298 1.5
vertex -1.29999995232 -0.40000000596 -1.5
vertex -1.29999995232 -0.40000000596 1.5
endloop
endfacet
facet normal -0.447213515532 0.894427230984 0
outer loop
vertex -0.899999976158 -0.10000000149 1.5
vertex -0.899999976158 -0.10000000149 -1.5
vertex -1.10000002384 -0.20000000298 -1.5
endloop
endfacet
facet normal -0.447213515532 0.894427230984 0
outer loop
vertex -0.899999976158 -0.10000000149 1.5
vertex -1.10000002384 -0.20000000298 -1.5
vertex -1.10000002384 -0.20000000298 1.5
endloop
endfacet
facet normal -1 0 -0
outer loop
vertex -0.899999976158 0.20000000298 1.5
vertex -0.899999976158 0.20000000298 -1.5
vertex -0.899999976158 -0.10000000149 -1.5
endloop
endfacet
facet normal -1 -0 0
outer loop
vertex -0.899999976158 0.20000000298 1.5
vertex -0.899999976158 -0.10000000149 -1.5
vertex -0.899999976158 -0.10000000149 1.5
endloop
endfacet
facet normal 0.707106702161 -0.707106860212 0
outer loop
vertex -1.10000002384 0 1.5
vertex -1.10000002384 0 -1.5
vertex -0.899999976158 0.20000000298 -1.5
endloop
endfacet
facet normal 0.707106702161 -0.707106860212 0
outer loop
vertex -1.10000002384 0 1.5
vertex -0.899999976158 0.20000000298 -1.5
vertex -0.899999976158 0.20000000298 1.5
endloop
endfacet
endsolid jagged

View File

@ -0,0 +1,47 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
startFrom startTime;
startTime 0;
stopAt endTime;
endTime 100;
deltaT 1;
writeControl timeStep;
writeInterval 1;
purgeWrite 0;
writeFormat ascii;
writePrecision 12;
writeCompression off;
timeFormat general;
timePrecision 6;
runTimeModifiable true;
// ************************************************************************* //

View File

@ -0,0 +1,42 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object extrude2DMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
extrudeModel linearDirection;
patchInfo
{}
patchType empty;
nLayers 1;
expansionRatio 1.0;
linearDirectionCoeffs
{
direction (0 0 1);
thickness 0.1;
}
wedgeCoeffs
{
axisPt (0 0 0);
axis (1 0 0);
angle 10;
}
// ************************************************************************* //

View File

@ -0,0 +1,148 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object foamyHex2DMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
geometry
{
jaggedBoundary.stl
{
name jaggedBoundary;
type closedTriSurfaceMesh;
}
}
surfaceConformation
{
// The z-coordinate of the plane is taken from here.
locationInMesh (-0.6 0.3 0.0);
pointPairDistanceCoeff 0.001;
// If area of a dual cell is less than the square of this, do not refine.
minEdgeLenCoeff 0.001;
// How much cells are allowed to stick out of the surfaces before
// points are inserted onto the boundary
maxNotchLenCoeff 1;
minNearPointDistCoeff 0.001;
maxQuadAngle 125;
// Insert near-boundary point mirror or point-pairs
insertSurfaceNearestPointPairs yes;
// Mirror near-boundary points rather than insert point-pairs
mirrorPoints no;
// Insert point-pairs vor dual-cell vertices very near the surface
insertSurfaceNearPointPairs yes;
// Maximum number of iterations used in boundaryConform.
maxBoundaryConformingIter 5;
geometryToConformTo
{
jaggedBoundary
{
featureMethod extendedFeatureEdgeMesh;
extendedFeatureEdgeMesh "jaggedBoundary.extendedFeatureEdgeMesh";
}
}
additionalFeatures
{
}
// Choose if to randomise the initial grid created by insertGrid.
randomiseInitialGrid yes;
// Perturbation fraction, 1 = cell-size.
randomPerturbation 0.1;
}
motionControl
{
// This is a tolerance for determining whether to deal with surface
// protrusions or not.
minCellSize 0.04;
// Assign a priority to all requests for cell sizes, the highest overrules.
defaultPriority 0;
shapeControlFunctions
{
jaggedBoundary
{
type searchableSurfaceControl;
priority 1;
mode inside;
cellSizeFunction surfaceOffsetLinearDistance;
surfaceOffsetLinearDistanceCoeffs
{
distanceCellSizeCoeff 1;
totalDistanceCoeff 5;
surfaceOffsetCoeff 1;
}
surfaceCellSizeFunction uniformValue;
uniformValueCoeffs
{
surfaceCellSizeCoeff 0.1;
}
}
}
relaxationModel adaptiveLinear;
adaptiveLinearCoeffs
{
relaxationStart 0.5;
relaxationEnd 0.0;
}
objOutput no;
meshedSurfaceOutput yes;
// Near-wall region where cells are aligned with the wall specified as a
// number of cell layers
nearWallAlignedDist 3;
}
shortEdgeFilter
{
// Factor to multiply the average of a face's edge lengths by.
// If an edge of that face is smaller than that value then delete it.
shortEdgeFilterFactor 0.2;
// Weighting for the lengths of edges that are attached to the boundaries.
// Used when calculating the length of an edge. Default 2.0.
edgeAttachedToBoundaryFactor 2.0;
}
extrusion
{
extrude off;
#include "extrude2DMeshDict";
}
// ************************************************************************* //

View File

@ -0,0 +1,54 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object fvSchemes;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
ddtSchemes
{
default none;
}
gradSchemes
{
default none;
}
divSchemes
{
default none;
}
laplacianSchemes
{
default none;
}
interpolationSchemes
{
default none;
}
snGradSchemes
{
default none;
}
fluxRequired
{
default no;
}
// ************************************************************************* //

View File

@ -0,0 +1,22 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object fvSolution;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
solvers
{}
// ************************************************************************* //

View File

@ -0,0 +1,52 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object surfaceFeatureExtractDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
jaggedBoundary.stl
{
extractionMethod extractFromSurface;
extractFromSurfaceCoeffs
{
// Mark edges whose adjacent surface normals are at an angle less
// than includedAngle as features
// - 0 : selects no edges
// - 180: selects all edges
includedAngle 175;
}
subsetFeatures
{
// Use a plane to select feature edges
// (normal)(basePoint)
// Keep only edges that intersect the plane will be included
plane (0 0 1)(-0.6 0.3 0.0);
// Keep nonManifold edges (edges with >2 connected faces where
// the faces form more than two different normal planes)
nonManifoldEdges no;
// Keep open edges (edges with 1 connected face)
openEdges no;
}
// Write options
// Write features to obj format for postprocessing
writeObj no;
}
// ************************************************************************* //

View File

@ -0,0 +1,16 @@
#!/bin/sh
cd ${0%/*} || exit 1 # run from this directory
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
rm -rf constant/extendedFeatureEdgeMesh > /dev/null 2>&1
rm -rf constant/triSurface/unit_cube.eMesh > /dev/null 2>&1
rm -rf constant/polyMesh > /dev/null 2>&1
rm -rf MeshedSurface*.obj > /dev/null 2>&1
cleanCase
# ----------------------------------------------------------------- end-of-file

View File

@ -0,0 +1,13 @@
#!/bin/sh
cd ${0%/*} || exit 1 # run from this directory
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
runApplication surfaceFeatureExtract
runApplication foamyHex2DMesh -overwrite
runApplication extrude2DMesh -overwrite polyMesh2D
runApplication checkMesh -allGeometry -allTopology -constant -noZero
# ----------------------------------------------------------------- end-of-file

View File

@ -0,0 +1,88 @@
solid inlet
facet normal 1 0 0
outer loop
vertex 1 1 0.5
vertex 1 0 0.5
vertex 1 0 -0.5
endloop
endfacet
facet normal 1 0 -0
outer loop
vertex 1 1 -0.5
vertex 1 1 0.5
vertex 1 0 -0.5
endloop
endfacet
endsolid inlet
solid cube.tri
facet normal -1 0 0
outer loop
vertex 0 0 -0.5
vertex 0 0 0.5
vertex 0 1 0.5
endloop
endfacet
facet normal -1 0 0
outer loop
vertex 0 1 -0.5
vertex 0 0 -0.5
vertex 0 1 0.5
endloop
endfacet
facet normal 0 1 0
outer loop
vertex 1 1 0.5
vertex 1 1 -0.5
vertex 0 1 -0.5
endloop
endfacet
facet normal -0 1 0
outer loop
vertex 0 1 0.5
vertex 1 1 0.5
vertex 0 1 -0.5
endloop
endfacet
facet normal 0 -1 0
outer loop
vertex 0 0 -0.5
vertex 1 0 -0.5
vertex 1 0 0.5
endloop
endfacet
facet normal 0 -1 0
outer loop
vertex 0 0 0.5
vertex 0 0 -0.5
vertex 1 0 0.5
endloop
endfacet
facet normal 0 0 1
outer loop
vertex 1 1 0.5
vertex 0 1 0.5
vertex 0 0 0.5
endloop
endfacet
facet normal 0 -0 1
outer loop
vertex 1 0 0.5
vertex 1 1 0.5
vertex 0 0 0.5
endloop
endfacet
facet normal 0 0 -1
outer loop
vertex 0 0 -0.5
vertex 0 1 -0.5
vertex 1 1 -0.5
endloop
endfacet
facet normal 0 0 -1
outer loop
vertex 1 0 -0.5
vertex 0 0 -0.5
vertex 1 1 -0.5
endloop
endfacet
endsolid cube.tri

View File

@ -0,0 +1,52 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
startFrom startTime;
startTime 0;
stopAt endTime;
endTime 100;
deltaT 1;
writeControl timeStep;
writeInterval 1;
purgeWrite 0;
writeFormat ascii;
writePrecision 12;
writeCompression off;
timeFormat general;
timePrecision 6;
runTimeModifiable true;
DebugSwitches
{
shortEdgeFilter2D 0;
}
// ************************************************************************* //

View File

@ -0,0 +1,42 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object extrude2DMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
extrudeModel wedge;
patchInfo
{}
patchType wedge;
nLayers 1;
expansionRatio 1.0;
linearDirectionCoeffs
{
direction (0 0 1);
thickness 0.1;
}
wedgeCoeffs
{
axisPt (0 0 0);
axis (1 0 0);
angle 10;
}
// ************************************************************************* //

View File

@ -0,0 +1,166 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object foamyHex2DMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
geometry
{
unit_cube.stl
{
name cube;
type triSurfaceMesh;
}
refinementBox
{
type searchableBox;
min (0.25 0.25 -1000);
max (0.75 0.75 1000);
}
}
surfaceConformation
{
// The z-coordinate of the plane is taken from here.
locationInMesh (0 0 0);
pointPairDistanceCoeff 0.005;
minEdgeLenCoeff 0.005;
maxNotchLenCoeff 0.003;
minNearPointDistCoeff 0.0025;
maxQuadAngle 125;
// Insert near-boundary point mirror or point-pairs
insertSurfaceNearestPointPairs yes;
// Mirror near-boundary points rather than insert point-pairs
mirrorPoints no;
// Insert point-pairs vor dual-cell vertices very near the surface
insertSurfaceNearPointPairs yes;
// Maximum number of iterations used in boundaryConform.
maxBoundaryConformingIter 5;
geometryToConformTo
{
cube
{
featureMethod extendedFeatureEdgeMesh;
extendedFeatureEdgeMesh "unit_cube.extendedFeatureEdgeMesh";
}
}
additionalFeatures
{}
// Choose if to randomise the initial grid created by insertGrid.
randomiseInitialGrid yes;
// Perturbation fraction, 1 = cell-size.
randomPerturbation 0.1;
}
motionControl
{
minCellSize 0.04;
// Assign a priority to all requests for cell sizes, the highest overrules.
defaultPriority 0;
shapeControlFunctions
{
cube
{
type searchableSurfaceControl;
priority 1;
mode bothSides;
cellSizeFunction linearDistance;
linearDistanceCoeffs
{
distanceCellSizeCoeff 1;
distanceCoeff 5;
}
surfaceCellSizeFunction uniformValue;
uniformValueCoeffs
{
surfaceCellSizeCoeff 0.05;
}
}
refinementBox
{
type searchableSurfaceControl;
priority 1;
mode bothSides;
cellSizeFunction linearDistance;
linearDistanceCoeffs
{
distanceCellSizeCoeff 1;
distanceCoeff 5;
}
surfaceCellSizeFunction uniformValue;
uniformValueCoeffs
{
surfaceCellSizeCoeff 0.05;
}
}
}
relaxationModel adaptiveLinear;
adaptiveLinearCoeffs
{
relaxationStart 0.5;
relaxationEnd 0.0;
}
objOutput no;
meshedSurfaceOutput yes;
// Near-wall region where cells are aligned with the wall specified as a
// number of cell layers
nearWallAlignedDist 3;
}
shortEdgeFilter
{
// Factor to multiply the average of a face's edge lengths by.
// If an edge of that face is smaller than that value then delete it.
shortEdgeFilterFactor 0.25;
// Weighting for the lengths of edges that are attached to the boundaries.
// Used when calculating the length of an edge. Default 2.0.
edgeAttachedToBoundaryFactor 2.0;
}
extrusion
{
extrude off;
#include "extrude2DMeshDict";
}
// ************************************************************************* //

View File

@ -0,0 +1,54 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object fvSchemes;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
ddtSchemes
{
default none;
}
gradSchemes
{
default none;
}
divSchemes
{
default none;
}
laplacianSchemes
{
default none;
}
interpolationSchemes
{
default none;
}
snGradSchemes
{
default none;
}
fluxRequired
{
default no;
}
// ************************************************************************* //

View File

@ -0,0 +1,22 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object fvSolution;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
solvers
{}
// ************************************************************************* //

View File

@ -0,0 +1,52 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object surfaceFeatureExtractDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
unit_cube.stl
{
extractionMethod extractFromSurface;
extractFromSurfaceCoeffs
{
// Mark edges whose adjacent surface normals are at an angle less
// than includedAngle as features
// - 0 : selects no edges
// - 180: selects all edges
includedAngle 175;
}
subsetFeatures
{
// Use a plane to select feature edges
// (normal)(basePoint)
// Keep only edges that intersect the plane will be included
plane (0 0 1)(0 0 0);
// Keep nonManifold edges (edges with >2 connected faces where
// the faces form more than two different normal planes)
nonManifoldEdges no;
// Keep open edges (edges with 1 connected face)
openEdges yes;
}
// Write options
// Write features to obj format for postprocessing
writeObj yes;
}
// ************************************************************************* //

View File

@ -0,0 +1,14 @@
#!/bin/sh
cd ${0%/*} || exit 1 # run from this directory
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
cleanCase
rm -rf constant/cellAlignments > /dev/null 2>&1
rm -rf constant/targetCellSize > /dev/null 2>&1
rm -rf constant/internalDelaunayVertices > /dev/null 2>&1
# ----------------------------------------------------------------- end-of-file

View File

@ -0,0 +1,11 @@
#!/bin/sh
cd ${0%/*} || exit 1 # run from this directory
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
runApplication foamyHexMesh
runApplication collapseEdges -latestTime -collapseFaces
runApplication checkMesh -latestTime -allGeometry -allTopology
# ----------------------------------------------------------------- end-of-file

View File

@ -0,0 +1,19 @@
#!/bin/sh
cd ${0%/*} || exit 1 # run from this directory
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
# Get the number of processors to run on from system/decomposeParDict
nProc=$(getNumberOfProcessors)
runApplication blockMesh
runApplication decomposePar
runParallel foamyHexMesh $nProc
runParallel collapseEdges $nProc -latestTime -collapseFaces
runParallel checkMesh $nProc -latestTime -allTopology -allGeometry
runApplication reconstructParMesh -latestTime
# ----------------------------------------------------------------- end-of-file

View File

@ -0,0 +1,18 @@
#!/bin/sh
cd ${0%/*} || exit 1 # run from this directory
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
runApplication foamyHexMesh
# Change collapseEdges to only do one iteration
cp system/collapseDict system/collapseDict.org
sed -e s/"\(maximumIterations[ \t]*\)\([0-9]*\);"/"\1 1;"/g \
system/collapseDict.org > system/collapseDict
runApplication collapseEdges -latestTime -collapseFaces
# ----------------------------------------------------------------- end-of-file

View File

@ -0,0 +1,69 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object blockMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
convertToMeters 1.0;
xmin -1.3;
xmax 0.65;
ymin -1.1;
ymax 0.8;
zmin -1.4;
zmax 0.55;
vertices
(
($xmin $ymin $zmin)
($xmax $ymin $zmin)
($xmax $ymax $zmin)
($xmin $ymax $zmin)
($xmin $ymin $zmax)
($xmax $ymin $zmax)
($xmax $ymax $zmax)
($xmin $ymax $zmax)
);
blocks
(
hex (0 1 2 3 4 5 6 7) (11 11 9) simpleGrading (1 1 1)
);
edges
(
);
boundary
(
walls
{
type wall;
faces
(
(3 7 6 2)
(0 4 7 3)
(2 6 5 1)
(1 5 4 0)
(0 3 2 1)
(4 5 6 7)
);
}
);
mergePatchPairs
(
);
// ************************************************************************* //

View File

@ -0,0 +1,28 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class polyBoundaryMesh;
location "constant/polyMesh";
object boundary;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
1
(
walls
{
type wall;
nFaces 638;
startFace 2948;
}
)
// ************************************************************************* //

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,84 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object collapseDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
controlMeshQuality on;
collapseEdgesCoeffs
{
// Edges shorter than this absolute value will be merged
minimumEdgeLength 1e-6;
// The maximum angle between two edges that share a point attached to
// no other edges
maximumMergeAngle 180;
}
collapseFacesCoeffs
{
// The initial face length factor
initialFaceLengthFactor 0.5;
// If the face can't be collapsed to an edge, and it has a span less than
// the target face length multiplied by this coefficient, collapse it
// to a point.
maxCollapseFaceToPointSideLengthCoeff 0.3;
// Allow early collapse of edges to a point
allowEarlyCollapseToPoint on;
// Fraction to premultiply maxCollapseFaceToPointSideLengthCoeff by if
// allowEarlyCollapseToPoint is enabled
allowEarlyCollapseCoeff 0.2;
// Defining how close to the midpoint (M) of the projected
// vertices line a projected vertex (X) can be before making this
// an invalid edge collapse
//
// X---X-g----------------M----X-----------g----X--X
//
// Only allow a collapse if all projected vertices are outwith
// guardFraction (g) of the distance form the face centre to the
// furthest vertex in the considered direction
guardFraction 0.1;
}
controlMeshQualityCoeffs
{
// Name of the dictionary that has the mesh quality coefficients used
// by motionSmoother::checkMesh
#include "meshQualityDict";
// The amount that minimumEdgeLength will be reduced by for each
// edge if that edge's collapse generates a poor quality face
edgeReductionFactor 0.5;
// The amount that initialFaceLengthFactor will be reduced by for each
// face if its collapse generates a poor quality face
faceReductionFactor 0.5;
// Maximum number of smoothing iterations for the reductionFactors
maximumSmoothingIterations 2;
// Maximum number of outer iterations is mesh quality checking is enabled
maximumIterations 10;
// Maximum number of iterations deletion of a point can cause a bad face
// to be constructed before it is forced to not be deleted
maxPointErrorCount 3;
}
// ************************************************************************* //

View File

@ -0,0 +1,53 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
root "";
case "";
instance "";
local "";
class dictionary;
object controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
startFrom startTime;
startTime 0;
stopAt endTime;
endTime 80;
deltaT 1;
writeControl timeStep;
writeInterval 80;
purgeWrite 0;
writeFormat ascii;
writePrecision 12;
writeCompression uncompressed;
timeFormat general;
timePrecision 6;
runTimeModifiable yes;
// ************************************************************************* //

View File

@ -0,0 +1,47 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object decomposeParDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
numberOfSubdomains 2;
method scotch;
//method ptscotch;
// method hierarchical;
simpleCoeffs
{
n ( 2 2 1 );
delta 0.001;
}
hierarchicalCoeffs
{
n ( 2 1 1 );
delta 0.001;
order xyz;
}
manualCoeffs
{
dataFile "";
}
distributed no;
roots ( );
// ************************************************************************* //

View File

@ -0,0 +1,131 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object foamyHexMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
// Include defaults parameters from master dictionary
#include "$WM_PROJECT_DIR/etc/caseDicts/foamyHexMeshDict"
geometry
{
blob.stl
{
name blob;
type triSurfaceMesh;
}
refinementBox
{
type searchableBox;
min (-0.2 -0.6 -0.2);
max ( 0.4 0.2 0.35);
}
}
backgroundMeshDecomposition
{
minLevels 0;
sampleResolution 4;
spanScale 20;
maxCellWeightCoeff 20;
}
initialPoints
{
initialPointsMethod autoDensity;
// initialPointsMethod pointFile;
autoDensityCoeffs
{
minLevels 0;
maxSizeRatio 5.0;
sampleResolution 5;
surfaceSampleResolution 5;
}
pointFileCoeffs
{
pointFile "constant/internalDelaunayVertices";
}
}
surfaceConformation
{
locationInMesh (0.1 0.1 0.2);
featurePointControls
{
specialiseFeaturePoints off;
edgeAiming off;
guardFeaturePoints off;
snapFeaturePoints off;
circulateEdges off;
}
geometryToConformTo
{
blob
{
featureMethod none;
}
}
}
motionControl
{
defaultCellSize 0.1;
minimumCellSizeCoeff 0;
maxSmoothingIterations 100;
maxRefinementIterations 0;
shapeControlFunctions
{
blob
{
type searchableSurfaceControl;
priority 1;
mode bothSides;
surfaceCellSizeFunction uniformValue;
uniformValueCoeffs
{
surfaceCellSizeCoeff 1;
}
cellSizeFunction uniform;
uniformCoeffs
{}
}
}
objOutput no;
timeChecks no;
}
meshQualityControls
{
#include "meshQualityDict"
}
// ************************************************************************* //

View File

@ -0,0 +1,54 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object fvSchemes;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
ddtSchemes
{
default none;
}
gradSchemes
{
default none;
}
divSchemes
{
default none;
}
laplacianSchemes
{
default none;
}
interpolationSchemes
{
default none;
}
snGradSchemes
{
default none;
}
fluxRequired
{
default no;
}
// ************************************************************************* //

View File

@ -0,0 +1,22 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object fvSolution;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
solvers
{
}
// ************************************************************************* //

View File

@ -0,0 +1,65 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object meshQualityDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
//- Maximum non-orthogonality allowed. Set to 180 to disable.
maxNonOrtho 65;
//- Max skewness allowed. Set to <0 to disable.
maxBoundarySkewness 50;
maxInternalSkewness 10;
//- Max concaveness allowed. Is angle (in degrees) below which concavity
// is allowed. 0 is straight face, <0 would be convex face.
// Set to 180 to disable.
maxConcave 80;
//- Minimum quality of the tet formed by the face-centre
// and variable base point minimum decomposition triangles and
// the cell centre. This has to be a positive number for tracking
// to work. Set to very negative number (e.g. -1E30) to
// disable.
// <0 = inside out tet,
// 0 = flat tet
// 1 = regular tet
minTetQuality 1e-30;
//- Minimum pyramid volume. Is absolute volume of cell pyramid.
// Set to a sensible fraction of the smallest cell volume expected.
// Set to very negative number (e.g. -1E30) to disable.
minVol 1e-20;
//- Minimum face area. Set to <0 to disable.
minArea -1;
//- Minimum face twist. Set to <-1 to disable. dot product of face normal
//- and face centre triangles normal
minTwist 0.001;
//- minimum normalised cell determinant
//- 1 = hex, <= 0 = folded or flattened illegal cell
minDeterminant 0.001;
//- minFaceWeight (0 -> 0.5)
minFaceWeight 0.02;
//- minVolRatio (0 -> 1)
minVolRatio 0.01;
//must be >0 for Fluent compatibility
minTriangleTwist -1;
// ************************************************************************* //

View File

@ -0,0 +1,310 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object snappyHexMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
// Which of the steps to run
castellatedMesh false;
snap false;
addLayers true;
// Geometry. Definition of all surfaces. All surfaces are of class
// searchableSurface.
// Surfaces are used
// - to specify refinement for any mesh cell intersecting it
// - to specify refinement for any mesh cell inside/outside/near
// - to 'snap' the mesh boundary to the surface
geometry
{
// motorBike.obj
// {
// type triSurfaceMesh;
// name motorBike;
// }
//
// refinementBox
// {
// type searchableBox;
// min (-1.0 -0.7 0.0);
// max ( 8.0 0.7 2.5);
// }
};
// Settings for the castellatedMesh generation.
castellatedMeshControls
{
// Refinement parameters
// ~~~~~~~~~~~~~~~~~~~~~
// If local number of cells is >= maxLocalCells on any processor
// switches from from refinement followed by balancing
// (current method) to (weighted) balancing before refinement.
maxLocalCells 100000;
// Overall cell limit (approximately). Refinement will stop immediately
// upon reaching this number so a refinement level might not complete.
// Note that this is the number of cells before removing the part which
// is not 'visible' from the keepPoint. The final number of cells might
// actually be a lot less.
maxGlobalCells 2000000;
// The surface refinement loop might spend lots of iterations refining just a
// few cells. This setting will cause refinement to stop if <= minimumRefine
// are selected for refinement. Note: it will at least do one iteration
// (unless the number of cells to refine is 0)
minRefinementCells 10;
// Allow a certain level of imbalance during refining
// (since balancing is quite expensive)
// Expressed as fraction of perfect balance (= overall number of cells /
// nProcs). 0=balance always.
maxLoadUnbalance 0.10;
// Number of buffer layers between different levels.
// 1 means normal 2:1 refinement restriction, larger means slower
// refinement.
nCellsBetweenLevels 3;
// Explicit feature edge refinement
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Specifies a level for any cell intersected by its edges.
// This is a featureEdgeMesh, read from constant/triSurface for now.
features
(
//{
// file "someLine.eMesh";
// level 2;
//}
);
// Surface based refinement
// ~~~~~~~~~~~~~~~~~~~~~~~~
// Specifies two levels for every surface. The first is the minimum level,
// every cell intersecting a surface gets refined up to the minimum level.
// The second level is the maximum level. Cells that 'see' multiple
// intersections where the intersections make an
// angle > resolveFeatureAngle get refined up to the maximum level.
refinementSurfaces
{
// motorBike
// {
// // Surface-wise min and max refinement level
// level (5 6);
//
// // Optional specification of patch type (default is wall). No
// // constraint types (cyclic, symmetry) etc. are allowed.
// patchInfo
// {
// type wall;
// inGroups (motorBike);
// }
// }
}
// Resolve sharp angles
resolveFeatureAngle 30;
// Region-wise refinement
// ~~~~~~~~~~~~~~~~~~~~~~
// Specifies refinement level for cells in relation to a surface. One of
// three modes
// - distance. 'levels' specifies per distance to the surface the
// wanted refinement level. The distances need to be specified in
// descending order.
// - inside. 'levels' is only one entry and only the level is used. All
// cells inside the surface get refined up to the level. The surface
// needs to be closed for this to be possible.
// - outside. Same but cells outside.
refinementRegions
{
// refinementBox
// {
// mode inside;
// levels ((1E15 4));
// }
}
// Mesh selection
// ~~~~~~~~~~~~~~
// After refinement patches get added for all refinementSurfaces and
// all cells intersecting the surfaces get put into these patches. The
// section reachable from the locationInMesh is kept.
// NOTE: This point should never be on a face, always inside a cell, even
// after refinement.
locationInMesh (-1 0 0);
// Whether any faceZones (as specified in the refinementSurfaces)
// are only on the boundary of corresponding cellZones or also allow
// free-standing zone faces. Not used if there are no faceZones.
allowFreeStandingZoneFaces true;
}
// Settings for the snapping.
snapControls
{
//- Number of patch smoothing iterations before finding correspondence
// to surface
nSmoothPatch 3;
//- Relative distance for points to be attracted by surface feature point
// or edge. True distance is this factor times local
// maximum edge length.
tolerance 4.0;
//- Number of mesh displacement relaxation iterations.
nSolveIter 0;
//- Maximum number of snapping relaxation iterations. Should stop
// before upon reaching a correct mesh.
nRelaxIter 5;
//- Highly experimental and wip: number of feature edge snapping
// iterations. Leave out altogether to disable.
// Do not use here since mesh resolution too low and baffles present
//nFeatureSnapIter 10;
}
// Settings for the layer addition.
addLayersControls
{
// Are the thickness parameters below relative to the undistorted
// size of the refined cell outside layer (true) or absolute sizes (false).
relativeSizes false;
// Per final patch (so not geometry!) the layer information
layers
{
blob.stl_patch1
{
nSurfaceLayers 4;
}
}
// Expansion factor for layer mesh
expansionRatio 1.5;
// Wanted thickness of final added cell layer. If multiple layers
// is the thickness of the layer furthest away from the wall.
// Relative to undistorted size of cell outside layer.
// is the thickness of the layer furthest away from the wall.
// See relativeSizes parameter.
finalLayerThickness 0.02;
// Minimum thickness of cell layer. If for any reason layer
// cannot be above minThickness do not add layer.
// Relative to undistorted size of cell outside layer.
minThickness 0.005;
// If points get not extruded do nGrow layers of connected faces that are
// also not grown. This helps convergence of the layer addition process
// close to features.
// Note: changed(corrected) w.r.t 17x! (didn't do anything in 17x)
nGrow 0;
// Advanced settings
// When not to extrude surface. 0 is flat surface, 90 is when two faces
// are perpendicular
featureAngle 90;
// Maximum number of snapping relaxation iterations. Should stop
// before upon reaching a correct mesh.
nRelaxIter 3;
// Number of smoothing iterations of surface normals
nSmoothSurfaceNormals 1;
// Number of smoothing iterations of interior mesh movement direction
nSmoothNormals 3;
// Smooth layer thickness over surface patches
nSmoothThickness 10;
// Stop layer growth on highly warped cells
maxFaceThicknessRatio 1000;
// Reduce layer growth where ratio thickness to medial
// distance is large
maxThicknessToMedialRatio 0.3;
// Angle used to pick up medial axis points
// Note: changed(corrected) w.r.t 17x! 90 degrees corresponds to 130 in 17x.
minMedianAxisAngle 90;
// Create buffer region for new layer terminations
nBufferCellsNoExtrude 0;
// Overall max number of layer addition iterations. The mesher will exit
// if it reaches this number of iterations; possibly with an illegal
// mesh.
nLayerIter 50;
}
// Generic mesh quality settings. At any undoable phase these determine
// where to undo.
meshQualityControls
{
#include "meshQualityDict"
// Advanced
//- Number of error distribution iterations
nSmoothScale 4;
//- amount to scale back displacement at error points
errorReduction 0.75;
}
// Advanced
// Flags for optional output
// 0 : only write final meshes
// 1 : write intermediate meshes
// 2 : write volScalarField with cellLevel for postprocessing
// 4 : write current intersections as .obj files
debug 0;
// Merge tolerance. Is fraction of overall bounding box of initial mesh.
// Note: the write tolerance needs to be higher than this.
mergeTolerance 1e-6;
// ************************************************************************* //

View File

@ -0,0 +1,149 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object topoSetDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
actions
(
{
name z;
type cellSet;
action new;
source boxToCell;
sourceInfo
{
box (-100 -100 -0.2)(100 100 100);
}
}
{
name zf;
type faceSet;
action new;
source cellToFace;
sourceInfo
{
set z;
option all;
}
}
{
name z;
type cellSet;
action invert;
}
{
name zf;
type faceSet;
action subset;
source cellToFace;
sourceInfo
{
set z;
option all;
}
}
// ~~~~~~~~~~~~~~~~ //
{
name x;
type cellSet;
action new;
source boxToCell;
sourceInfo
{
box (-0.32 -100 -100)(100 100 100);
}
}
{
name xf;
type faceSet;
action new;
source cellToFace;
sourceInfo
{
set x;
option all;
}
}
{
name x;
type cellSet;
action invert;
}
{
name xf;
type faceSet;
action subset;
source cellToFace;
sourceInfo
{
set x;
option all;
}
}
// ~~~~~~~~~~~~~~~~ //
{
name sp;
type cellSet;
action new;
source sphereToCell;
sourceInfo
{
centre (-0.3 -0.3 -0.3);
radius 0.4;
}
}
{
name spf;
type faceSet;
action new;
source cellToFace;
sourceInfo
{
set sp;
option all;
}
}
{
name sp;
type cellSet;
action invert;
}
{
name spf;
type faceSet;
action subset;
source cellToFace;
sourceInfo
{
set sp;
option all;
}
}
);
// ************************************************************************* //

View File

@ -0,0 +1,14 @@
#!/bin/sh
cd ${0%/*} || exit 1 # run from this directory
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
rm -rf constant/extendedFeatureEdgeMesh > /dev/null 2>&1
rm -r constant/ccx constant/ccy constant/ccz > /dev/null 2>&1
rm -r constant/internalDelaunayVertices constant/targetCellSize > /dev/null 2>&1
rm -r 0/ccx 0/ccy 0/ccz > /dev/null 2>&1
cleanCase
# ----------------------------------------------------------------- end-of-file

View File

@ -0,0 +1,12 @@
#!/bin/sh
cd ${0%/*} || exit 1 # run from this directory
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
runApplication foamyHexMesh
runApplication collapseEdges -latestTime -collapseFaces
runApplication checkMesh -latestTime -allGeometry -allTopology
# ----------------------------------------------------------------- end-of-file

View File

@ -0,0 +1,25 @@
#!/bin/sh
cd ${0%/*} || exit 1 # run from this directory
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
# Get the number of processors to run on from system/decomposeParDict
nProc=$(getNumberOfProcessors)
# Create tight-fitting background mesh
runApplication blockMesh
runApplication topoSet -dict system/topoSetDict-background
mv log.topoSet log.topoSet.background
runApplication subsetMesh background -patch walls -overwrite
runApplication decomposePar
runParallel foamyHexMesh $nProc
runParallel collapseEdges $nProc -latestTime -collapseFaces
runParallel checkMesh $nProc -latestTime -allTopology -allGeometry
runApplication reconstructParMesh -latestTime
# ----------------------------------------------------------------- end-of-file

View File

@ -0,0 +1,19 @@
#!/bin/sh
cd ${0%/*} || exit 1 # run from this directory
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
# Create tight-fitting background mesh
runApplication blockMesh
runApplication foamyHexMesh
# Change collapseEdges to only do one iteration
cp system/collapseDict system/collapseDict.org
sed -e s/"\(maximumIterations[ \t]*\)\([0-9]*\);"/"\1 1;"/g \
system/collapseDict.org > system/collapseDict
runApplication collapseEdges -latestTime -collapseFaces
# ----------------------------------------------------------------- end-of-file

View File

@ -0,0 +1,69 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object blockMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
convertToMeters 1.0;
xmin -0.0265;
xmax 0.0265;
ymin -0.028;
ymax 0.023;
zmin -0.024;
zmax 0.01;
vertices
(
($xmin $ymin $zmin)
($xmax $ymin $zmin)
($xmax $ymax $zmin)
($xmin $ymax $zmin)
($xmin $ymin $zmax)
($xmax $ymin $zmax)
($xmax $ymax $zmax)
($xmin $ymax $zmax)
);
blocks
(
hex (0 1 2 3 4 5 6 7) (5 6 3) simpleGrading (1 1 1)
);
edges
(
);
boundary
(
walls
{
type wall;
faces
(
(3 7 6 2)
(0 4 7 3)
(2 6 5 1)
(1 5 4 0)
(0 3 2 1)
(4 5 6 7)
);
}
);
mergePatchPairs
(
);
// ************************************************************************* //

View File

@ -0,0 +1,28 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class polyBoundaryMesh;
location "constant/polyMesh";
object boundary;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
1
(
walls
{
type wall;
nFaces 126;
startFace 207;
}
)
// ************************************************************************* //

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,84 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object collapseDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
controlMeshQuality on;
collapseEdgesCoeffs
{
// Edges shorter than this absolute value will be merged
minimumEdgeLength 1e-6;
// The maximum angle between two edges that share a point attached to
// no other edges
maximumMergeAngle 180;
}
collapseFacesCoeffs
{
// The initial face length factor
initialFaceLengthFactor 0.5;
// If the face can't be collapsed to an edge, and it has a span less than
// the target face length multiplied by this coefficient, collapse it
// to a point.
maxCollapseFaceToPointSideLengthCoeff 0.3;
// Allow early collapse of edges to a point
allowEarlyCollapseToPoint on;
// Fraction to premultiply maxCollapseFaceToPointSideLengthCoeff by if
// allowEarlyCollapseToPoint is enabled
allowEarlyCollapseCoeff 0.2;
// Defining how close to the midpoint (M) of the projected
// vertices line a projected vertex (X) can be before making this
// an invalid edge collapse
//
// X---X-g----------------M----X-----------g----X--X
//
// Only allow a collapse if all projected vertices are outwith
// guardFraction (g) of the distance form the face centre to the
// furthest vertex in the considered direction
guardFraction 0.1;
}
controlMeshQualityCoeffs
{
// Name of the dictionary that has the mesh quality coefficients used
// by motionSmoother::checkMesh
#include "meshQualityDict";
// The amount that minimumEdgeLength will be reduced by for each
// edge if that edge's collapse generates a poor quality face
edgeReductionFactor 0.5;
// The amount that initialFaceLengthFactor will be reduced by for each
// face if its collapse generates a poor quality face
faceReductionFactor 0.5;
// Maximum number of smoothing iterations for the reductionFactors
maximumSmoothingIterations 2;
// Maximum number of outer iterations is mesh quality checking is enabled
maximumIterations 10;
// Maximum number of iterations deletion of a point can cause a bad face
// to be constructed before it is forced to not be deleted
maxPointErrorCount 3;
}
// ************************************************************************* //

View File

@ -0,0 +1,58 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
root "";
case "";
instance "";
local "";
class dictionary;
object controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
application cvMesh;
startFrom startTime;
startTime 0;
stopAt endTime;
endTime 100;
deltaT 1;
writeControl timeStep;
writeInterval 100;
purgeWrite 0;
writeFormat ascii;
writePrecision 10;
writeCompression uncompressed;
timeFormat general;
timePrecision 6;
runTimeModifiable yes;
libs ("libdistributed.so");
// ************************************************************************* //

View File

@ -0,0 +1,46 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object decomposeParDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
numberOfSubdomains 8;
//method scotch;
method hierarchical;
simpleCoeffs
{
n ( 2 2 2 );
delta 0.001;
}
hierarchicalCoeffs
{
n ( 2 2 2 );
delta 0.001;
order xyz;
}
manualCoeffs
{
dataFile "";
}
distributed no;
roots ( );
// ************************************************************************* //

View File

@ -0,0 +1,35 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object faceSetDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
// Name of set to operate on
name facesToBeRemoved;
// One of clear/new/invert/add/delete|subset/list
action new;
// Actions to apply to pointSet. These are all the topoSetSource's ending
// in ..ToFace (see the meshTools library).
topoSetSources
(
// Select by explicitly providing face labels
labelToFace
{
value #include "../facesToBeRemoved";
}
);
// ************************************************************************* //

View File

@ -0,0 +1,202 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object foamyHexMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
// Include defaults parameters from master dictionary
#include "$WM_PROJECT_DIR/etc/caseDicts/foamyHexMeshDict"
// Any scalar with a name <name>Coeff specifies a value that will be implemented
// as a faction of the target cell size
geometry
{
flange.obj
{
name flange;
type triSurfaceMesh;
regions
{
patch1
{
name wall;
}
patch2
{
name plate;
}
patch3
{
name rings;
}
patch4
{
name outlet;
}
}
}
}
initialPoints
{
initialPointsMethod autoDensity;
autoDensityCoeffs
{
minLevels 2;
maxSizeRatio 3.0;
sampleResolution 4;
surfaceSampleResolution 5;
}
}
surfaceConformation
{
locationInMesh (0 0 0);
geometryToConformTo
{
flange
{
featureMethod extractFeatures;
includedAngle 140;
regions
{
wall
{
patchInfo
{
inGroups (groupFlange groupWalls);
}
}
plate
{
patchInfo
{
inGroups (groupFlange groupWalls);
}
}
rings
{
patchInfo
{
inGroups (groupFlange);
}
}
outlet
{
patchInfo
{
type patch;
inGroups (groupFlange);
}
}
}
}
}
}
motionControl
{
defaultCellSize 0.0008;
minimumCellSizeCoeff 0;
maxSmoothingIterations 100;
maxRefinementIterations 0;
shapeControlFunctions
{
flange
{
type searchableSurfaceControl;
priority 1;
mode inside;
surfaceCellSizeFunction uniformValue;
uniformValueCoeffs
{
surfaceCellSizeCoeff 1;
}
cellSizeFunction surfaceOffsetLinearDistance;
surfaceOffsetLinearDistanceCoeffs
{
distanceCellSizeCoeff 1;
surfaceOffsetCoeff 2.5;
linearDistanceCoeff 2.5;
}
regions
{
rings
{
type searchableSurfaceControl;
priority 2;
mode inside;
surfaceCellSizeFunction uniformValue;
uniformValueCoeffs
{
surfaceCellSizeCoeff 0.5;
}
cellSizeFunction surfaceOffsetLinearDistance;
surfaceOffsetLinearDistanceCoeffs
{
distanceCellSizeCoeff 1;
surfaceOffsetCoeff 2;
linearDistanceCoeff 2;
}
}
}
}
}
adaptiveLinearCoeffs
{
relaxationStart 1.0;
relaxationEnd 0.0;
}
objOutput no;
timeChecks no;
}
backgroundMeshDecomposition
{
minLevels 1;
sampleResolution 4;
spanScale 5;
maxCellWeightCoeff 10;
}
meshQualityControls
{
#include "meshQualityDict"
}
// ************************************************************************* //

View File

@ -0,0 +1,55 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object fvSchemes;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
ddtSchemes
{
default none;
}
gradSchemes
{
default Gauss linear;
}
divSchemes
{
default none;
}
laplacianSchemes
{
default none;
laplacian(nn) Gauss linear corrected;
}
interpolationSchemes
{
default none;
}
snGradSchemes
{
default corrected;
}
fluxRequired
{
default no;
}
// ************************************************************************* //

View File

@ -0,0 +1,29 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object fvSolution;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
solvers
{
nn
{
solver PCG;
preconditioner DIC;
tolerance 1e-06;
relTol 0;
}
}
// ************************************************************************* //

View File

@ -0,0 +1,65 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object meshQualityDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
//- Maximum non-orthogonality allowed. Set to 180 to disable.
maxNonOrtho 45;
//- Max skewness allowed. Set to <0 to disable.
maxBoundarySkewness 50;
maxInternalSkewness 10;
//- Max concaveness allowed. Is angle (in degrees) below which concavity
// is allowed. 0 is straight face, <0 would be convex face.
// Set to 180 to disable.
maxConcave 80;
//- Minimum quality of the tet formed by the face-centre
// and variable base point minimum decomposition triangles and
// the cell centre. This has to be a positive number for tracking
// to work. Set to very negative number (e.g. -1E30) to
// disable.
// <0 = inside out tet,
// 0 = flat tet
// 1 = regular tet
minTetQuality 1e-30;
//- Minimum pyramid volume. Is absolute volume of cell pyramid.
// Set to a sensible fraction of the smallest cell volume expected.
// Set to very negative number (e.g. -1E30) to disable.
minVol 0;
//- Minimum face area. Set to <0 to disable.
minArea -1;
//- Minimum face twist. Set to <-1 to disable. dot product of face normal
//- and face centre triangles normal
minTwist 0.001;
//- minimum normalised cell determinant
//- 1 = hex, <= 0 = folded or flattened illegal cell
minDeterminant 0.001;
//- minFaceWeight (0 -> 0.5)
minFaceWeight 0.02;
//- minVolRatio (0 -> 1)
minVolRatio 0.01;
//must be >0 for Fluent compatibility
minTriangleTwist -1;
// ************************************************************************* //

View File

@ -0,0 +1,308 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object snappyHexMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
// Which of the steps to run
castellatedMesh false;
snap false;
addLayers true;
// Geometry. Definition of all surfaces. All surfaces are of class
// searchableSurface.
// Surfaces are used
// - to specify refinement for any mesh cell intersecting it
// - to specify refinement for any mesh cell inside/outside/near
// - to 'snap' the mesh boundary to the surface
geometry
{
// motorBike.obj
// {
// type triSurfaceMesh;
// name motorBike;
// }
//
// refinementBox
// {
// type searchableBox;
// min (-1.0 -0.7 0.0);
// max ( 8.0 0.7 2.5);
// }
};
// Settings for the castellatedMesh generation.
castellatedMeshControls
{
// Refinement parameters
// ~~~~~~~~~~~~~~~~~~~~~
// If local number of cells is >= maxLocalCells on any processor
// switches from from refinement followed by balancing
// (current method) to (weighted) balancing before refinement.
maxLocalCells 100000;
// Overall cell limit (approximately). Refinement will stop immediately
// upon reaching this number so a refinement level might not complete.
// Note that this is the number of cells before removing the part which
// is not 'visible' from the keepPoint. The final number of cells might
// actually be a lot less.
maxGlobalCells 2000000;
// The surface refinement loop might spend lots of iterations refining just a
// few cells. This setting will cause refinement to stop if <= minimumRefine
// are selected for refinement. Note: it will at least do one iteration
// (unless the number of cells to refine is 0)
minRefinementCells 10;
// Allow a certain level of imbalance during refining
// (since balancing is quite expensive)
// Expressed as fraction of perfect balance (= overall number of cells /
// nProcs). 0=balance always.
maxLoadUnbalance 0.10;
// Number of buffer layers between different levels.
// 1 means normal 2:1 refinement restriction, larger means slower
// refinement.
nCellsBetweenLevels 3;
// Explicit feature edge refinement
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Specifies a level for any cell intersected by its edges.
// This is a featureEdgeMesh, read from constant/triSurface for now.
features
(
//{
// file "someLine.eMesh";
// level 2;
//}
);
// Surface based refinement
// ~~~~~~~~~~~~~~~~~~~~~~~~
// Specifies two levels for every surface. The first is the minimum level,
// every cell intersecting a surface gets refined up to the minimum level.
// The second level is the maximum level. Cells that 'see' multiple
// intersections where the intersections make an
// angle > resolveFeatureAngle get refined up to the maximum level.
refinementSurfaces
{
// motorBike
// {
// // Surface-wise min and max refinement level
// level (5 6);
//
// // Optional specification of patch type (default is wall). No
// // constraint types (cyclic, symmetry) etc. are allowed.
// patchInfo
// {
// type wall;
// inGroups (motorBike);
// }
// }
}
// Resolve sharp angles
resolveFeatureAngle 30;
// Region-wise refinement
// ~~~~~~~~~~~~~~~~~~~~~~
// Specifies refinement level for cells in relation to a surface. One of
// three modes
// - distance. 'levels' specifies per distance to the surface the
// wanted refinement level. The distances need to be specified in
// descending order.
// - inside. 'levels' is only one entry and only the level is used. All
// cells inside the surface get refined up to the level. The surface
// needs to be closed for this to be possible.
// - outside. Same but cells outside.
refinementRegions
{
// refinementBox
// {
// mode inside;
// levels ((1E15 4));
// }
}
// Mesh selection
// ~~~~~~~~~~~~~~
// After refinement patches get added for all refinementSurfaces and
// all cells intersecting the surfaces get put into these patches. The
// section reachable from the locationInMesh is kept.
// NOTE: This point should never be on a face, always inside a cell, even
// after refinement.
locationInMesh (-1 0 0);
// Whether any faceZones (as specified in the refinementSurfaces)
// are only on the boundary of corresponding cellZones or also allow
// free-standing zone faces. Not used if there are no faceZones.
allowFreeStandingZoneFaces true;
}
// Settings for the snapping.
snapControls
{
//- Number of patch smoothing iterations before finding correspondence
// to surface
nSmoothPatch 3;
//- Relative distance for points to be attracted by surface feature point
// or edge. True distance is this factor times local
// maximum edge length.
tolerance 4.0;
//- Number of mesh displacement relaxation iterations.
nSolveIter 0;
//- Maximum number of snapping relaxation iterations. Should stop
// before upon reaching a correct mesh.
nRelaxIter 5;
//- Highly experimental and wip: number of feature edge snapping
// iterations. Leave out altogether to disable.
// Do not use here since mesh resolution too low and baffles present
//nFeatureSnapIter 10;
}
// Settings for the layer addition.
addLayersControls
{
// Are the thickness parameters below relative to the undistorted
// size of the refined cell outside layer (true) or absolute sizes (false).
relativeSizes false;
// Per final patch (so not geometry!) the layer information
layers
{
"flange.obj.*"
{
nSurfaceLayers 1;
}
}
// Expansion factor for layer mesh
expansionRatio 1.5;
// Wanted thickness of final added cell layer. If multiple layers
// is the thickness of the layer furthest away from the wall.
// Relative to undistorted size of cell outside layer.
// is the thickness of the layer furthest away from the wall.
// See relativeSizes parameter.
finalLayerThickness 0.0003;
// Minimum thickness of cell layer. If for any reason layer
// cannot be above minThickness do not add layer.
// Relative to undistorted size of cell outside layer.
minThickness 0.0001;
// If points get not extruded do nGrow layers of connected faces that are
// also not grown. This helps convergence of the layer addition process
// close to features.
// Note: changed(corrected) w.r.t 17x! (didn't do anything in 17x)
nGrow 0;
// Advanced settings
// When not to extrude surface. 0 is flat surface, 90 is when two faces
// are perpendicular
featureAngle 90;
// Maximum number of snapping relaxation iterations. Should stop
// before upon reaching a correct mesh.
nRelaxIter 3;
// Number of smoothing iterations of surface normals
nSmoothSurfaceNormals 1;
// Number of smoothing iterations of interior mesh movement direction
nSmoothNormals 3;
// Smooth layer thickness over surface patches
nSmoothThickness 10;
// Stop layer growth on highly warped cells
maxFaceThicknessRatio 1000;
// Reduce layer growth where ratio thickness to medial
// distance is large
maxThicknessToMedialRatio 0.3;
// Angle used to pick up medial axis points
// Note: changed(corrected) w.r.t 17x! 90 degrees corresponds to 130 in 17x.
minMedianAxisAngle 90;
// Create buffer region for new layer terminations
nBufferCellsNoExtrude 0;
// Overall max number of layer addition iterations. The mesher will exit
// if it reaches this number of iterations; possibly with an illegal
// mesh.
nLayerIter 50;
}
meshQualityControls
{
// Generic mesh quality settings. At any undoable phase these determine
// where to undo.
#include "meshQualityDict"
//- Number of error distribution iterations
nSmoothScale 4;
//- amount to scale back displacement at error points
errorReduction 0.75;
}
// Advanced
// Flags for optional output
// 0 : only write final meshes
// 1 : write intermediate meshes
// 2 : write volScalarField with cellLevel for postprocessing
// 4 : write current intersections as .obj files
debug 0;
// Merge tolerance. Is fraction of overall bounding box of initial mesh.
// Note: the write tolerance needs to be higher than this.
mergeTolerance 1e-6;
// ************************************************************************* //

View File

@ -0,0 +1,319 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object topoSetDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
// List of actions. Each action is a dictionary with e.g.
// // name of set
// name c0;
//
// // type: pointSet/faceSet/cellSet/faceZoneSet/cellZoneSet
// type cellSet;
//
// // action to perform on set. Two types:
// // - require no source : clear/invert
// // - require source : new/add/delete/subset
// action new;
//
// The source entry varies according to the type of set:
//
// cellSet
// ~~~~~~~
//
// // Select by explicitly providing cell labels
// source labelToCell;
// {
// value (12 13 56); // labels of cells
// }
//
// // Copy elements from cellSet
// source cellToCell;
// {
// set c1;
// }
//
// // Cells in cell zone
// source zoneToCell;
// {
// name ".*Zone"; // Name of cellZone, regular expressions allowed
// }
//
// // Cells on master or slave side of faceZone
// source faceZoneToCell;
// {
// name ".*Zone"; // Name of faceZone, regular expressions allowed
// option master; // master/slave
// }
//
// // Select based on faceSet
// source faceToCell;
// {
// set f0; // Name of faceSet
//
// //option neighbour; // cell with neighbour in faceSet
// //option owner; // ,, owner
// option any; // cell with any face in faceSet
// //option all; // cell with all faces in faceSet
// }
//
// // Select based on pointSet
// source pointToCell;
// {
// set p0;
// option any; // cell with any point in pointSet
// //option all; // cell with all points in pointSet
// }
//
// // Select based on cellShape
// source shapeToCell;
// {
// type hex; // hex/wedge/prism/pyr/tet/tetWedge/splitHex
// }
//
// // Cells with cell centre within box
// source boxToCell;
// {
// box (0 0 0) (1 1 1);
// }
//
// // Cells with cell centre within box
// // Is skewed, rotated box. Given as origin and three spanning vectors.
// source rotatedBoxToCell;
// {
// origin (0.2 0.2 -10);
// i (0.2 0.2 0);
// j (-0.2 0.2 0);
// k (10 10 10);
// }
//
// // Cells with centre within cylinder
// source cylinderToCell;
// {
// p1 (0.2 0.2 -10); // start point on cylinder axis
// p2 (0.2 0.2 0); // end point on cylinder axis
// radius 5.0;
// }
//
// // Cells with centre within sphere
// source sphereToCell;
// {
// centre (0.2 0.2 -10);
// radius 5.0;
// }
//
// // Cells with cellCentre nearest to coordinates
// source nearestToCell;
// {
// points ((0 0 0) (1 1 1)(2 2 2));
// }
//
// // Select based on surface
// source surfaceToCell;
// {
// file "www.avl.com-geometry.stl";
// outsidePoints ((-99 -99 -59)); // definition of outside
// includeCut false; // cells cut by surface
// includeInside false; // cells not on outside of surf
// includeOutside false; // cells on outside of surf
// nearDistance -1; // cells with centre near surf
// // (set to -1 if not used)
// curvature 0.9; // cells within nearDistance
// // and near surf curvature
// // (set to -100 if not used)
// }
//
// // values of field within certain range
// source fieldToCell;
// {
// fieldName U; // Note: uses mag(U) since volVectorField
// min 0.1;
// max 0.5;
// }
//
// // Mesh region (non-face connected part of (subset of)mesh)
// source regionToCell;
// {
// set c0; // name of cellSet giving mesh subset
// insidePoint (1 2 3); // point inside region to select
// }
//
//
//
// faceSet
// ~~~~~~~
//
// // Copy elements from faceSet
// source faceToFace;
// {
// set f1;
// }
//
// // Select based on cellSet
// source cellToFace;
// {
// set c0;
// option all; // All faces of cells
// //option both; // Only faces whose owner&neighbour are in cellSet
// }
//
// // Select based on pointSet
// source pointToFace;
// {
// set p0;
// option any; // Faces using any point in pointSet
// //option all // Faces with all points in pointSet
// }
//
// // Select by explicitly providing face labels
// source labelToFace;
// {
// value (12 13 56); // labels of faces
// }
//
// // All faces of patch
// source patchToFace;
// {
// name ".*Wall"; // Name of patch, regular expressions allowed
// }
//
// // All faces of faceZone
// source zoneToFace;
// {
// name ".*Zone1"; // Name of faceZone, regular expressions allowed
// }
//
// // Faces with face centre within box
// source boxToFace;
// {
// box (0 0 0) (1 1 1);
// }
//
// // Faces with normal to within certain angle aligned with vector.
// source normalToFace;
// {
// normal (0 0 1); // Vector
// cos 0.01; // Tolerance (max cos of angle)
// }
//
//
//
// pointSet
// ~~~~~~~
//
// // Copy elements from pointSet
// source pointToPoint;
// {
// set p1;
// }
//
// // Select based on cellSet
// source cellToPoint;
// {
// set c0;
// option all; // all points of cell
// }
//
// // Select based on faceSet
// source faceToPoint;
// {
// set f0; // name of faceSet
// option all; // all points of face
// }
//
// // Select by explicitly providing point labels
// source labelToPoint;
// {
// value (12 13 56); // labels of points
// }
//
// // All points in pointzone
// source zoneToPoint;
// {
// name ".*Zone"; // name of pointZone, regular expressions allowed
// }
//
// // Points nearest to coordinates
// source nearestToPoint;
// {
// points ((0 0 0) (1 1 1));
// }
//
// // Points with coordinate within box
// source boxToPoint;
// {
// box (0 0 0) (1 1 1);
// }
//
// // Select based on surface
// source surfaceToPoint;
// {
// file "www.avl.com-geometry.stl";
// nearDistance 0.1; // points near to surface
// includeInside false; // points on inside of surface
// // (requires closed surface with consistent
// // normals)
// includeOutside false; // ,, outside ,,
// }
//
//
//
//
// cellZoneSet
// ~~~~~~~~~~~
// (mirrors operations on a cellSet into a cellZone)
//
// // Select based on cellSet
// source setToCellZone;
// {
// set c0; // name of cellSet
// }
//
//
//
// faceZoneSet
// ~~~~~~~~~~~
// // Select based on faceSet without orientation
// source setToFaceZone;
// {
// set f0; // name of faceSet
// }
//
// // Select based on faceSet, using cellSet to determine orientation
// source setsToFaceZone;
// {
// faceSet f0; // name of faceSet
// cellSet c0; // name of cellSet of slave side
// }
actions
(
{
name background;
type cellSet;
action new;
source surfaceToCell;
sourceInfo
{
file "constant/triSurface/flange.obj";
outsidePoints ((-0.026 -0.0275 -0.0235));
includeCut true;
includeInside true;
includeOutside false;
nearDistance -1;
curvature -100;
}
}
);
// ************************************************************************* //

View File

@ -0,0 +1,152 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object topoSetDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
zSlice -0.009;
ySlice 0.0;
xSlice 0.0;
actions
(
{
name z;
type cellSet;
action new;
source boxToCell;
sourceInfo
{
box (-100 -100 $zSlice)(100 100 100);
}
}
{
name zf;
type faceSet;
action new;
source cellToFace;
sourceInfo
{
set z;
option all;
}
}
{
name z;
type cellSet;
action invert;
}
{
name zf;
type faceSet;
action subset;
source cellToFace;
sourceInfo
{
set z;
option all;
}
}
// ~~~~~~~~~~~~~~~~ //
{
name y;
type cellSet;
action new;
source boxToCell;
sourceInfo
{
box (-100 $ySlice -100)(100 100 100);
}
}
{
name yf;
type faceSet;
action new;
source cellToFace;
sourceInfo
{
set y;
option all;
}
}
{
name y;
type cellSet;
action invert;
}
{
name yf;
type faceSet;
action subset;
source cellToFace;
sourceInfo
{
set y;
option all;
}
}
// ~~~~~~~~~~~~~~~~ //
{
name x;
type cellSet;
action new;
source boxToCell;
sourceInfo
{
box ($xSlice -100 -100)(100 100 100);
}
}
{
name xf;
type faceSet;
action new;
source cellToFace;
sourceInfo
{
set x;
option all;
}
}
{
name x;
type cellSet;
action invert;
}
{
name xf;
type faceSet;
action subset;
source cellToFace;
sourceInfo
{
set x;
option all;
}
}
);
// ************************************************************************* //

View File

@ -0,0 +1,18 @@
#!/bin/sh
cd ${0%/*} || exit 1 # run from this directory
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
rm -r constant/extendedFeatureEdgeMesh constant/internalDelaunayVertices > /dev/null 2>&1
rm constant/triSurface/*.eMesh > /dev/null 2>&1
rm constant/triSurface/*_clean* > /dev/null 2>&1
rm -r constant/polyMesh > /dev/null 2>&1
rm constant/targetCellSize > /dev/null 2>&1
rm -r constant/tetDualMesh > /dev/null 2>&1
rm domain coneAndSphere > /dev/null 2>&1
cleanCase
# ----------------------------------------------------------------- end-of-file

View File

@ -0,0 +1,28 @@
#!/bin/sh
cd ${0%/*} || exit 1 # run from this directory
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
# Remove any small triangles (edges < 1e-4, sliver with Q < 1e-6) from surface
# (cvMesh will try to conform to every feature).
runApplication surfaceClean \
constant/triSurface/coneAndSphere.obj \
1e-4 1e-6 \
constant/triSurface/coneAndSphere_clean.obj
mv log.surfaceClean log.surfaceClean.coneAndSphere
# Orient so point to be meshed is inside surface
runApplication surfaceOrient \
constant/triSurface/coneAndSphere_clean.obj \
-inside '(0 -0.5 0)' \
constant/triSurface/coneAndSphere_clean_orient.obj
mv log.surfaceOrient log.surfaceOrient.coneAndSphere
unset FOAM_SIGFPE
# Generate aligned points (in constant/internalDelaunayVertices) and a
# mesh from that.
runApplication foamyHexMesh
# ----------------------------------------------------------------- end-of-file

View File

@ -0,0 +1,828 @@
solid ascii
facet normal -1 0 0
outer loop
vertex -0.5 0.475528 -0.154509
vertex -0.5 0.456773 -0.203368
vertex -0.5 0.489074 -0.103956
endloop
endfacet
facet normal -1 0 0
outer loop
vertex -0.5 0.489074 -0.103956
vertex -0.5 0.456773 -0.203368
vertex -0.5 0.497261 -0.0522642
endloop
endfacet
facet normal -1 0 0
outer loop
vertex -0.5 0.497261 -0.0522642
vertex -0.5 0.456773 -0.203368
vertex -0.5 0.5 0
endloop
endfacet
facet normal -1 0 0
outer loop
vertex -0.5 0.5 0
vertex -0.5 0.456773 -0.203368
vertex -0.5 0.497261 0.0522642
endloop
endfacet
facet normal -1 0 0
outer loop
vertex -0.5 0.497261 0.0522642
vertex -0.5 0.456773 -0.203368
vertex -0.5 0.489074 0.103956
endloop
endfacet
facet normal -1 0 0
outer loop
vertex -0.5 0.489074 0.103956
vertex -0.5 0.456773 -0.203368
vertex -0.5 0.475528 0.154509
endloop
endfacet
facet normal -1 0 0
outer loop
vertex -0.5 0.475528 0.154509
vertex -0.5 0.456773 -0.203368
vertex -0.5 0.456773 0.203368
endloop
endfacet
facet normal -1 0 0
outer loop
vertex -0.5 0.456773 0.203368
vertex -0.5 0.456773 -0.203368
vertex -0.5 0.433013 0.25
endloop
endfacet
facet normal -1 0 0
outer loop
vertex -0.5 0.456773 -0.203368
vertex -0.5 0.433013 -0.25
vertex -0.5 0.433013 0.25
endloop
endfacet
facet normal -1 0 0
outer loop
vertex -0.5 0.433013 0.25
vertex -0.5 0.433013 -0.25
vertex -0.5 0.404509 0.293893
endloop
endfacet
facet normal -1 0 0
outer loop
vertex -0.5 0.404509 0.293893
vertex -0.5 0.433013 -0.25
vertex -0.5 0.371572 0.334565
endloop
endfacet
facet normal -1 0 0
outer loop
vertex -0.5 0.433013 -0.25
vertex -0.5 0.404509 -0.293893
vertex -0.5 0.371572 0.334565
endloop
endfacet
facet normal -1 0 0
outer loop
vertex -0.5 0.404509 -0.293893
vertex -0.5 0.371572 -0.334565
vertex -0.5 0.371572 0.334565
endloop
endfacet
facet normal -1 0 0
outer loop
vertex -0.5 0.371572 0.334565
vertex -0.5 0.371572 -0.334565
vertex -0.5 0.334565 0.371572
endloop
endfacet
facet normal -1 0 0
outer loop
vertex -0.5 0.334565 0.371572
vertex -0.5 0.371572 -0.334565
vertex -0.5 0.293893 0.404509
endloop
endfacet
facet normal -1 0 0
outer loop
vertex -0.5 0.293893 0.404509
vertex -0.5 0.371572 -0.334565
vertex -0.5 0.25 0.433013
endloop
endfacet
facet normal -1 0 0
outer loop
vertex -0.5 0.25 0.433013
vertex -0.5 0.371572 -0.334565
vertex -0.5 0.203368 0.456773
endloop
endfacet
facet normal -1 0 0
outer loop
vertex -0.5 0.203368 0.456773
vertex -0.5 0.371572 -0.334565
vertex -0.5 0.154509 0.475528
endloop
endfacet
facet normal -1 0 0
outer loop
vertex -0.5 0.154509 0.475528
vertex -0.5 0.371572 -0.334565
vertex -0.5 0.103956 0.489074
endloop
endfacet
facet normal -1 0 0
outer loop
vertex -0.5 0.103956 0.489074
vertex -0.5 0.371572 -0.334565
vertex -0.5 0.0522642 0.497261
endloop
endfacet
facet normal -1 0 0
outer loop
vertex -0.5 0.0522642 0.497261
vertex -0.5 0.371572 -0.334565
vertex -0.5 -1.02552e-10 0.5
endloop
endfacet
facet normal -1 0 0
outer loop
vertex -0.5 -1.02552e-10 0.5
vertex -0.5 0.371572 -0.334565
vertex -0.5 -0.0522642 0.497261
endloop
endfacet
facet normal -1 0 0
outer loop
vertex -0.5 -0.0522642 0.497261
vertex -0.5 0.371572 -0.334565
vertex -0.5 -0.103956 0.489074
endloop
endfacet
facet normal -1 0 0
outer loop
vertex -0.5 -0.103956 0.489074
vertex -0.5 0.371572 -0.334565
vertex -0.5 -0.154509 0.475528
endloop
endfacet
facet normal -1 0 0
outer loop
vertex -0.5 -0.154509 0.475528
vertex -0.5 0.371572 -0.334565
vertex -0.5 -0.203368 0.456773
endloop
endfacet
facet normal -1 0 0
outer loop
vertex -0.5 -0.203368 0.456773
vertex -0.5 0.371572 -0.334565
vertex -0.5 -0.25 0.433013
endloop
endfacet
facet normal -1 0 0
outer loop
vertex -0.5 -0.25 0.433013
vertex -0.5 0.371572 -0.334565
vertex -0.5 -0.293893 0.404509
endloop
endfacet
facet normal -1 0 0
outer loop
vertex -0.5 -0.293893 0.404509
vertex -0.5 0.371572 -0.334565
vertex -0.5 -0.334565 0.371572
endloop
endfacet
facet normal -1 0 0
outer loop
vertex -0.5 -0.334565 0.371572
vertex -0.5 0.371572 -0.334565
vertex -0.5 -0.371572 0.334565
endloop
endfacet
facet normal -1 0 0
outer loop
vertex -0.5 -0.371572 0.334565
vertex -0.5 0.371572 -0.334565
vertex -0.5 -0.404509 0.293893
endloop
endfacet
facet normal -1 0 0
outer loop
vertex -0.5 -0.404509 0.293893
vertex -0.5 0.371572 -0.334565
vertex -0.5 -0.433013 0.25
endloop
endfacet
facet normal -1 0 0
outer loop
vertex -0.5 -0.433013 0.25
vertex -0.5 0.371572 -0.334565
vertex -0.5 -0.456773 0.203368
endloop
endfacet
facet normal -1 0 0
outer loop
vertex -0.5 -0.456773 0.203368
vertex -0.5 0.371572 -0.334565
vertex -0.5 -0.475528 0.154509
endloop
endfacet
facet normal -1 0 0
outer loop
vertex -0.5 -0.475528 0.154509
vertex -0.5 0.371572 -0.334565
vertex -0.5 -0.489074 0.103956
endloop
endfacet
facet normal -1 0 0
outer loop
vertex -0.5 -0.489074 0.103956
vertex -0.5 0.371572 -0.334565
vertex -0.5 -0.497261 0.0522642
endloop
endfacet
facet normal -1 0 0
outer loop
vertex -0.5 -0.497261 0.0522642
vertex -0.5 0.371572 -0.334565
vertex -0.5 -0.5 -2.05103e-10
endloop
endfacet
facet normal -1 0 0
outer loop
vertex -0.5 -0.5 -2.05103e-10
vertex -0.5 0.371572 -0.334565
vertex -0.5 -0.497261 -0.0522642
endloop
endfacet
facet normal -1 0 0
outer loop
vertex -0.5 -0.497261 -0.0522642
vertex -0.5 0.371572 -0.334565
vertex -0.5 -0.489074 -0.103956
endloop
endfacet
facet normal -1 0 0
outer loop
vertex -0.5 -0.489074 -0.103956
vertex -0.5 0.371572 -0.334565
vertex -0.5 -0.475528 -0.154509
endloop
endfacet
facet normal -1 0 0
outer loop
vertex -0.5 -0.475528 -0.154509
vertex -0.5 0.371572 -0.334565
vertex -0.5 -0.456773 -0.203368
endloop
endfacet
facet normal -1 0 0
outer loop
vertex -0.5 -0.456773 -0.203368
vertex -0.5 0.371572 -0.334565
vertex -0.5 -0.433013 -0.25
endloop
endfacet
facet normal -1 0 0
outer loop
vertex -0.5 -0.433013 -0.25
vertex -0.5 0.371572 -0.334565
vertex -0.5 -0.404509 -0.293893
endloop
endfacet
facet normal -1 0 0
outer loop
vertex -0.5 -0.404509 -0.293893
vertex -0.5 0.371572 -0.334565
vertex -0.5 -0.371572 -0.334565
endloop
endfacet
facet normal -1 -0 0
outer loop
vertex -0.5 -0.371572 -0.334565
vertex -0.5 0.371572 -0.334565
vertex -0.5 -0.334565 -0.371572
endloop
endfacet
facet normal -1 0 0
outer loop
vertex -0.5 -0.334565 -0.371572
vertex -0.5 0.371572 -0.334565
vertex -0.5 -0.293893 -0.404509
endloop
endfacet
facet normal -1 0 0
outer loop
vertex -0.5 -0.293893 -0.404509
vertex -0.5 0.371572 -0.334565
vertex -0.5 -0.25 -0.433013
endloop
endfacet
facet normal -1 0 0
outer loop
vertex -0.5 -0.25 -0.433013
vertex -0.5 0.371572 -0.334565
vertex -0.5 -0.203368 -0.456773
endloop
endfacet
facet normal -1 0 0
outer loop
vertex -0.5 -0.203368 -0.456773
vertex -0.5 0.371572 -0.334565
vertex -0.5 -0.154509 -0.475528
endloop
endfacet
facet normal -1 0 0
outer loop
vertex -0.5 -0.154509 -0.475528
vertex -0.5 0.371572 -0.334565
vertex -0.5 -0.103956 -0.489074
endloop
endfacet
facet normal -1 0 0
outer loop
vertex -0.5 -0.103956 -0.489074
vertex -0.5 0.371572 -0.334565
vertex -0.5 -0.0522642 -0.497261
endloop
endfacet
facet normal -1 0 0
outer loop
vertex -0.5 -0.0522642 -0.497261
vertex -0.5 0.371572 -0.334565
vertex -0.5 3.07655e-10 -0.5
endloop
endfacet
facet normal -1 0 0
outer loop
vertex -0.5 3.07655e-10 -0.5
vertex -0.5 0.371572 -0.334565
vertex -0.5 0.0522642 -0.497261
endloop
endfacet
facet normal -1 0 0
outer loop
vertex -0.5 0.0522642 -0.497261
vertex -0.5 0.371572 -0.334565
vertex -0.5 0.103956 -0.489074
endloop
endfacet
facet normal -1 0 0
outer loop
vertex -0.5 0.103956 -0.489074
vertex -0.5 0.371572 -0.334565
vertex -0.5 0.154509 -0.475528
endloop
endfacet
facet normal -1 -0 0
outer loop
vertex -0.5 0.371572 -0.334565
vertex -0.5 0.334565 -0.371572
vertex -0.5 0.154509 -0.475528
endloop
endfacet
facet normal -1 -0 0
outer loop
vertex -0.5 0.334565 -0.371572
vertex -0.5 0.293893 -0.404509
vertex -0.5 0.154509 -0.475528
endloop
endfacet
facet normal -1 -0 0
outer loop
vertex -0.5 0.293893 -0.404509
vertex -0.5 0.25 -0.433013
vertex -0.5 0.154509 -0.475528
endloop
endfacet
facet normal -1 0 0
outer loop
vertex -0.5 0.203368 -0.456773
vertex -0.5 0.154509 -0.475528
vertex -0.5 0.25 -0.433013
endloop
endfacet
facet normal 0.446723 0.893446 0.0468234
outer loop
vertex 0.5 0 0
vertex -0.5 0.5 0
vertex -0.5 0.497261 0.0522642
endloop
endfacet
facet normal 0.446723 0.883657 0.139958
outer loop
vertex 0.5 0 0
vertex -0.5 0.497261 0.0522642
vertex -0.5 0.489074 0.103956
endloop
endfacet
facet normal 0.446723 0.864187 0.231558
outer loop
vertex 0.5 0 0
vertex -0.5 0.489074 0.103956
vertex -0.5 0.475528 0.154509
endloop
endfacet
facet normal 0.446723 0.835248 0.320622
outer loop
vertex 0.5 0 0
vertex -0.5 0.475528 0.154509
vertex -0.5 0.456773 0.203368
endloop
endfacet
facet normal 0.446723 0.797159 0.406173
outer loop
vertex 0.5 0 0
vertex -0.5 0.456773 0.203368
vertex -0.5 0.433013 0.25
endloop
endfacet
facet normal 0.446723 0.750335 0.487273
outer loop
vertex 0.5 0 0
vertex -0.5 0.433013 0.25
vertex -0.5 0.404509 0.293893
endloop
endfacet
facet normal 0.446723 0.695291 0.563036
outer loop
vertex 0.5 0 0
vertex -0.5 0.404509 0.293893
vertex -0.5 0.371572 0.334565
endloop
endfacet
facet normal 0.446723 0.632629 0.632629
outer loop
vertex 0.5 0 0
vertex -0.5 0.371572 0.334565
vertex -0.5 0.334565 0.371572
endloop
endfacet
facet normal 0.446723 0.563036 0.695291
outer loop
vertex 0.5 0 0
vertex -0.5 0.334565 0.371572
vertex -0.5 0.293893 0.404509
endloop
endfacet
facet normal 0.446723 0.487273 0.750335
outer loop
vertex 0.5 0 0
vertex -0.5 0.293893 0.404509
vertex -0.5 0.25 0.433013
endloop
endfacet
facet normal 0.446723 0.406173 0.797159
outer loop
vertex 0.5 0 0
vertex -0.5 0.25 0.433013
vertex -0.5 0.203368 0.456773
endloop
endfacet
facet normal 0.446723 0.320622 0.835248
outer loop
vertex 0.5 0 0
vertex -0.5 0.203368 0.456773
vertex -0.5 0.154509 0.475528
endloop
endfacet
facet normal 0.446723 0.231558 0.864187
outer loop
vertex 0.5 0 0
vertex -0.5 0.154509 0.475528
vertex -0.5 0.103956 0.489074
endloop
endfacet
facet normal 0.446723 0.139958 0.883657
outer loop
vertex 0.5 0 0
vertex -0.5 0.103956 0.489074
vertex -0.5 0.0522642 0.497261
endloop
endfacet
facet normal 0.446723 0.0468234 0.893446
outer loop
vertex 0.5 0 0
vertex -0.5 0.0522642 0.497261
vertex -0.5 -1.02552e-10 0.5
endloop
endfacet
facet normal 0.446723 -0.0468234 0.893446
outer loop
vertex 0.5 0 0
vertex -0.5 -1.02552e-10 0.5
vertex -0.5 -0.0522642 0.497261
endloop
endfacet
facet normal 0.446723 -0.139958 0.883657
outer loop
vertex 0.5 0 0
vertex -0.5 -0.0522642 0.497261
vertex -0.5 -0.103956 0.489074
endloop
endfacet
facet normal 0.446723 -0.231558 0.864187
outer loop
vertex 0.5 0 0
vertex -0.5 -0.103956 0.489074
vertex -0.5 -0.154509 0.475528
endloop
endfacet
facet normal 0.446723 -0.320622 0.835248
outer loop
vertex 0.5 0 0
vertex -0.5 -0.154509 0.475528
vertex -0.5 -0.203368 0.456773
endloop
endfacet
facet normal 0.446723 -0.406173 0.797159
outer loop
vertex 0.5 0 0
vertex -0.5 -0.203368 0.456773
vertex -0.5 -0.25 0.433013
endloop
endfacet
facet normal 0.446723 -0.487273 0.750335
outer loop
vertex 0.5 0 0
vertex -0.5 -0.25 0.433013
vertex -0.5 -0.293893 0.404509
endloop
endfacet
facet normal 0.446723 -0.563036 0.695291
outer loop
vertex 0.5 0 0
vertex -0.5 -0.293893 0.404509
vertex -0.5 -0.334565 0.371572
endloop
endfacet
facet normal 0.446723 -0.632629 0.632629
outer loop
vertex 0.5 0 0
vertex -0.5 -0.334565 0.371572
vertex -0.5 -0.371572 0.334565
endloop
endfacet
facet normal 0.446723 -0.695291 0.563036
outer loop
vertex 0.5 0 0
vertex -0.5 -0.371572 0.334565
vertex -0.5 -0.404509 0.293893
endloop
endfacet
facet normal 0.446723 -0.750335 0.487273
outer loop
vertex 0.5 0 0
vertex -0.5 -0.404509 0.293893
vertex -0.5 -0.433013 0.25
endloop
endfacet
facet normal 0.446723 -0.797159 0.406173
outer loop
vertex 0.5 0 0
vertex -0.5 -0.433013 0.25
vertex -0.5 -0.456773 0.203368
endloop
endfacet
facet normal 0.446723 -0.835248 0.320622
outer loop
vertex 0.5 0 0
vertex -0.5 -0.456773 0.203368
vertex -0.5 -0.475528 0.154509
endloop
endfacet
facet normal 0.446723 -0.864187 0.231558
outer loop
vertex 0.5 0 0
vertex -0.5 -0.475528 0.154509
vertex -0.5 -0.489074 0.103956
endloop
endfacet
facet normal 0.446723 -0.883657 0.139958
outer loop
vertex 0.5 0 0
vertex -0.5 -0.489074 0.103956
vertex -0.5 -0.497261 0.0522642
endloop
endfacet
facet normal 0.446723 -0.893446 0.0468234
outer loop
vertex 0.5 0 0
vertex -0.5 -0.497261 0.0522642
vertex -0.5 -0.5 -2.05103e-10
endloop
endfacet
facet normal 0.446723 -0.893446 -0.0468234
outer loop
vertex 0.5 0 0
vertex -0.5 -0.5 -2.05103e-10
vertex -0.5 -0.497261 -0.0522642
endloop
endfacet
facet normal 0.446723 -0.883657 -0.139958
outer loop
vertex 0.5 0 0
vertex -0.5 -0.497261 -0.0522642
vertex -0.5 -0.489074 -0.103956
endloop
endfacet
facet normal 0.446723 -0.864187 -0.231558
outer loop
vertex 0.5 0 0
vertex -0.5 -0.489074 -0.103956
vertex -0.5 -0.475528 -0.154509
endloop
endfacet
facet normal 0.446723 -0.835248 -0.320622
outer loop
vertex 0.5 0 0
vertex -0.5 -0.475528 -0.154509
vertex -0.5 -0.456773 -0.203368
endloop
endfacet
facet normal 0.446723 -0.797159 -0.406173
outer loop
vertex 0.5 0 0
vertex -0.5 -0.456773 -0.203368
vertex -0.5 -0.433013 -0.25
endloop
endfacet
facet normal 0.446723 -0.750335 -0.487273
outer loop
vertex 0.5 0 0
vertex -0.5 -0.433013 -0.25
vertex -0.5 -0.404509 -0.293893
endloop
endfacet
facet normal 0.446723 -0.695291 -0.563036
outer loop
vertex 0.5 0 0
vertex -0.5 -0.404509 -0.293893
vertex -0.5 -0.371572 -0.334565
endloop
endfacet
facet normal 0.446723 -0.632629 -0.632629
outer loop
vertex 0.5 0 0
vertex -0.5 -0.371572 -0.334565
vertex -0.5 -0.334565 -0.371572
endloop
endfacet
facet normal 0.446723 -0.563036 -0.695291
outer loop
vertex 0.5 0 0
vertex -0.5 -0.334565 -0.371572
vertex -0.5 -0.293893 -0.404509
endloop
endfacet
facet normal 0.446723 -0.487273 -0.750335
outer loop
vertex 0.5 0 0
vertex -0.5 -0.293893 -0.404509
vertex -0.5 -0.25 -0.433013
endloop
endfacet
facet normal 0.446723 -0.406173 -0.797159
outer loop
vertex 0.5 0 0
vertex -0.5 -0.25 -0.433013
vertex -0.5 -0.203368 -0.456773
endloop
endfacet
facet normal 0.446723 -0.320622 -0.835248
outer loop
vertex 0.5 0 0
vertex -0.5 -0.203368 -0.456773
vertex -0.5 -0.154509 -0.475528
endloop
endfacet
facet normal 0.446723 -0.231558 -0.864187
outer loop
vertex 0.5 0 0
vertex -0.5 -0.154509 -0.475528
vertex -0.5 -0.103956 -0.489074
endloop
endfacet
facet normal 0.446723 -0.139958 -0.883657
outer loop
vertex 0.5 0 0
vertex -0.5 -0.103956 -0.489074
vertex -0.5 -0.0522642 -0.497261
endloop
endfacet
facet normal 0.446723 -0.0468234 -0.893446
outer loop
vertex 0.5 0 0
vertex -0.5 -0.0522642 -0.497261
vertex -0.5 3.07655e-10 -0.5
endloop
endfacet
facet normal 0.446723 0.0468234 -0.893446
outer loop
vertex 0.5 0 0
vertex -0.5 3.07655e-10 -0.5
vertex -0.5 0.0522642 -0.497261
endloop
endfacet
facet normal 0.446723 0.139958 -0.883657
outer loop
vertex 0.5 0 0
vertex -0.5 0.0522642 -0.497261
vertex -0.5 0.103956 -0.489074
endloop
endfacet
facet normal 0.446723 0.231558 -0.864187
outer loop
vertex 0.5 0 0
vertex -0.5 0.103956 -0.489074
vertex -0.5 0.154509 -0.475528
endloop
endfacet
facet normal 0.446723 0.320622 -0.835248
outer loop
vertex 0.5 0 0
vertex -0.5 0.154509 -0.475528
vertex -0.5 0.203368 -0.456773
endloop
endfacet
facet normal 0.446723 0.406173 -0.797159
outer loop
vertex 0.5 0 0
vertex -0.5 0.203368 -0.456773
vertex -0.5 0.25 -0.433013
endloop
endfacet
facet normal 0.446723 0.487273 -0.750335
outer loop
vertex 0.5 0 0
vertex -0.5 0.25 -0.433013
vertex -0.5 0.293893 -0.404509
endloop
endfacet
facet normal 0.446723 0.563036 -0.695291
outer loop
vertex 0.5 0 0
vertex -0.5 0.293893 -0.404509
vertex -0.5 0.334565 -0.371572
endloop
endfacet
facet normal 0.446723 0.632629 -0.632629
outer loop
vertex 0.5 0 0
vertex -0.5 0.334565 -0.371572
vertex -0.5 0.371572 -0.334565
endloop
endfacet
facet normal 0.446723 0.695291 -0.563036
outer loop
vertex 0.5 0 0
vertex -0.5 0.371572 -0.334565
vertex -0.5 0.404509 -0.293893
endloop
endfacet
facet normal 0.446723 0.750335 -0.487273
outer loop
vertex 0.5 0 0
vertex -0.5 0.404509 -0.293893
vertex -0.5 0.433013 -0.25
endloop
endfacet
facet normal 0.446723 0.797159 -0.406173
outer loop
vertex 0.5 0 0
vertex -0.5 0.433013 -0.25
vertex -0.5 0.456773 -0.203368
endloop
endfacet
facet normal 0.446723 0.835248 -0.320622
outer loop
vertex 0.5 0 0
vertex -0.5 0.456773 -0.203368
vertex -0.5 0.475528 -0.154509
endloop
endfacet
facet normal 0.446723 0.864187 -0.231558
outer loop
vertex 0.5 0 0
vertex -0.5 0.475528 -0.154509
vertex -0.5 0.489074 -0.103956
endloop
endfacet
facet normal 0.446723 0.883657 -0.139958
outer loop
vertex 0.5 0 0
vertex -0.5 0.489074 -0.103956
vertex -0.5 0.497261 -0.0522642
endloop
endfacet
facet normal 0.446723 0.893446 -0.0468234
outer loop
vertex 0.5 0 0
vertex -0.5 0.497261 -0.0522642
vertex -0.5 0.5 0
endloop
endfacet
endsolid

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,85 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object collapseDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
controlMeshQuality on;
collapseEdgesCoeffs
{
// Edges shorter than this absolute value will be merged
minimumEdgeLength 1e-6;
// The maximum angle between two edges that share a point attached to
// no other edges
maximumMergeAngle 180;
}
collapseFacesCoeffs
{
// The initial face length factor
initialFaceLengthFactor 0.5;
// If the face can't be collapsed to an edge, and it has a span less than
// the target face length multiplied by this coefficient, collapse it
// to a point.
maxCollapseFaceToPointSideLengthCoeff 0.3;
// Allow early collapse of edges to a point
allowEarlyCollapseToPoint on;
// Fraction to premultiply maxCollapseFaceToPointSideLengthCoeff by if
// allowEarlyCollapseToPoint is enabled
allowEarlyCollapseCoeff 0.2;
// Defining how close to the midpoint (M) of the projected
// vertices line a projected vertex (X) can be before making this
// an invalid edge collapse
//
// X---X-g----------------M----X-----------g----X--X
//
// Only allow a collapse if all projected vertices are outwith
// guardFraction (g) of the distance form the face centre to the
// furthest vertex in the considered direction
guardFraction 0.1;
}
controlMeshQualityCoeffs
{
// Name of the dictionary that has the mesh quality coefficients used
// by motionSmoother::checkMesh
#include "meshQualityDict";
// The amount that minimumEdgeLength will be reduced by for each
// edge if that edge's collapse generates a poor quality face
edgeReductionFactor 0.5;
// The amount that initialFaceLengthFactor will be reduced by for each
// face if its collapse generates a poor quality face
faceReductionFactor 0.5;
// Maximum number of smoothing iterations for the reductionFactors
maximumSmoothingIterations 2;
// Maximum number of outer iterations is mesh quality checking is enabled
maximumIterations 10;
// Maximum number of iterations deletion of a point can cause a bad face
// to be constructed before it is forced to not be deleted
maxPointErrorCount 3;
}
// ************************************************************************* //

View File

@ -0,0 +1,47 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
location "system";
class dictionary;
object controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
startFrom startTime;
startTime 0;
stopAt endTime;
endTime 80;
deltaT 1;
writeControl timeStep;
writeInterval 80; // 10 to see the meshing steps
purgeWrite 0;
writeFormat ascii;
writePrecision 10;
writeCompression uncompressed;
timeFormat general;
timePrecision 6;
runTimeModifiable yes;
// ************************************************************************* //

View File

@ -0,0 +1,159 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object foamyHexMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
// Include defaults parameters from master dictionary
#include "$WM_PROJECT_DIR/etc/caseDicts/foamyHexMeshDict"
geometry
{
// Internal shape
coneAndSphere_clean_orient.obj
{
name coneAndSphere;
type triSurfaceMesh;
}
// Outside of domain
domain
{
type searchableBox;
min (-0.7 -0.9 -1);
max (1.3 1.1 1);
}
}
surfaceConformation
{
locationInMesh (0 -0.5 0);
featurePointControls
{
specialiseFeaturePoints on;
edgeAiming on;
guardFeaturePoints off;
snapFeaturePoints on;
circulateEdges off;
}
// Geometry to mesh to
geometryToConformTo
{
coneAndSphere
{
featureMethod extractFeatures;
includedAngle 140;
}
domain
{
featureMethod extractFeatures;
includedAngle 100;
mode outside;
}
}
}
initialPoints
{
initialPointsMethod autoDensity;
autoDensityCoeffs
{
minCellSizeLimit 0.1;
minLevels 4;
maxSizeRatio 5.0;
sampleResolution 3;
surfaceSampleResolution 3;
}
}
motionControl
{
defaultCellSize 0.1;
minimumCellSizeCoeff 0;
// For background cell size and alignment grid
maxSmoothingIterations 100;
maxRefinementIterations 0;
shapeControlFunctions
{
coneAndSphere
{
type searchableSurfaceControl;
priority 1;
mode bothSides;
surfaceCellSizeFunction uniformValue;
uniformValueCoeffs
{
surfaceCellSizeCoeff 0.75;
}
cellSizeFunction uniform;
uniformCoeffs
{}
}
domain
{
type searchableSurfaceControl;
priority 1;
mode bothSides;
surfaceCellSizeFunction uniformValue;
uniformValueCoeffs
{
surfaceCellSizeCoeff 1;
}
cellSizeFunction uniform;
uniformCoeffs
{}
}
}
// Output lots and lots of .obj files
objOutput no;
// Timing and memory usage.
timeChecks no;
}
// After simulation, when converting to polyMesh, filter out small faces/edges.
// Do not change. See cvControls.H
polyMeshFiltering
{
filterEdges on;
filterFaces on;
writeTetDualMesh false;
}
meshQualityControls
{
#include "meshQualityDict"
}
// ************************************************************************* //

View File

@ -0,0 +1,55 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object fvSchemes;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
d2dt2Schemes
{
default steadyState;
}
gradSchemes
{
default Gauss cubic;
}
divSchemes
{
default Gauss cubic;
}
laplacianSchemes
{
default Gauss linear uncorrected;
}
interpolationSchemes
{
default cubic;
}
snGradSchemes
{
default uncorrected;
}
fluxRequired
{
default no;
D ;
}
// ************************************************************************* //

View File

@ -0,0 +1,41 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object fvSolution;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
solvers
{
"(D|Dcorr)"
{
solver GAMG;
tolerance 1e-06;
relTol 0.99;
smoother GaussSeidel;
cacheAgglomeration true;
nCellsInCoarsestLevel 6;
agglomerator faceAreaPair;
mergeLevels 1;
}
}
stressAnalysis
{
nCorrectors 1;
D 1e-10;
accelerationFactor 2;
}
// ************************************************************************* //

View File

@ -0,0 +1,65 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object meshQualityDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
//- Maximum non-orthogonality allowed. Set to 180 to disable.
maxNonOrtho 65;
//- Max skewness allowed. Set to <0 to disable.
maxBoundarySkewness 50;
maxInternalSkewness 10;
//- Max concaveness allowed. Is angle (in degrees) below which concavity
// is allowed. 0 is straight face, <0 would be convex face.
// Set to 180 to disable.
maxConcave 80;
//- Minimum quality of the tet formed by the face-centre
// and variable base point minimum decomposition triangles and
// the cell centre. This has to be a positive number for tracking
// to work. Set to very negative number (e.g. -1E30) to
// disable.
// <0 = inside out tet,
// 0 = flat tet
// 1 = regular tet
minTetQuality 1e-30;
//- Minimum pyramid volume. Is absolute volume of cell pyramid.
// Set to a sensible fraction of the smallest cell volume expected.
// Set to very negative number (e.g. -1E30) to disable.
minVol 0;
//- Minimum face area. Set to <0 to disable.
minArea -1;
//- Minimum face twist. Set to <-1 to disable. dot product of face normal
//- and face centre triangles normal
minTwist 0.001;
//- minimum normalised cell determinant
//- 1 = hex, <= 0 = folded or flattened illegal cell
minDeterminant 0.001;
//- minFaceWeight (0 -> 0.5)
minFaceWeight 0.02;
//- minVolRatio (0 -> 1)
minVolRatio 0.01;
//must be >0 for Fluent compatibility
minTriangleTwist -1;
// ************************************************************************* //

View File

@ -0,0 +1,148 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object topoSetDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
actions
(
{
name z;
type cellSet;
action new;
source boxToCell;
sourceInfo
{
box (-100 -100 0)(100 100 100);
}
}
{
name zf;
type faceSet;
action new;
source cellToFace;
sourceInfo
{
set z;
option all;
}
}
{
name z;
type cellSet;
action invert;
}
{
name zf;
type faceSet;
action subset;
source cellToFace;
sourceInfo
{
set z;
option all;
}
}
// ~~~~~~~~~~~~~~~~ //
{
name y;
type cellSet;
action new;
source boxToCell;
sourceInfo
{
box (-100 0.1 -100)(100 100 100);
}
}
{
name yf;
type faceSet;
action new;
source cellToFace;
sourceInfo
{
set y;
option all;
}
}
{
name y;
type cellSet;
action invert;
}
{
name yf;
type faceSet;
action subset;
source cellToFace;
sourceInfo
{
set y;
option all;
}
}
// ~~~~~~~~~~~~~~~~ //
{
name x;
type cellSet;
action new;
source boxToCell;
sourceInfo
{
box (0.3 -100 -100)(100 100 100);
}
}
{
name xf;
type faceSet;
action new;
source cellToFace;
sourceInfo
{
set x;
option all;
}
}
{
name x;
type cellSet;
action invert;
}
{
name xf;
type faceSet;
action subset;
source cellToFace;
sourceInfo
{
set x;
option all;
}
}
);
// ************************************************************************* //