potentialFoam: Changed the sub-dict in fvSolution from SIMPLE to potentialFlow

This commit is contained in:
Henry
2011-04-05 14:54:14 +01:00
parent a76953302a
commit a54afe65c3
10 changed files with 108 additions and 102 deletions

View File

@ -47,4 +47,10 @@
label pRefCell = 0; label pRefCell = 0;
scalar pRefValue = 0.0; scalar pRefValue = 0.0;
setRefCell(p, mesh.solutionDict().subDict("SIMPLE"), pRefCell, pRefValue); setRefCell
(
p,
potentialFlow,
pRefCell,
pRefValue
);

View File

@ -42,8 +42,8 @@ int main(int argc, char *argv[])
#include "setRootCase.H" #include "setRootCase.H"
#include "createTime.H" #include "createTime.H"
#include "createMesh.H" #include "createMesh.H"
#include "readControls.H"
#include "createFields.H" #include "createFields.H"
#include "readSIMPLEControls.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -22,7 +22,7 @@ ddtSchemes
gradSchemes gradSchemes
{ {
default Gauss linear; default leastSquares;
} }
divSchemes divSchemes

View File

@ -26,7 +26,7 @@ solvers
} }
} }
SIMPLE potentialFlow
{ {
nNonOrthogonalCorrectors 3; nNonOrthogonalCorrectors 3;
} }

View File

@ -26,7 +26,7 @@ solvers
} }
} }
SIMPLE potentialFlow
{ {
nNonOrthogonalCorrectors 0; nNonOrthogonalCorrectors 0;
} }

View File

@ -3,7 +3,6 @@
# Source tutorial clean functions # Source tutorial clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions . $WM_PROJECT_DIR/bin/tools/CleanFunctions
rm -f system/fvSolution
rm -rf 0 > /dev/null 2>&1 rm -rf 0 > /dev/null 2>&1
cleanCase cleanCase

View File

@ -2,14 +2,10 @@
# Source tutorial run functions # Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions . $WM_PROJECT_DIR/bin/tools/RunFunctions
cp system/fvSolution.org system/fvSolution
cp -r 0.org 0 > /dev/null 2>&1 cp -r 0.org 0 > /dev/null 2>&1
runApplication blockMesh runApplication blockMesh
runApplication snappyHexMesh -overwrite runApplication snappyHexMesh -overwrite
sed -i 's/\(nNonOrthogonalCorrectors\).*;/\1 10;/g' system/fvSolution
runApplication potentialFoam -writep runApplication potentialFoam -writep
sed -i 's/\(nNonOrthogonalCorrectors\).*;/\1 0;/g' system/fvSolution
runApplication `getApplication` runApplication `getApplication`

View File

@ -21,433 +21,433 @@ FoamFile
{ {
type patch; type patch;
nFaces 320; nFaces 320;
startFace 1028304; startFace 1027872;
} }
inlet inlet
{ {
type patch; type patch;
nFaces 64; nFaces 64;
startFace 1028624; startFace 1028192;
} }
outlet outlet
{ {
type patch; type patch;
nFaces 64; nFaces 64;
startFace 1028688; startFace 1028256;
} }
lowerWall lowerWall
{ {
type wall; type wall;
nFaces 5330; nFaces 5330;
startFace 1028752; startFace 1028320;
} }
upperWall upperWall
{ {
type patch; type patch;
nFaces 160; nFaces 160;
startFace 1034082; startFace 1033650;
} }
motorBike_frt-fairing:001%1 motorBike_frt-fairing:001%1
{ {
type wall; type wall;
nFaces 5427; nFaces 5416;
startFace 1034242; startFace 1033810;
} }
motorBike_windshield:002%2 motorBike_windshield:002%2
{ {
type wall; type wall;
nFaces 50; nFaces 50;
startFace 1039669; startFace 1039226;
} }
motorBike_rr-wh-rim:005%5 motorBike_rr-wh-rim:005%5
{ {
type wall; type wall;
nFaces 136; nFaces 137;
startFace 1039719; startFace 1039276;
} }
motorBike_rr-wh-rim:010%10 motorBike_rr-wh-rim:010%10
{ {
type wall; type wall;
nFaces 340; nFaces 340;
startFace 1039855; startFace 1039413;
} }
motorBike_fr-wh-rim:011%11 motorBike_fr-wh-rim:011%11
{ {
type wall; type wall;
nFaces 473; nFaces 473;
startFace 1040195; startFace 1039753;
} }
motorBike_fr-wh-brake-disk:012%12 motorBike_fr-wh-brake-disk:012%12
{ {
type wall; type wall;
nFaces 54; nFaces 54;
startFace 1040668; startFace 1040226;
} }
motorBike_frame:016-shadow%13 motorBike_frame:016-shadow%13
{ {
type wall; type wall;
nFaces 97; nFaces 98;
startFace 1040722; startFace 1040280;
} }
motorBike_rear-susp:014%14 motorBike_rear-susp:014%14
{ {
type wall; type wall;
nFaces 839; nFaces 844;
startFace 1040819; startFace 1040378;
} }
motorBike_rear-susp:014-shadow%15 motorBike_rear-susp:014-shadow%15
{ {
type wall; type wall;
nFaces 469; nFaces 461;
startFace 1041658; startFace 1041222;
} }
motorBike_frame:016%16 motorBike_frame:016%16
{ {
type wall; type wall;
nFaces 68; nFaces 67;
startFace 1042127; startFace 1041683;
} }
motorBike_rr-wh-rim:005-shadow%17 motorBike_rr-wh-rim:005-shadow%17
{ {
type wall; type wall;
nFaces 71; nFaces 70;
startFace 1042195; startFace 1041750;
} }
motorBike_rr-wh-chain-hub:022%22 motorBike_rr-wh-chain-hub:022%22
{ {
type wall; type wall;
nFaces 141; nFaces 141;
startFace 1042266; startFace 1041820;
} }
motorBike_rearseat%24 motorBike_rearseat%24
{ {
type wall; type wall;
nFaces 430; nFaces 430;
startFace 1042407; startFace 1041961;
} }
motorBike_frt-fairing%25 motorBike_frt-fairing%25
{ {
type wall; type wall;
nFaces 626; nFaces 626;
startFace 1042837; startFace 1042391;
} }
motorBike_windshield%26 motorBike_windshield%26
{ {
type wall; type wall;
nFaces 378; nFaces 368;
startFace 1043463; startFace 1043017;
} }
motorBike_headlights%27 motorBike_headlights%27
{ {
type wall; type wall;
nFaces 161; nFaces 161;
startFace 1043841; startFace 1043385;
} }
motorBike_driversseat%28 motorBike_driversseat%28
{ {
type wall; type wall;
nFaces 368; nFaces 368;
startFace 1044002; startFace 1043546;
} }
motorBike_rear-body%29 motorBike_rear-body%29
{ {
type wall; type wall;
nFaces 2077; nFaces 2077;
startFace 1044370; startFace 1043914;
} }
motorBike_fuel-tank%30 motorBike_fuel-tank%30
{ {
type wall; type wall;
nFaces 912; nFaces 912;
startFace 1046447; startFace 1045991;
} }
motorBike_exhaust%31 motorBike_exhaust%31
{ {
type wall; type wall;
nFaces 2392; nFaces 2392;
startFace 1047359; startFace 1046903;
} }
motorBike_rr-wh-rim%32 motorBike_rr-wh-rim%32
{ {
type wall; type wall;
nFaces 1430; nFaces 1430;
startFace 1049751; startFace 1049295;
} }
motorBike_fr-mud-guard%33 motorBike_fr-mud-guard%33
{ {
type wall; type wall;
nFaces 639; nFaces 624;
startFace 1051181; startFace 1050725;
} }
motorBike_fr-wh-rim%34 motorBike_fr-wh-rim%34
{ {
type wall; type wall;
nFaces 591; nFaces 591;
startFace 1051820; startFace 1051349;
} }
motorBike_fr-wh-brake-disk%35 motorBike_fr-wh-brake-disk%35
{ {
type wall; type wall;
nFaces 431; nFaces 427;
startFace 1052411; startFace 1051940;
} }
motorBike_fr-brake-caliper%36 motorBike_fr-brake-caliper%36
{ {
type wall; type wall;
nFaces 164; nFaces 164;
startFace 1052842; startFace 1052367;
} }
motorBike_fr-wh-tyre%37 motorBike_fr-wh-tyre%37
{ {
type wall; type wall;
nFaces 1116; nFaces 1116;
startFace 1053006; startFace 1052531;
} }
motorBike_hbars%38 motorBike_hbars%38
{ {
type wall; type wall;
nFaces 535; nFaces 535;
startFace 1054122; startFace 1053647;
} }
motorBike_fr-forks%39 motorBike_fr-forks%39
{ {
type wall; type wall;
nFaces 1140; nFaces 1140;
startFace 1054657; startFace 1054182;
} }
motorBike_chain%40 motorBike_chain%40
{ {
type wall; type wall;
nFaces 474; nFaces 474;
startFace 1055797; startFace 1055322;
} }
motorBike_rr-wh-tyre%41 motorBike_rr-wh-tyre%41
{ {
type wall; type wall;
nFaces 1787; nFaces 1787;
startFace 1056271; startFace 1055796;
} }
motorBike_square-dial%42 motorBike_square-dial%42
{ {
type wall; type wall;
nFaces 6; nFaces 6;
startFace 1058058; startFace 1057583;
} }
motorBike_round-dial%43 motorBike_round-dial%43
{ {
type wall; type wall;
nFaces 17; nFaces 17;
startFace 1058064; startFace 1057589;
} }
motorBike_dial-holder%44 motorBike_dial-holder%44
{ {
type wall; type wall;
nFaces 87; nFaces 87;
startFace 1058081; startFace 1057606;
} }
motorBike_rear-susp%45 motorBike_rear-susp%45
{ {
type wall; type wall;
nFaces 1786; nFaces 1786;
startFace 1058168; startFace 1057693;
} }
motorBike_rear-brake-lights%46 motorBike_rear-brake-lights%46
{ {
type wall; type wall;
nFaces 53; nFaces 53;
startFace 1059954; startFace 1059479;
} }
motorBike_rear-light-bracket%47 motorBike_rear-light-bracket%47
{ {
type wall; type wall;
nFaces 163; nFaces 163;
startFace 1060007; startFace 1059532;
} }
motorBike_frame%48 motorBike_frame%48
{ {
type wall; type wall;
nFaces 2040; nFaces 2040;
startFace 1060170; startFace 1059695;
} }
motorBike_rear-mud-guard%49 motorBike_rear-mud-guard%49
{ {
type wall; type wall;
nFaces 663; nFaces 663;
startFace 1062210; startFace 1061735;
} }
motorBike_rear-susp-spring-damp%50 motorBike_rear-susp-spring-damp%50
{ {
type wall; type wall;
nFaces 107; nFaces 107;
startFace 1062873; startFace 1062398;
} }
motorBike_fairing-inner-plate%51 motorBike_fairing-inner-plate%51
{ {
type wall; type wall;
nFaces 445; nFaces 445;
startFace 1062980; startFace 1062505;
} }
motorBike_clutch-housing%52 motorBike_clutch-housing%52
{ {
type wall; type wall;
nFaces 970; nFaces 970;
startFace 1063425; startFace 1062950;
} }
motorBike_radiator%53 motorBike_radiator%53
{ {
type wall; type wall;
nFaces 40; nFaces 39;
startFace 1064395; startFace 1063920;
} }
motorBike_water-pipe%54 motorBike_water-pipe%54
{ {
type wall; type wall;
nFaces 104; nFaces 104;
startFace 1064435; startFace 1063959;
} }
motorBike_water-pump%55 motorBike_water-pump%55
{ {
type wall; type wall;
nFaces 74; nFaces 74;
startFace 1064539; startFace 1064063;
} }
motorBike_engine%56 motorBike_engine%56
{ {
type wall; type wall;
nFaces 2389; nFaces 2389;
startFace 1064613; startFace 1064137;
} }
motorBike_rear-shock-link%57 motorBike_rear-shock-link%57
{ {
type wall; type wall;
nFaces 25; nFaces 26;
startFace 1067002; startFace 1066526;
} }
motorBike_rear-brake-fluid-pot-bracket%58 motorBike_rear-brake-fluid-pot-bracket%58
{ {
type wall; type wall;
nFaces 44; nFaces 44;
startFace 1067027; startFace 1066552;
} }
motorBike_rear-brake-fluid-pot%59 motorBike_rear-brake-fluid-pot%59
{ {
type wall; type wall;
nFaces 53; nFaces 53;
startFace 1067071; startFace 1066596;
} }
motorBike_footpeg%60 motorBike_footpeg%60
{ {
type wall; type wall;
nFaces 86; nFaces 86;
startFace 1067124; startFace 1066649;
} }
motorBike_rr-wh-chain-hub%61 motorBike_rr-wh-chain-hub%61
{ {
type wall; type wall;
nFaces 122; nFaces 122;
startFace 1067210; startFace 1066735;
} }
motorBike_rear-brake-caliper%62 motorBike_rear-brake-caliper%62
{ {
type wall; type wall;
nFaces 142; nFaces 142;
startFace 1067332; startFace 1066857;
} }
motorBike_rider-helmet%65 motorBike_rider-helmet%65
{ {
type wall; type wall;
nFaces 583; nFaces 583;
startFace 1067474; startFace 1066999;
} }
motorBike_rider-visor%66 motorBike_rider-visor%66
{ {
type wall; type wall;
nFaces 95; nFaces 95;
startFace 1068057; startFace 1067582;
} }
motorBike_rider-boots%67 motorBike_rider-boots%67
{ {
type wall; type wall;
nFaces 1025; nFaces 1025;
startFace 1068152; startFace 1067677;
} }
motorBike_rider-gloves%68 motorBike_rider-gloves%68
{ {
type wall; type wall;
nFaces 319; nFaces 319;
startFace 1069177; startFace 1068702;
} }
motorBike_rider-body%69 motorBike_rider-body%69
{ {
type wall; type wall;
nFaces 4555; nFaces 4555;
startFace 1069496; startFace 1069021;
} }
motorBike_frame:0%70 motorBike_frame:0%70
{ {
type wall; type wall;
nFaces 37; nFaces 37;
startFace 1074051; startFace 1073576;
} }
motorBike_frt-fairing:001-shadow%74 motorBike_frt-fairing:001-shadow%74
{ {
type wall; type wall;
nFaces 3306; nFaces 3317;
startFace 1074088; startFace 1073613;
} }
motorBike_windshield-shadow%75 motorBike_windshield-shadow%75
{ {
type wall; type wall;
nFaces 239; nFaces 236;
startFace 1077394; startFace 1076930;
} }
motorBike_fr-mud-guard-shadow%81 motorBike_fr-mud-guard-shadow%81
{ {
type wall; type wall;
nFaces 332; nFaces 350;
startFace 1077633; startFace 1077166;
} }
motorBike_fr-wh-brake-disk-shadow%83 motorBike_fr-wh-brake-disk-shadow%83
{ {
type wall; type wall;
nFaces 182; nFaces 186;
startFace 1077965; startFace 1077516;
} }
motorBike_rear-mud-guard-shadow%84 motorBike_rear-mud-guard-shadow%84
{ {
type wall; type wall;
nFaces 387; nFaces 388;
startFace 1078147; startFace 1077702;
} }
motorBike_rear-susp-spring-damp-shadow%85 motorBike_rear-susp-spring-damp-shadow%85
{ {
type wall; type wall;
nFaces 41; nFaces 41;
startFace 1078534; startFace 1078090;
} }
motorBike_radiator-shadow%86 motorBike_radiator-shadow%86
{ {
type wall; type wall;
nFaces 21; nFaces 22;
startFace 1078575; startFace 1078131;
} }
motorBike_rear-shock-link-shadow%87 motorBike_rear-shock-link-shadow%87
{ {
type wall; type wall;
nFaces 10; nFaces 9;
startFace 1078596; startFace 1078153;
} }
motorBike_rear-brake-fluid-pot-bracket-shadow%88 motorBike_rear-brake-fluid-pot-bracket-shadow%88
{ {
type wall; type wall;
nFaces 22; nFaces 22;
startFace 1078606; startFace 1078162;
} }
motorBike_rr-wh-chain-hub-shadow%89 motorBike_rr-wh-chain-hub-shadow%89
{ {
type wall; type wall;
nFaces 53; nFaces 53;
startFace 1078628; startFace 1078184;
} }
) )

View File

@ -63,6 +63,11 @@ SIMPLE
nNonOrthogonalCorrectors 0; nNonOrthogonalCorrectors 0;
} }
potentialFlow
{
nNonOrthogonalCorrectors 10;
}
relaxationFactors relaxationFactors
{ {
p 0.3; p 0.3;

View File

@ -74,7 +74,7 @@ PISO
momentumPredictor yes; momentumPredictor yes;
} }
SIMPLE potentialFlow
{ {
// used for potentialFoam initialisation // used for potentialFoam initialisation
nNonOrthogonalCorrectors 10; nNonOrthogonalCorrectors 10;