mirror of
https://github.com/PhasicFlow/phasicFlow.git
synced 2025-06-12 16:26:23 +00:00
updated V-blender tutorial
This commit is contained in:
@ -2,9 +2,9 @@
|
||||
| phasicFlow File |
|
||||
| copyright: www.cemf.ir |
|
||||
\* ------------------------------------------------------------------------- */
|
||||
|
||||
objectName geometryDict;
|
||||
objectType dictionary;
|
||||
/* ------------------------------------------------------------------------- */
|
||||
|
||||
// motion model: rotating object around an axis
|
||||
motionModel rotatingAxisMotion;
|
||||
@ -12,12 +12,19 @@ motionModel rotatingAxisMotion;
|
||||
surfaces
|
||||
{
|
||||
|
||||
rod
|
||||
body
|
||||
{
|
||||
type stlWall; // type of the wall
|
||||
file cone.stl; // file name in stl folder
|
||||
material prop1; // material name of this wall
|
||||
motion rotAxis; // motion component name
|
||||
// type of the wall
|
||||
type stlWall;
|
||||
|
||||
// file name in stl folder
|
||||
file body.stl;
|
||||
|
||||
// material name of this wall
|
||||
material wallMat;
|
||||
|
||||
// motion component name
|
||||
motion rotAxis;
|
||||
}
|
||||
|
||||
|
||||
@ -28,10 +35,19 @@ rotatingAxisMotionInfo
|
||||
{
|
||||
rotAxis
|
||||
{
|
||||
p1 (0.128228 0.116446 0.297901); // first point for the axis of rotation
|
||||
p2 (0.722596 0.116459 0.297901); // second point for the axis of rotation
|
||||
omega 3.14; // rotation speed (rad/s).
|
||||
startTime 1.5;
|
||||
// first point for the axis of rotation
|
||||
p1 (0.128228 0.116446 0.297901);
|
||||
|
||||
// second point for the axis of rotation
|
||||
p2 (0.722596 0.116459 0.297901);
|
||||
|
||||
// rotation speed (rad/s)
|
||||
omega 3.14;
|
||||
|
||||
// start time of rotation
|
||||
startTime 3;
|
||||
|
||||
// end time of rotation
|
||||
endTime 10;
|
||||
}
|
||||
}
|
||||
|
@ -2,9 +2,9 @@
|
||||
| phasicFlow File |
|
||||
| copyright: www.cemf.ir |
|
||||
\* ------------------------------------------------------------------------- */
|
||||
|
||||
objectName particlesDict;
|
||||
objectType dictionary;
|
||||
/* ------------------------------------------------------------------------- */
|
||||
|
||||
setFields
|
||||
{
|
||||
@ -16,10 +16,17 @@ setFields
|
||||
|
||||
defaultValue
|
||||
{
|
||||
velocity realx3 (0 0 0); // linear velocity (m/s)
|
||||
acceleration realx3 (0 0 0); // linear acceleration (m/s2)
|
||||
rotVelocity realx3 (0 0 0); // rotational velocity (rad/s)
|
||||
shapeName word lightSphere; // name of the particle shape
|
||||
// linear velocity (m/s)
|
||||
velocity realx3 (0 0 0);
|
||||
|
||||
// linear acceleration (m/s2)
|
||||
acceleration realx3 (0 0 0);
|
||||
|
||||
// rotational velocity (rad/s)
|
||||
rotVelocity realx3 (0 0 0);
|
||||
|
||||
// name of the particle shape
|
||||
shapeName word smallSphere;
|
||||
}
|
||||
|
||||
selectors
|
||||
@ -29,10 +36,12 @@ setFields
|
||||
// positions particles
|
||||
positionParticles
|
||||
{
|
||||
method empty; // ordered positioning
|
||||
|
||||
maxNumberOfParticles 80000; // maximum number of particles in the simulation
|
||||
mortonSorting Yes; // perform initial sorting based on morton code?
|
||||
// no particle is initially in the simulation
|
||||
method empty;
|
||||
|
||||
// maximum number of particles in the simulation
|
||||
maxNumberOfParticles 25000;
|
||||
|
||||
// perform initial sorting based on morton code?
|
||||
mortonSorting Yes;
|
||||
}
|
||||
|
@ -3,34 +3,45 @@
|
||||
| copyright: www.cemf.ir |
|
||||
\* ------------------------------------------------------------------------- */
|
||||
objectName settingsDict;
|
||||
objectType dictionary;;
|
||||
objectType dictionary;
|
||||
/* ------------------------------------------------------------------------- */
|
||||
|
||||
run rotatingDrumSmall;
|
||||
run rotatingVblender;
|
||||
|
||||
dt 0.00001; // time step for integration (s)
|
||||
// time step for integration (s)
|
||||
dt 0.00001;
|
||||
|
||||
startTime 0; // start time for simulation
|
||||
// start time for simulation
|
||||
startTime 0;
|
||||
|
||||
endTime 10; // end time for simulation
|
||||
// end time for simulation
|
||||
endTime 10;
|
||||
|
||||
saveInterval 0.05; // time interval for saving the simulation
|
||||
// time interval for saving the simulation
|
||||
saveInterval 0.05;
|
||||
|
||||
timePrecision 6; // maximum number of digits for time folder
|
||||
// maximum number of digits for time folder
|
||||
timePrecision 6;
|
||||
|
||||
g (0 0 -9.8); // gravity vector (m/s2)
|
||||
// gravity vector (m/s2)
|
||||
g (0 0 -9.8);
|
||||
|
||||
/*
|
||||
Simulation domain
|
||||
every particles that goes outside this domain is deleted.
|
||||
*/
|
||||
|
||||
domain
|
||||
{
|
||||
min (-0.1 -0.4 0);
|
||||
max (0.86 0.6 0.6);
|
||||
}
|
||||
|
||||
integrationMethod AdamsBashforth2; // integration method
|
||||
// integration method
|
||||
integrationMethod AdamsBashforth2;
|
||||
|
||||
timersReport Yes; // report timers?
|
||||
// report timers?
|
||||
timersReport Yes;
|
||||
|
||||
timersReportInterval 0.01; // time interval for reporting timers
|
||||
// time interval for reporting timers
|
||||
timersReportInterval 0.01;
|
||||
|
Reference in New Issue
Block a user