the need to provide neighborLength in domain dictionary is lifted. Now it is optional

This commit is contained in:
HRN
2025-02-03 23:49:11 +03:30
parent fac5576df1
commit 63bd9c9993
30 changed files with 106 additions and 76 deletions

View File

@ -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

View File

@ -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;

View File

@ -24,6 +24,7 @@ Licence:
#include "particles.hpp"
#include "twoPartEntry.hpp"
#include "types.hpp"
#include "shape.hpp"
namespace pFlow
{

View File

@ -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

View File

@ -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;

View File

@ -24,10 +24,11 @@ Licence:
pFlow::dynamicPointStructure::dynamicPointStructure
(
systemControl& control
systemControl& control,
real maxBSphere
)
:
pointStructure(control),
pointStructure(control, maxBSphere),
velocity_
(
objectFile(

View File

@ -57,7 +57,7 @@ public:
TypeInfo("dynamicPointStructure");
explicit dynamicPointStructure(systemControl& control);
explicit dynamicPointStructure(systemControl& control, real maxBSphere);
dynamicPointStructure(const dynamicPointStructure& ps) = delete;

View File

@ -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",

View File

@ -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
{

View File

@ -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_;