peclet.voro 1.0.4
Device-native moving-particle Voronoi dynamics
Loading...
Searching...
No Matches
peclet::voro::pybind::Sim Class Reference
Inheritance diagram for peclet::voro::pybind::Sim:
Collaboration diagram for peclet::voro::pybind::Sim:

Public Member Functions

 Sim ()=default
 
void release () noexcept override
 
void set_domain (std::array< real_t, 3 > extent, std::array< real_t, 3 > origin, std::array< bool, 3 > periodic)
 
std::array< real_t, 3 > extent () const
 
void set_positions (nb::ndarray< real_t, nb::c_contig > a)
 
void set_velocities (nb::ndarray< real_t, nb::c_contig > a)
 
void set_masses (nb::ndarray< real_t, nb::c_contig > a)
 
void set_pressure (real_t p)
 
void set_viscosities (nb::ndarray< real_t, nb::c_contig > a)
 
void set_bulk_viscosities (nb::ndarray< real_t, nb::c_contig > a)
 
void set_repair (bool on)
 
void set_profile (bool on)
 
void set_geometry (nb::ndarray< int, nb::c_contig > node_ints, nb::ndarray< real_t, nb::c_contig > node_reals, int root, real_t grad_h)
 
void clear_geometry ()
 
void init ()
 
void set_dt (real_t dt)
 
real_t dt () const
 
void step (int nsteps)
 
nb::ndarray< nb::numpy, real_t > get_positions ()
 
nb::ndarray< nb::numpy, real_t > get_velocities ()
 
nb::ndarray< nb::numpy, real_t > get_forces ()
 
real_t kinetic_energy ()
 
real_t internal_energy ()
 
real_t time ()
 
int num_particles () const
 
nb::ndarray< nb::numpy, real_t > get_volumes ()
 
nb::ndarray< nb::numpy, int > get_neighbor_counts ()
 

Constructor & Destructor Documentation

◆ Sim()

peclet::voro::pybind::Sim::Sim ( )
default

Member Function Documentation

◆ clear_geometry()

void peclet::voro::pybind::Sim::clear_geometry ( )
inline

◆ dt()

real_t peclet::voro::pybind::Sim::dt ( ) const
inline

◆ extent()

std::array< real_t, 3 > peclet::voro::pybind::Sim::extent ( ) const
inline

◆ get_forces()

nb::ndarray< nb::numpy, real_t > peclet::voro::pybind::Sim::get_forces ( )
inline

◆ get_neighbor_counts()

nb::ndarray< nb::numpy, int > peclet::voro::pybind::Sim::get_neighbor_counts ( )
inline

◆ get_positions()

nb::ndarray< nb::numpy, real_t > peclet::voro::pybind::Sim::get_positions ( )
inline

◆ get_velocities()

nb::ndarray< nb::numpy, real_t > peclet::voro::pybind::Sim::get_velocities ( )
inline

◆ get_volumes()

nb::ndarray< nb::numpy, real_t > peclet::voro::pybind::Sim::get_volumes ( )
inline

◆ init()

void peclet::voro::pybind::Sim::init ( )
inline

◆ internal_energy()

real_t peclet::voro::pybind::Sim::internal_energy ( )
inline

◆ kinetic_energy()

real_t peclet::voro::pybind::Sim::kinetic_energy ( )
inline

◆ num_particles()

int peclet::voro::pybind::Sim::num_particles ( ) const
inline

◆ release()

void peclet::voro::pybind::Sim::release ( )
inlineoverridenoexcept

◆ set_bulk_viscosities()

void peclet::voro::pybind::Sim::set_bulk_viscosities ( nb::ndarray< real_t, nb::c_contig >  a)
inline

◆ set_domain()

void peclet::voro::pybind::Sim::set_domain ( std::array< real_t, 3 >  extent,
std::array< real_t, 3 >  origin,
std::array< bool, 3 >  periodic 
)
inline

◆ set_dt()

void peclet::voro::pybind::Sim::set_dt ( real_t  dt)
inline

◆ set_geometry()

void peclet::voro::pybind::Sim::set_geometry ( nb::ndarray< int, nb::c_contig >  node_ints,
nb::ndarray< real_t, nb::c_contig >  node_reals,
int  root,
real_t  grad_h 
)
inline

◆ set_masses()

void peclet::voro::pybind::Sim::set_masses ( nb::ndarray< real_t, nb::c_contig >  a)
inline

◆ set_positions()

void peclet::voro::pybind::Sim::set_positions ( nb::ndarray< real_t, nb::c_contig >  a)
inline

◆ set_pressure()

void peclet::voro::pybind::Sim::set_pressure ( real_t  p)
inline

◆ set_profile()

void peclet::voro::pybind::Sim::set_profile ( bool  on)
inline

◆ set_repair()

void peclet::voro::pybind::Sim::set_repair ( bool  on)
inline

◆ set_velocities()

void peclet::voro::pybind::Sim::set_velocities ( nb::ndarray< real_t, nb::c_contig >  a)
inline

◆ set_viscosities()

void peclet::voro::pybind::Sim::set_viscosities ( nb::ndarray< real_t, nb::c_contig >  a)
inline

◆ step()

void peclet::voro::pybind::Sim::step ( int  nsteps)
inline

◆ time()

real_t peclet::voro::pybind::Sim::time ( )
inline

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