Skip to content

Commit

Permalink
Merge branch 'master' of github.com-OpenFOAM:OpenFOAM/OpenFOAM-dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Henry Weller committed Apr 28, 2017
2 parents 759cbcc + c9a6995 commit 72ef348
Show file tree
Hide file tree
Showing 12 changed files with 2,551 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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;
class volVectorField;
object U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [0 1 -1 0 0 0 0];

internalField uniform (0 0 0);

boundaryField
{
rotor
{
type movingWallVelocity;
value uniform (0 0 0);
}

stator
{
type movingWallVelocity;
value uniform (0 0 0);
}

front
{
type empty;
}

back
{
type empty;
}

AMI1
{
type cyclicAMI;
value $internalField;
}

AMI2
{
type cyclicAMI;
value $internalField;
}
}

// ************************************************************************* //
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/sh

cd ${0%/*} || exit 1 # Run from this directory

. $WM_PROJECT_DIR/bin/tools/RunFunctions

m4 < system/blockMeshDict.m4 > system/blockMeshDict

runApplication blockMesh

runApplication $(getApplication)
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
/*--------------------------------*- 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 dynamicMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dynamicFvMesh dynamicMotionSolverFvMesh;

solver multiSolidBodyMotionSolver;

multiSolidBodyMotionSolverCoeffs
{
rotor
{
solidBodyMotionFunction rotatingMotion;
rotatingMotionCoeffs
{
origin (0 0 0);
axis (0 0 1);
omega 6.2832; // rad/s
}
}

stator
{
solidBodyMotionFunction rotatingMotion;
rotatingMotionCoeffs
{
origin (0 0 0);
axis (0 0 1);
omega -6.2832; // rad/s
}
}
}


// ************************************************************************* //
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/*--------------------------------*- 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 uniformDimensionedVectorField;
location "constant";
object g;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

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

value (0 -9.81 0);


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

0 comments on commit 72ef348

Please sign in to comment.