BorgLpt
-
class
aquila_borg.forward.models.
BorgLpt
This class binds the borg LPT forward model (CIC mass assignment).
- Parameters
box (BoxModel) – Input box comoving size
- Keyword Arguments
box_out (BoxModel) – Output box (default is equal to input).
rsd (bool) – inject redshift space distortions, default false.
supersampling (int) – supersampling factor, i.e. by multiplicative factor, for each side, between particle array and input array [default 1].
particle_factor (float) – allocation ratio of the particle arrays (must be > 1) [default 1.1]
ai (float) – scale factor used for the input density field (default 0.1)
af (float) – scale factor requested for the output (default 1.0)
lightcone (bool) – if true, add lightcone effect at order 0, (default false)
lightcone_boost (float) – make the structures goes quicker, useful for art drawing of lightcones (default 1.0)
Methods
|
|
|
Request the model to accumulate adjoint vectors instead of resetting at each call. |
|
Pushes the adjoint gradient from a deeper part of the computation. |
|
Clear accumulated information to compute the adjoint gradient vector. |
|
|
|
Run the first part of the forward model (v2 API). |
|
|
|
Return the box on which is defined the input of the model is defined. |
|
Build and return an MPI4PY communicator object that is linked to the internal MPI communicator of that object. |
|
Obtain the density field produced by the forward model (part 2 of the evaluation, v2 API). |
|
Returns a tuple of integer indicating the way the slab is distributed among the node. |
|
This queries the current state of the parameters ‘keyname’ in model ‘model’. |
|
Return the number of particles present on the current MPI task |
|
Return the box on which is defined the output of the model is defined. |
|
Return a tuple indicating what is the expected output MPI slicing (startN0,localN0,N1,N2) (Warning! unstable API) |
|
Return the positions of the particles in the provided numpy array |
|
Return the velocities of the particles in the provided numpy array |
|
Returns the preferred output format (i.e. |
|
Returns the preferred output format (i.e. |
|
|
|
Indicate whether the caller require the adjoint gradient to be computed later. |
|
Setup the cosmological parameters that this model requires. |
|
Allow changing model parameters for different model indexed by the dictionnary key, each item is another dictionnary with key/value pairs. |
|
Give a to localize more easily a model instance. |
|
Setup a callback when a new step is being computed for particles. |