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