MODFLOW 6
version 6.5.0.dev2
MODFLOW 6 Code Documentation
|
Data Types | |
type | particletype |
A particle tracked by the PRT model. More... | |
type | particlestoretype |
Structure of arrays to store particles. More... | |
Functions/Subroutines | |
subroutine, public | create_particle (particle) |
Create a new particle. More... | |
subroutine | destroy_particle (this) |
Destroy a particle. More... | |
subroutine, public | create_particle_store (this, np, mempath) |
Create a new particle store. More... | |
subroutine | destroy_store (this, mempath) |
Deallocate particle arrays. More... | |
subroutine | resize_store (this, np, mempath) |
Reallocate particle arrays. More... | |
subroutine | load_from_store (this, store, imdl, iprp, ip) |
Initialize particle from particle list. More... | |
subroutine | load_from_particle (this, particle, ip) |
Update particle store from particle. More... | |
subroutine | transform_coords (this, xorigin, yorigin, zorigin, sinrot, cosrot, invert, reset) |
Apply the given global-to-local transformation to the particle. More... | |
subroutine | get_model_coords (this, x, y, z) |
Return the particle's model (global) coordinates. More... | |
pure character(len=lenmempath) function, public | get_particle_id (particle) |
Return the particle's composite ID. More... | |
Variables | |
integer, parameter, public | levelmin = 0 |
integer, parameter, public | levelmax = 4 |
subroutine, public particlemodule::create_particle | ( | type(particletype), pointer | particle | ) |
subroutine, public particlemodule::create_particle_store | ( | type(particlestoretype), pointer | this, |
integer(i4b), intent(in) | np, | ||
character(*), intent(in) | mempath | ||
) |
this | store | |
[in] | np | number of particles |
[in] | mempath | path to memory |
Definition at line 117 of file Particle.f90.
|
private |
[in,out] | this | particle |
Definition at line 110 of file Particle.f90.
|
private |
subroutine particlemodule::get_model_coords | ( | class(particletype), intent(inout) | this, |
real(dp), intent(out) | x, | ||
real(dp), intent(out) | y, | ||
real(dp), intent(out) | z | ||
) |
[in,out] | this | particle |
[out] | x | x coordinate |
[out] | y | y coordinate |
[out] | z | z coordinate |
Definition at line 328 of file Particle.f90.
pure character(len=lenmempath) function, public particlemodule::get_particle_id | ( | class(particletype), intent(in) | particle | ) |
Particles are uniquely identified by model index, PRP index, location index, and release time.
Definition at line 353 of file Particle.f90.
|
private |
[in,out] | this | particle storage |
[in] | ip | particle index |
Definition at line 248 of file Particle.f90.
subroutine particlemodule::load_from_store | ( | class(particletype), intent(inout) | this, |
type(particlestoretype), intent(in) | store, | ||
integer(i4b), intent(in) | imdl, | ||
integer(i4b), intent(in) | iprp, | ||
integer(i4b), intent(in) | ip | ||
) |
This routine is used to initialize a particle from the list so it can be tracked by prt_solve. The particle's advancing flag is set and local coordinate transformations are reset.
[in,out] | this | particle |
[in] | store | particle storage |
[in] | imdl | index of model particle originated in |
[in] | iprp | index of particle release package particle originated in |
[in] | ip | index into the particle list |
Definition at line 214 of file Particle.f90.
|
private |
[in,out] | this | particle store |
[in] | np | number of particles |
[in] | mempath | path to memory |
Definition at line 171 of file Particle.f90.
|
private |
[in,out] | this | particle |
[in] | xorigin | x coordinate of origin |
[in] | yorigin | y coordinate of origin |
[in] | zorigin | z coordinate of origin |
[in] | sinrot | sine of rotation angle |
[in] | cosrot | cosine of rotation angle |
[in] | invert | whether to invert |
[in] | reset | whether to reset |
Definition at line 280 of file Particle.f90.
integer, parameter, public particlemodule::levelmax = 4 |
Definition at line 15 of file Particle.f90.
integer, parameter, public particlemodule::levelmin = 0 |
Definition at line 15 of file Particle.f90.