Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 0 additions & 22 deletions Prowim_Wing_Propeller/deformGeo.sh

This file was deleted.

48 changes: 0 additions & 48 deletions Prowim_Wing_Propeller/genWingMesh.py

This file was deleted.

23 changes: 10 additions & 13 deletions Prowim_Wing_Propeller/preProcessing.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,20 @@ if [ -z "$WM_PROJECT" ]; then
fi

# pre-processing

if [ -f "prowim_wing_surface_mesh.cgns.tar.gz" ]; then
echo "Surface mesh prowim_wing_surface_mesh.cgns.tar.gz already exists."
if [ -f "triSurface.tar.gz" ]; then
echo "Surface geometry triSurface.tar.gz already exists."
else
echo "Downloading surface mesh prowim_wing_surface_mesh.cgns.tar.gz"
wget https://github.com/dafoam/files/releases/download/v1.0.0/prowim_wing_surface_mesh.cgns.tar.gz
echo "Downloading surface geometry triSurface.tar.gz"
wget https://github.com/dafoam/files/releases/download/v1.0.0/triSurface.tar.gz
fi
rm prowim_wing_surface_mesh.cgns
tar -xvf prowim_wing_surface_mesh.cgns.tar.gz
# coarsen the surface mesh three times
cgns_utils coarsen prowim_wing_surface_mesh.cgns surfaceMesh.cgns
cgns_utils coarsen surfaceMesh.cgns
tar -xvf triSurface.tar.gz
mv triSurface constant/

# generate mesh
echo "Generating mesh.."
python genWingMesh.py &> logMeshGeneration.txt
plot3dToFoam -noBlank volumeMesh.xyz >> logMeshGeneration.txt
autoPatch 60 -overwrite >> logMeshGeneration.txt
blockMesh &> logMeshGeneration.txt
surfaceFeatureExtract >> logMeshGeneration.txt
snappyHexMesh -overwrite >> logMeshGeneration.txt
createPatch -overwrite >> logMeshGeneration.txt
renumberMesh -overwrite >> logMeshGeneration.txt
echo "Generating mesh.. Done!"
Expand Down
8 changes: 4 additions & 4 deletions Prowim_Wing_Propeller/system/blockMeshDict
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ FoamFile
object blockMeshDict;
}

L1 20;
L2 -20;
N 20;
M 10;
L1 12;
L2 -12;
N 8;
M 4;

convertToMeters 1;

Expand Down
8 changes: 4 additions & 4 deletions Prowim_Wing_Propeller/system/controlDict
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@ FoamFile
startFrom startTime;
startTime 0;
stopAt endTime;
endTime 3000;
endTime 2000;
deltaT 1;
writeControl timeStep;
writeInterval 3000;
writeInterval 2000;
purgeWrite 0;
writeFormat ascii;
writePrecision 16;
writePrecision 10;
writeCompression on;
timeFormat general;
timePrecision 16;
timePrecision 10;
runTimeModifiable true;

DebugSwitches
Expand Down
18 changes: 1 addition & 17 deletions Prowim_Wing_Propeller/system/createPatchDict
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,6 @@ pointSync false;
// Patches to create.
patches
(
{
// Name of new patch
name wing;

// Dictionary to construct new patch from
patchInfo
{
type wall;
}

// How to construct: either from 'patches' or 'set'
constructFrom patches;
patches ( "wing_.*" auto0 auto3 );
}

{
// Name of new patch
name inout;
Expand All @@ -46,9 +31,8 @@ patches

// How to construct: either from 'patches' or 'set'
constructFrom patches;
patches ( "farfield_.*" auto2);
patches ( "farfield_.*");
}

{
// Name of new patch
name sym;
Expand Down
2 changes: 1 addition & 1 deletion Prowim_Wing_Propeller/system/fvSchemes
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ snGradSchemes

wallDist
{
method meshWaveFrozen;
method meshWave;
}

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Loading