updated V1.0 RotaryAirLock

This commit is contained in:
ramin1728
2024-12-28 13:09:06 +03:30
parent 6179f6ea3b
commit 278afc8ab6
8 changed files with 216 additions and 160 deletions

View 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.397538 0.178212 0.00);
max (0.725537 0.600214 0.06);
}
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: periodict, 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
}
}

View File

@ -6,30 +6,21 @@ objectName geometryDict;
objectType dictionary;
fileFormat ASCII;
/*---------------------------------------------------------------------------*/
motionModel rotatingAxis; // motion model: rotating object around an axis
// motion model: rotating object around an axis
motionModel rotatingAxisMotion;
// information for rotatingAxisMotion motion model
rotatingAxisMotionInfo
rotatingAxisInfo // information for rotatingAxisMotion motion model
{
rotAxis
{
// first point for the axis of rotation
p1 (0.561547 0.372714 0.000);
// second point for the axis of rotation
p2 (0.561547 0.372714 0.010);
// rotation speed (rad/s)
omega 2.1;
// Start time of Geometry Rotating (s)
startTime 1.25;
p1 (0.561547 0.372714 0.000); // first point for the axis of rotation
// End time of Geometry Rotating (s)
endTime 7;
p2 (0.561547 0.372714 0.010); // second point for the axis of rotation
omega 2.1; // rotation speed (rad/s)
startTime 1.25; // Start time of Geometry Rotating (s)
endTime 7; // End time of Geometry Rotating (s)
}
}
@ -37,30 +28,24 @@ surfaces
{
gear
{
// type of the wall
type stlWall;
type stlWall; // type of the wall
// file name in stl folder
file gear.stl;
file gear.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;
motion rotAxis; // motion component name
}
surfaces
surfaces
{
// type of the wall
type stlWall;
type stlWall; // type of the wall
// file name in stl folder
file surfaces.stl;
file surfaces.stl; // file name in stl folder
// material name of this wall
material wallMat;
material wallMat; // material name of this wall
// motion component name
motion none;
motion none; // motion component name
}
}

View File

@ -2,42 +2,73 @@
| phasicFlow File |
| copyright: www.cemf.ir |
\* ------------------------------------------------------------------------- */
objectName geometryDict;
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
*/
defaultValue
{
// linear velocity (m/s)
velocity realx3 (0 0 0);
velocity realx3 (0 0 0); // linear velocity (m/s)
// linear acceleration (m/s2)
acceleration realx3 (0 0 0);
acceleration realx3 (0 0 0); // linear acceleration (m/s2)
// rotational velocity (rad/s)
rVelocity realx3 (0 0 0);
rVelocity realx3 (0 0 0); // rotational velocity (rad/s)
// name of the particle shape
shapeName word sphere;
shapeName word sphere; // name of the particle shape
}
selectors
{}
{
shapeAssigne
{
selector stridedRange; // other options: box, cylinder, sphere, randomPoints
stridedRangeInfo
{
begin 0; // begin index of points
end 50000; // end index of points
stride 3; // stride for selector
}
fieldValue // fields that the selector is applied to
{
shapeName word sphere; // sets shapeName of the selected points to largeSphere
}
}
}
}
// positions particles
positionParticles
positionParticles // positions particles
{
method ordered; // other options: random and empty
// creates the required fields with zero particles (empty).
method empty;
orderedInfo
{
diameter 0.005; // diameter of particles
// maximum number of particles in the simulation
maxNumberOfParticles 50000;
numPoints 50000; // number of particles in the simulation
// perform initial sorting based on morton code?
mortonSorting Yes;
axisOrder (z x y); // axis order for filling the space with particles
}
regionType cylinder; // other options: box and sphere
cylinderInfo // cylinder information for positioning particles
{
p1 (0.0 0.0 0.003); // begin point of cylinder axis
p2 (0.0 0.0 0.22); // end point of cylinder axis
radius 0.117; // radius of cylinder
}
}

View File

@ -6,43 +6,34 @@ objectName geometryDict;
objectType dictionary;
fileFormat ASCII;
/*---------------------------------------------------------------------------*/
run rotatingValve;
// 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 7;
endTime 7; // 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 -9.8 0);
g (0 -9.8 0); // gravity vector (m/s2)
/*
Simulation domain every particles that goes outside this domain is deleted.
Simulation domain every particles that goes outside this domain is deleted
*/
domain
{
min (0.397538 0.178212 0.00);
max (0.725537 0.600214 0.06);
}
includeObjects (diameter); // save necessary (i.e., required) data on disk
// integration method
integrationMethod AdamsBashforth3;
// exclude unnecessary data from saving on disk
excludeObjects (rVelocity.dy1 pStructPosition.dy1 pStructVelocity.dy1);
// report timers?
timersReport Yes;
integrationMethod AdamsBashforth2; // integration method
// time interval for reporting timers
timersReportInterval 0.01;
writeFormat ascii; // data writting format (ascii or binary)
timersReport Yes; // report timers: Yes or No
timersReportInterval 0.01; // time interval for reporting timers