Skip to content
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -20,25 +20,6 @@ internalField uniform (0.0 0.0 0.0);
boundaryField
{

constraint
{
type symmetry;
value $internalField;
}

wall
{
type symmetry;
value $internalField;
}

wall001
{
// movingWallVelocity reduces to fixedValue if the mesh is not moving
type movingWallVelocity;
value uniform (0 0 0);
}

inlet
{
// Fix all three components of velocity on inflow and only the normal component on outflow,
Expand All @@ -59,6 +40,25 @@ boundaryField
value $internalField;
}

constraint
{
type symmetry;
value $internalField;
}

constraint001
{
type symmetry;
value $internalField;
}

wall
{
// movingWallVelocity reduces to fixedValue if the mesh is not moving
type movingWallVelocity;
value uniform (0 0 0);
}

defaultFaces
{
type slip;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,34 +20,34 @@ internalField uniform 0.0;
boundaryField
{

constraint
inlet
{
type symmetry;
value $internalField;
type fixedValue;
value uniform 0.15;
}

wall
outlet
{
type symmetry;
type inletOutlet;
inletValue $internalField;
value $internalField;
}

wall001
constraint
{
type kqRWallFunction;
type symmetry;
value $internalField;
}

inlet
constraint001
{
type fixedValue;
value uniform 0.15;
type symmetry;
value $internalField;
}

outlet
wall
{
type inletOutlet;
inletValue $internalField;
type kqRWallFunction;
value $internalField;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,34 +20,34 @@ internalField uniform 0.0;
boundaryField
{

constraint
inlet
{
type symmetry;
value $internalField;
type fixedValue;
value uniform 50.0;
}

wall
outlet
{
type symmetry;
type calculated;
value $internalField;
}

wall001
constraint
{
type nutkWallFunction;
value uniform 0;
type symmetry;
value $internalField;
}

inlet
constraint001
{
type fixedValue;
value uniform 50.0;
type symmetry;
value $internalField;
}

outlet
wall
{
type calculated;
value $internalField;
type nutkWallFunction;
value uniform 0;
}

defaultFaces
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,38 +15,38 @@ FoamFile

dimensions [0 2 -2 0 0 0 0];

internalField uniform 0.0;
internalField uniform 83333.33333333334;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you. Do the tests pass though? This seems like a strange p value...

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am sorry for that I did not run the test because I thought this will not affect it and I was in a a hurry. but now I fixed it with the other typos and errors.


boundaryField
{

constraint
inlet
{
type symmetry;
value $internalField;
type zeroGradient;
}

wall
outlet
{
type symmetry;
type totalPressure;
p0 uniform 0.0;
value $internalField;
}

wall001
constraint
{
type zeroGradient;
type symmetry;
value $internalField;
}

inlet
constraint001
{
type zeroGradient;
type symmetry;
value $internalField;
}

outlet
wall
{
type totalPressure;
p0 uniform 0.0;
value $internalField;
type zeroGradient;
}

defaultFaces
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ then
fi

# Copy mesh from mesh case dir if available
MESHDIR="../meshCaseLESStep"
MESHDIR="../meshCaseBackwardFacingStep"
if [ -f "$MESHDIR"/constant/polyMesh/faces ]
then
rm -rf constant/polyMesh
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function runParallel([int]$NumProcs, [string]$cmd)
$PSDefaultParameterValues['Out-File:Encoding'] = 'ascii'

# Copy mesh from mesh case dir if available
$MESHDIR = "../meshCaseLESStep"
$MESHDIR = "../meshCaseBackwardFacingStep"
if( Test-Path -PathType Leaf $MESHDIR/constant/polyMesh/faces )
{
rm -ErrorAction SilentlyContinue -Recurse -Force constant/polyMesh
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,29 +14,29 @@ FoamFile
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

(
constraint
inlet
{
type symmetry;
type patch;
}

wall
outlet
{
type symmetry;
type patch;
}

wall001
constraint
{
type wall;
type symmetry;
}

inlet
constraint001
{
type patch;
type symmetry;
}

outlet
wall
{
type patch;
type wall;
}

defaultFaces
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ FoamFile

application pimpleFoam;

startFrom latestTime;
startFrom startTime;

startTime 0;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,46 +19,46 @@ pointSync false;
patches
(
{
name constraint;
name inlet;
patchInfo
{
type symmetry;
type patch;
}
constructFrom patches;
patches ( "patch_1_.*" );
}
{
name wall;
name outlet;
patchInfo
{
type symmetry;
type patch;
}
constructFrom patches;
patches ( "patch_2_.*" );
}
{
name wall001;
name constraint;
patchInfo
{
type wall;
type symmetry;
}
constructFrom patches;
patches ( "patch_3_.*" );
}
{
name inlet;
name constraint001;
patchInfo
{
type patch;
type symmetry;
}
constructFrom patches;
patches ( "patch_4_.*" );
}
{
name outlet;
name wall;
patchInfo
{
type patch;
type wall;
}
constructFrom patches;
patches ( "patch_5_.*" );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ then
else
NTHREADS=$(nproc)
fi
runCommand "$GMSH_EXE" -nt $NTHREADS - "gmsh/Pad_Geometry.geo"
runCommand "$GMSH_EXE" -nt $NTHREADS - "gmsh/Fusion_Geometry.geo"

# Unset and source bashrc
FOAMDIR="/usr/lib/openfoam/openfoam2512"
Expand All @@ -42,7 +42,7 @@ then
source "$FOAMDIR/etc/bashrc"
fi

runCommand gmshToFoam "gmsh/Pad_Geometry.msh"
runCommand gmshToFoam "gmsh/Fusion_Geometry.msh"

# polyDualMesh doesn't seem to convert cell zones or sets
rm -f constant/polyMesh/cellZones
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ $ErrorView = 'ConciseView'

$GMSH_EXE = "/home/oliver/software/gmsh-4.13.1-Linux64/bin/gmsh"
$NTHREADS = (Get-CimInstance Win32_ComputerSystem).NumberOfLogicalProcessors
runCommand "$GMSH_EXE" -nt $NTHREADS - "gmsh/Pad_Geometry.geo"
runCommand "$GMSH_EXE" -nt $NTHREADS - "gmsh/Fusion_Geometry.geo"

runCommand gmshToFoam "gmsh/Pad_Geometry.msh"
runCommand gmshToFoam "gmsh/Fusion_Geometry.msh"

# polyDualMesh doesn't seem to convert cell zones
rm -ErrorAction SilentlyContinue constant/polyMesh/cellZones
Expand Down
Loading