This submodule contains the implementation of the methods of TYPE sph_particles that handle I/O (input/output)
FT 5.11.2021
Export the points where some of the hydro fields are negative to a formatted file
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(particles), | intent(inout) | :: | this |
particles object which this PROCEDURE is a member of |
||
character(len=*), | intent(inout), | optional | :: | namefile |
Name of the formatted file where the particle positions at which some of the hydro fields are negative or zero are printed to |
Print the \(\mathrm{SPH}\) \(\mathrm{ID}\) on the particles in a formatted file
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(particles), | intent(inout) | :: | this |
particles object which this PROCEDURE is a member of |
||
character(len=*), | intent(inout), | optional | :: | namefile |
Name of the formatted output file |
Prints a summary of the properties of the
\(\mathrm{SPH}\) particle distribution, optionally, to
a formatted file whose name
is given as the optional argument filename
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(particles), | intent(inout) | :: | this |
Name of the formatted file to print the summary to |
Read particle positions and nu from a formatted file with the following format:
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(particles), | intent(inout) | :: | this |
particles object which this PROCEDURE is a member of |
||
integer | :: | parts_pos_unit |
Unit number of the formatted file containing the particle positions and, optionally, nu |
|||
integer | :: | nline_in |
First line containing the relevant data |
|||
integer | :: | nline_fin |
Last line containing the relevant data |
|||
double precision, | intent(in) | :: | xmin |
Left boundary of the lattice |
||
double precision, | intent(in) | :: | xmax |
Right boundary of the lattice |
||
double precision, | intent(in) | :: | ymin |
Left boundary of the lattice |
||
double precision, | intent(in) | :: | ymax |
Right boundary of the lattice |
||
double precision, | intent(in) | :: | zmin |
Left boundary of the lattice |
||
double precision, | intent(in) | :: | zmax |
Right boundary of the lattice |
||
double precision, | intent(inout), | DIMENSION(:,:), ALLOCATABLE | :: | pos | ||
double precision, | intent(inout), | DIMENSION(:), ALLOCATABLE | :: | pvol |
Array storing the particle positions Array storing the particle volumes |
|
double precision, | intent(inout), | DIMENSION(:), ALLOCATABLE | :: | nu |
Array storing the particle baryon masses |
|
double precision, | intent(inout), | DIMENSION(:), ALLOCATABLE | :: | h |
Array storing the initial guess for the particle smoothing lengths |
Read the \(\mathrm{SPH}\) \(\mathrm{ID}\) from the binary file output by write_SPHINCS_dump, and print it to a formatted file
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(particles), | intent(inout) | :: | this |
particles object which this PROCEDURE is a member of |
||
character(len=*), | intent(inout), | optional | :: | namefile_bin |
Name of the binary file to be read |
|
character(len=*), | intent(inout), | optional | :: | namefile |
Name of the formatted file to be printed |
|
logical, | intent(in), | optional | :: | save_data |
If |