mirror of
https://github.com/PhasicFlow/phasicFlow.git
synced 2025-06-22 16:28:30 +00:00
the need to provide neighborLength in domain dictionary is lifted. Now it is optional
This commit is contained in:
@ -142,16 +142,11 @@ pFlow::grainParticles::getParticlesInfoFromShape(
|
||||
|
||||
pFlow::grainParticles::grainParticles(
|
||||
systemControl &control,
|
||||
const property& prop
|
||||
const grainShape& gShape
|
||||
)
|
||||
:
|
||||
particles(control),
|
||||
grains_
|
||||
(
|
||||
shapeFile__,
|
||||
&control.caseSetup(),
|
||||
prop
|
||||
),
|
||||
particles(control, gShape),
|
||||
grains_(gShape),
|
||||
propertyId_
|
||||
(
|
||||
objectFile
|
||||
|
@ -48,7 +48,7 @@ public:
|
||||
private:
|
||||
|
||||
/// reference to shapes
|
||||
ShapeType grains_;
|
||||
const ShapeType& grains_;
|
||||
|
||||
/// property id on device
|
||||
uint32PointField_D propertyId_;
|
||||
@ -121,7 +121,7 @@ protected:
|
||||
public:
|
||||
|
||||
/// construct from systemControl and property
|
||||
grainParticles(systemControl& control, const property& prop);
|
||||
grainParticles(systemControl& control, const grainShape& gShape);
|
||||
|
||||
~grainParticles() override = default;
|
||||
|
||||
|
@ -24,6 +24,7 @@ Licence:
|
||||
#include "particles.hpp"
|
||||
#include "twoPartEntry.hpp"
|
||||
#include "types.hpp"
|
||||
#include "shape.hpp"
|
||||
|
||||
namespace pFlow
|
||||
{
|
||||
|
@ -307,16 +307,11 @@ pFlow::sphereParticles::getParticlesInfoFromShape(
|
||||
|
||||
pFlow::sphereParticles::sphereParticles(
|
||||
systemControl &control,
|
||||
const property& prop
|
||||
const sphereShape& shpShape
|
||||
)
|
||||
:
|
||||
particles(control),
|
||||
spheres_
|
||||
(
|
||||
shapeFile__,
|
||||
&control.caseSetup(),
|
||||
prop
|
||||
),
|
||||
particles(control, shpShape),
|
||||
spheres_(shpShape),
|
||||
propertyId_
|
||||
(
|
||||
objectFile
|
||||
|
@ -48,7 +48,7 @@ public:
|
||||
private:
|
||||
|
||||
/// reference to shapes
|
||||
ShapeType spheres_;
|
||||
const ShapeType& spheres_;
|
||||
|
||||
/// property id on device
|
||||
uint32PointField_D propertyId_;
|
||||
@ -124,7 +124,7 @@ protected:
|
||||
public:
|
||||
|
||||
/// construct from systemControl and property
|
||||
sphereParticles(systemControl& control, const property& prop);
|
||||
sphereParticles(systemControl& control, const sphereShape& shpShape);
|
||||
|
||||
~sphereParticles() override = default;
|
||||
|
||||
|
@ -24,10 +24,11 @@ Licence:
|
||||
|
||||
pFlow::dynamicPointStructure::dynamicPointStructure
|
||||
(
|
||||
systemControl& control
|
||||
systemControl& control,
|
||||
real maxBSphere
|
||||
)
|
||||
:
|
||||
pointStructure(control),
|
||||
pointStructure(control, maxBSphere),
|
||||
velocity_
|
||||
(
|
||||
objectFile(
|
||||
|
@ -57,7 +57,7 @@ public:
|
||||
|
||||
TypeInfo("dynamicPointStructure");
|
||||
|
||||
explicit dynamicPointStructure(systemControl& control);
|
||||
explicit dynamicPointStructure(systemControl& control, real maxBSphere);
|
||||
|
||||
dynamicPointStructure(const dynamicPointStructure& ps) = delete;
|
||||
|
||||
|
@ -18,22 +18,12 @@ Licence:
|
||||
-----------------------------------------------------------------------------*/
|
||||
|
||||
#include "particles.hpp"
|
||||
#include "shape.hpp"
|
||||
|
||||
pFlow::particles::particles(systemControl& control)
|
||||
pFlow::particles::particles(systemControl& control, const shape& shapes)
|
||||
: observer(defaultMessage_),
|
||||
demComponent("particles", control),
|
||||
dynPointStruct_(control),
|
||||
/*id_(
|
||||
objectFile(
|
||||
"id",
|
||||
"",
|
||||
objectFile::READ_IF_PRESENT,
|
||||
objectFile::WRITE_ALWAYS
|
||||
),
|
||||
dynPointStruct_,
|
||||
static_cast<uint32>(-1),
|
||||
static_cast<uint32>(-1)
|
||||
),*/
|
||||
dynPointStruct_(control, shapes.maxBoundingSphere()),
|
||||
shapeIndex_(
|
||||
objectFile(
|
||||
"shapeIndex",
|
||||
|
@ -25,11 +25,14 @@ PARTICULAR PURPOSE.
|
||||
#include "demComponent.hpp"
|
||||
#include "dynamicPointStructure.hpp"
|
||||
#include "particleIdHandler.hpp"
|
||||
#include "shape.hpp"
|
||||
//#include "shape.hpp"
|
||||
|
||||
namespace pFlow
|
||||
{
|
||||
|
||||
|
||||
class shape;
|
||||
|
||||
class particles
|
||||
: public observer
|
||||
, public demComponent
|
||||
@ -96,7 +99,7 @@ public:
|
||||
// type info
|
||||
TypeInfo("particles");
|
||||
|
||||
explicit particles(systemControl& control);
|
||||
explicit particles(systemControl& control, const shape& shapes);
|
||||
|
||||
inline const auto& dynPointStruct() const
|
||||
{
|
||||
|
@ -37,7 +37,7 @@ private:
|
||||
const property& property_;
|
||||
|
||||
/// list of property ids of shapes (index)
|
||||
uint32Vector shapePropertyIds_;
|
||||
uint32Vector shapePropertyIds_;
|
||||
|
||||
/// list of material names
|
||||
wordVector materialNames_;
|
||||
|
Reference in New Issue
Block a user