PeriDyno 0.9.2
Loading...
Searching...
No Matches
ParticleType.h
Go to the documentation of this file.
1#pragma once
2#include <cuda_runtime.h>
3#include "Platform.h"
4namespace dyno
5{
15 {
16 public:
19
20 enum Type
21 {
22 VIRTUAL = false,
23 REAL = true
24 };
25
26 DYN_FUNC inline void SetParticleType(Type type) { m_type = type; }
27 DYN_FUNC inline Type GetParticleType() { return (Type)(m_type); }
28
29 DYN_FUNC inline bool IsVirtual() { return m_type == Type::VIRTUAL; }
30 DYN_FUNC inline bool IsReal() { return m_type == Type::REAL; }
31 private:
32 bool m_type;
33 };
34}
35
2 types of particle: Real particle (with pressure feild, advection.); virtual particle (with velocity...
DYN_FUNC Type GetParticleType()
DYN_FUNC void SetParticleType(Type type)
DYN_FUNC ~ParticleType()
DYN_FUNC bool IsReal()
DYN_FUNC bool IsVirtual()
DYN_FUNC ParticleType()
This is an implementation of AdditiveCCD based on peridyno.
Definition Array.h:24