quadgrid 0.1
simple cartesian quad grid with particles for c++/octave
Loading...
Searching...
No Matches
updateRho< PVAR_t > Class Template Reference

#include <drift_diffusion.h>

Public Member Functions

 updateRho (PVAR_t rho_, PVAR_t divV_, real_t dt_)
DEVICE void operator() (idx_t ip)

Private Types

using idx_t = particles_t::idx_t

Private Attributes

PVAR_t rho
PVAR_t divV
real_t dt

Detailed Description

template<typename PVAR_t>
class updateRho< PVAR_t >

Definition at line 249 of file drift_diffusion.h.

Member Typedef Documentation

◆ idx_t

template<typename PVAR_t>
using updateRho< PVAR_t >::idx_t = particles_t::idx_t
private

Definition at line 253 of file drift_diffusion.h.

Constructor & Destructor Documentation

◆ updateRho()

template<typename PVAR_t>
updateRho< PVAR_t >::updateRho ( PVAR_t rho_,
PVAR_t divV_,
real_t dt_ )
inline

Definition at line 255 of file drift_diffusion.h.

Member Function Documentation

◆ operator()()

template<typename PVAR_t>
DEVICE void updateRho< PVAR_t >::operator() ( idx_t ip)
inline

Definition at line 260 of file drift_diffusion.h.

260 {
261 rho[ip] = rho[ip]/(1 + dt*divV[ip]);
262 }

Member Data Documentation

◆ divV

template<typename PVAR_t>
PVAR_t updateRho< PVAR_t >::divV
private

Definition at line 251 of file drift_diffusion.h.

◆ dt

template<typename PVAR_t>
real_t updateRho< PVAR_t >::dt
private

Definition at line 252 of file drift_diffusion.h.

◆ rho

template<typename PVAR_t>
PVAR_t updateRho< PVAR_t >::rho
private

Definition at line 251 of file drift_diffusion.h.


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