mirror of
https://github.com/PhasicFlow/phasicFlow.git
synced 2025-06-12 16:26:23 +00:00
updated V1.0 V-blender
This commit is contained in:
64
tutorials/sphereGranFlow/V-blender/settings/domainDict
Executable file
64
tutorials/sphereGranFlow/V-blender/settings/domainDict
Executable file
@ -0,0 +1,64 @@
|
||||
/* -------------------------------*- C++ -*--------------------------------- *\
|
||||
| phasicFlow File |
|
||||
| copyright: www.cemf.ir |
|
||||
\* ------------------------------------------------------------------------- */
|
||||
objectName domainDict;
|
||||
objectType dictionary;
|
||||
fileFormat ASCII;
|
||||
/*---------------------------------------------------------------------------*/
|
||||
globalBox // Simulation domain: every particles that goes outside this domain will be deleted
|
||||
{
|
||||
min (-0.1 -0.4 0); // lower corner point of the box
|
||||
|
||||
max (0.86 0.6 0.6); // upper corner point of the box
|
||||
}
|
||||
|
||||
decomposition
|
||||
{
|
||||
direction z;
|
||||
}
|
||||
|
||||
boundaries
|
||||
{
|
||||
|
||||
|
||||
neighborListUpdateInterval 50; /* Determines how often (how many iterations) do you want to
|
||||
|
||||
rebuild the list of particles in the neighbor list
|
||||
|
||||
of all boundaries in the simulation domain */
|
||||
|
||||
updateInterval 10; // Determines how often do you want to update the new changes in the boundary
|
||||
|
||||
neighborLength 0.004; // The distance from the boundary plane within which particles are marked to be in the boundary list
|
||||
|
||||
left
|
||||
{
|
||||
type exit; // other options: periodic, reflective
|
||||
}
|
||||
|
||||
right
|
||||
{
|
||||
type exit; // other options: periodict, reflective
|
||||
}
|
||||
|
||||
bottom
|
||||
{
|
||||
type exit; // other options: periodict, reflective
|
||||
}
|
||||
|
||||
top
|
||||
{
|
||||
type exit; // other options: periodict, reflective
|
||||
}
|
||||
|
||||
rear
|
||||
{
|
||||
type exit; // other options: periodict, reflective
|
||||
}
|
||||
|
||||
front
|
||||
{
|
||||
type exit; // other options: periodict, reflective
|
||||
}
|
||||
}
|
@ -6,49 +6,37 @@ objectName geometryDict;
|
||||
objectType dictionary;
|
||||
fileFormat ASCII;
|
||||
/*---------------------------------------------------------------------------*/
|
||||
motionModel rotatingAxis; // motion model: rotating object around an axis
|
||||
|
||||
// motion model: rotating object around an axis
|
||||
motionModel rotatingAxisMotion;
|
||||
rotatingAxisInfo // information for rotatingAxis motion model
|
||||
{
|
||||
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 3; // start time of rotation
|
||||
|
||||
endTime 10; // end time of rotation
|
||||
}
|
||||
}
|
||||
|
||||
surfaces
|
||||
{
|
||||
|
||||
body
|
||||
{
|
||||
// type of the wall
|
||||
type stlWall;
|
||||
{
|
||||
type stlWall; // type of the wall
|
||||
|
||||
// file name in stl folder
|
||||
file body.stl;
|
||||
file body.stl; // file name in stl folder
|
||||
|
||||
// material name of this wall
|
||||
material wallMat;
|
||||
material wallMat; // material name of this wall
|
||||
|
||||
// motion component name
|
||||
motion rotAxis;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
// information for rotatingAxisMotion motion model
|
||||
rotatingAxisMotionInfo
|
||||
{
|
||||
rotAxis
|
||||
{
|
||||
// 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;
|
||||
motion otAxis; // motion component name
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
@ -6,43 +6,74 @@ objectName particlesDict;
|
||||
objectType dictionary;
|
||||
fileFormat ASCII;
|
||||
/*---------------------------------------------------------------------------*/
|
||||
|
||||
setFields
|
||||
{
|
||||
/*
|
||||
Default value for fields defined for particles
|
||||
These fields should always be defined for simulations with
|
||||
spherical particles.
|
||||
*/
|
||||
/*
|
||||
Default value for fields defined for particles
|
||||
|
||||
defaultValue
|
||||
{
|
||||
// linear velocity (m/s)
|
||||
velocity realx3 (0 0 0);
|
||||
|
||||
// linear acceleration (m/s2)
|
||||
acceleration realx3 (0 0 0);
|
||||
|
||||
// rotational velocity (rad/s)
|
||||
rVelocity realx3 (0 0 0);
|
||||
|
||||
// name of the particle shape
|
||||
shapeName word smallSphere;
|
||||
}
|
||||
These fields should always be defined for simulations with
|
||||
|
||||
selectors
|
||||
{}
|
||||
spherical particles.
|
||||
*/
|
||||
|
||||
defaultValue
|
||||
{
|
||||
velocity realx3 (0 0 0); // linear velocity (m/s)
|
||||
|
||||
acceleration realx3 (0 0 0); // linear acceleration (m/s2)
|
||||
|
||||
rVelocity realx3 (0 0 0); // rotational velocity (rad/s)
|
||||
|
||||
shapeName word smallSphere; // name of the particle shape
|
||||
}
|
||||
|
||||
selectors
|
||||
{
|
||||
shapeAssigne
|
||||
{
|
||||
selector stridedRange; // other options: box, cylinder, sphere, randomPoints
|
||||
|
||||
stridedRangeInfo
|
||||
{
|
||||
begin 0; // begin index of points
|
||||
|
||||
end 24000; // end index of points
|
||||
|
||||
stride 3; // stride for selector
|
||||
}
|
||||
|
||||
fieldValue // fields that the selector is applied to
|
||||
{
|
||||
shapeName word sphere1; // sets shapeName of the selected points to largeSphere
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// positions particles
|
||||
positionParticles
|
||||
positionParticles // positions particles
|
||||
{
|
||||
// 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;
|
||||
}
|
||||
method ordered; // ordered positioning
|
||||
|
||||
mortonSorting Yes; // perform initial sorting based on morton code?
|
||||
|
||||
orderedInfo
|
||||
{
|
||||
diameter 0.0101; // minimum space between centers of particles
|
||||
|
||||
numPoints 25000; // number of particles in the simulation
|
||||
|
||||
axisOrder (x y z); // axis order for filling the space with particles
|
||||
}
|
||||
|
||||
regionType cylinder; // other options: cylinder and sphere
|
||||
|
||||
cylinderInfo // cylinder for positioning particles
|
||||
{
|
||||
p1 (0.0 0.0 0.09); // Coordinates of bottom cylinderRegion (m,m,m)
|
||||
|
||||
p2 (0.0 0.0 0.21); // Coordinates of top cylinderRegion (m,m,m)
|
||||
|
||||
radius 0.09; // radius of cylinder
|
||||
}
|
||||
}
|
@ -6,45 +6,29 @@ objectName settingsDict;
|
||||
objectType dictionary;
|
||||
fileFormat ASCII;
|
||||
/*---------------------------------------------------------------------------*/
|
||||
|
||||
run rotatingVblender;
|
||||
|
||||
// time step for integration (s)
|
||||
dt 0.00001;
|
||||
dt 0.00001; // time step for integration (s)
|
||||
|
||||
// start time for simulation
|
||||
startTime 0;
|
||||
startTime 0; // start time for simulation
|
||||
|
||||
// end time for simulation
|
||||
endTime 10;
|
||||
endTime 10; // end time for simulation
|
||||
|
||||
// time interval for saving the simulation
|
||||
saveInterval 0.05;
|
||||
saveInterval 0.05; // time interval for saving the simulation
|
||||
|
||||
// maximum number of digits for time folder
|
||||
timePrecision 6;
|
||||
timePrecision 6; // maximum number of digits for time folder
|
||||
|
||||
// gravity vector (m/s2)
|
||||
g (0 0 -9.8);
|
||||
g (0 0 -9.8); // gravity vector (m/s2)
|
||||
|
||||
/*
|
||||
Simulation domain
|
||||
every particles that goes outside this domain is deleted.
|
||||
*/
|
||||
includeObjects (diameter); // save necessary (i.e., required) data on disk
|
||||
|
||||
domain
|
||||
{
|
||||
min (-0.1 -0.4 0);
|
||||
max (0.86 0.6 0.6);
|
||||
}
|
||||
// exclude unnecessary data from saving on disk
|
||||
excludeObjects (rVelocity.dy1 pStructPosition.dy1 pStructVelocity.dy1);
|
||||
|
||||
// integration method
|
||||
integrationMethod AdamsBashforth2;
|
||||
integrationMethod AdamsBashforth2; // integration method
|
||||
|
||||
writeFormat ascii;
|
||||
writeFormat ascii; // data writting format (ascii or binary)
|
||||
|
||||
// report timers?
|
||||
timersReport Yes;
|
||||
timersReport Yes; // report timers (Yes or No)
|
||||
|
||||
// time interval for reporting timers
|
||||
timersReportInterval 0.01;
|
||||
timersReportInterval 0.01; // time interval for reporting timers
|
||||
|
Reference in New Issue
Block a user