OpenLB 1.8.1
Loading...
Searching...
No Matches
olb::SuperParticleGroupedFieldF< T, DESCRIPTOR, GROUP, FIELD, W > Class Template Reference

#include <groupedFieldF.h>

+ Inheritance diagram for olb::SuperParticleGroupedFieldF< T, DESCRIPTOR, GROUP, FIELD, W >:
+ Collaboration diagram for olb::SuperParticleGroupedFieldF< T, DESCRIPTOR, GROUP, FIELD, W >:

Public Member Functions

 SuperParticleGroupedFieldF (particles::SuperParticleSystem< T, DESCRIPTOR > &sParticleSystem)
 
- Public Member Functions inherited from olb::SuperContainerF< T, DESCRIPTOR, DynamicFieldGroupsD< T, DESCRIPTOR::fields_t >, T >
LoadBalancer< T > & getLoadBalancer ()
 
int getContainerSize () const
 
ContainerF< T, DESCRIPTOR, DynamicFieldGroupsD< T, DESCRIPTOR::fields_t > > & getContainerF (int iCloc)
 
bool operator() (T output[], const int input[])
 
- Public Member Functions inherited from olb::GenericF< T, int >
virtual ~GenericF ()=default
 
int getSourceDim () const
 read only access to member variable _m
 
int getTargetDim () const
 read only access to member variable _n
 
std::string & getName ()
 read and write access to name
 
std::string const & getName () const
 read only access to name
 
virtual bool operator() (T output[], const int input[])=0
 has to be implemented for 'every' derived class
 
bool operator() (T output[])
 wrapper that call the pure virtual operator() (T output[], const S input[]) from above
 
bool operator() (T output[], int input0)
 
bool operator() (T output[], int input0, int input1)
 
bool operator() (T output[], int input0, int input1, int input2)
 
bool operator() (T output[], int input0, int input1, int input2, int input3)
 

Additional Inherited Members

- Public Types inherited from olb::GenericF< T, int >
using targetType
 
using sourceType
 
- Public Attributes inherited from olb::GenericF< T, int >
std::shared_ptr< GenericF< T, int > > _ptrCalcC
 memory management, frees resouces (calcClass)
 
- Static Public Attributes inherited from olb::SuperContainerF< T, DESCRIPTOR, DynamicFieldGroupsD< T, DESCRIPTOR::fields_t >, T >
static constexpr bool isSuper
 
static constexpr unsigned d
 
- Protected Member Functions inherited from olb::SuperContainerF< T, DESCRIPTOR, DynamicFieldGroupsD< T, DESCRIPTOR::fields_t >, T >
 SuperContainerF (LoadBalancer< T > &loadBalancer, int targetDim)
 
- Protected Member Functions inherited from olb::GenericF< T, int >
 GenericF (int targetDim, int sourceDim)
 
- Protected Attributes inherited from olb::SuperContainerF< T, DESCRIPTOR, DynamicFieldGroupsD< T, DESCRIPTOR::fields_t >, T >
LoadBalancer< T > & _loadBalancer
 
std::vector< std::unique_ptr< ContainerF< T, DESCRIPTOR, DynamicFieldGroupsD< T, DESCRIPTOR::fields_t > > > > _containerF
 

Detailed Description

template<typename T, typename DESCRIPTOR, typename GROUP, typename FIELD, typename W = T>
class olb::SuperParticleGroupedFieldF< T, DESCRIPTOR, GROUP, FIELD, W >

Definition at line 114 of file groupedFieldF.h.

Constructor & Destructor Documentation

◆ SuperParticleGroupedFieldF()

template<typename T , typename DESCRIPTOR , typename GROUP , typename FIELD , typename W >
olb::SuperParticleGroupedFieldF< T, DESCRIPTOR, GROUP, FIELD, W >::SuperParticleGroupedFieldF ( particles::SuperParticleSystem< T, DESCRIPTOR > & sParticleSystem)

Definition at line 133 of file groupedFieldF.hh.

136 sParticleSystem.getSuperStructure().getLoadBalancer(),
137 DESCRIPTOR::template size<typename meta::derived_type_in_nested<DESCRIPTOR,GROUP,FIELD>::type>() ),
138 _sParticleSystem(sParticleSystem)
139{
140 this->getName() = std::string(typeid(FIELD).name());
141
142 int maxC = this->_sParticleSystem.getSuperStructure().getLoadBalancer().size();
143 this->_containerF.reserve(maxC);
144 for (int iC = 0; iC < maxC; iC++) {
145
146 auto bParticleSystems = _sParticleSystem.getBlockParticleSystems();
147 auto& particleSystem = *bParticleSystems[iC];
148 auto& container = particleSystem.get();
149
150 this->_containerF.emplace_back(new GroupedFieldF<T,DESCRIPTOR,GROUP,FIELD>( container ) );
151 }
152}
std::string & getName()
Definition genericF.hh:51
std::vector< std::unique_ptr< ContainerF< T, DESCRIPTOR, DynamicFieldGroupsD< T, DESCRIPTOR::fields_t > > > > _containerF
LoadBalancer< T > & getLoadBalancer()
Read and write access to the load balancer.
SuperStructure< T, PARTICLETYPE::d > & getSuperStructure()
std::vector< ParticleSystem< T, PARTICLETYPE > * > & getBlockParticleSystems()
std::string name()
Returns name of FIELD for human consumption.
Definition fields.h:49
typename decltype(evaluate_type())::type type
Definition meta.h:600

References olb::SuperContainerF< T, DESCRIPTOR, DynamicFieldGroupsD< T, DESCRIPTOR::fields_t >, T >::_containerF, olb::particles::SuperParticleSystem< T, PARTICLETYPE >::getBlockParticleSystems(), olb::SuperStructure< T, D >::getLoadBalancer(), olb::GenericF< T, int >::getName(), and olb::particles::SuperParticleSystem< T, PARTICLETYPE >::getSuperStructure().

+ Here is the call graph for this function:

The documentation for this class was generated from the following files: