Skip to content

Commit 560da74

Browse files
committed
[meshMotion] working with smartsim 0.8.0
1 parent 312b670 commit 560da74

File tree

3 files changed

+157
-140
lines changed

3 files changed

+157
-140
lines changed

tutorials/meshMotion/openfoam-smartsim-mesh-motion.ipynb

Lines changed: 144 additions & 137 deletions
Large diffs are not rendered by default.

tutorials/meshMotion/spinningDisk/0.orig/pointDisplacement

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,16 @@ boundaryField
2424
cylinder
2525
{
2626
type solidBodyMotionDisplacement;
27-
solidBodyMotionFunction oscillatingRotatingMotion;
27+
28+
solidBodyMotionFunction oscillatingLinearMotion;
29+
30+
oscillatingLinearMotionCoeffs
31+
{
32+
amplitude (0 1 0); // Amplitude of oscillation in x direction
33+
omega 4; // Angular frequency in rad/s
34+
phase 0; // Phase shift in radians (optional)
35+
}
36+
2837
multiMotionCoeffs
2938
{
3039
translation
@@ -42,10 +51,11 @@ boundaryField
4251
{
4352
origin (0 0 0);
4453
axis (0 0 1);
45-
omega 1; // rad/s, 1rad/s=9.5rpm
54+
//omega 1; // rad/s, 1rad/s=9.5rpm
4655
}
4756
}
4857
}
58+
4959
oscillatingRotatingMotionCoeffs
5060
{
5161
origin (0 0 0);

tutorials/meshMotion/spinningDisk/Allrun.post

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ cd "${0%/*}" || exit # Run from this directory
33
. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions
44
#------------------------------------------------------------------------------
55

6-
runApplication checkMesh -constant -writeAllFields
6+
runApplication mpirun -np 4 checkMesh -constant -writeAllFields -parallel
77

88
#------------------------------------------------------------------------------

0 commit comments

Comments
 (0)