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

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