You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Compute `quantity` for each cell/particle in `data_dict`.
9
13
10
14
# Arguments
11
15
12
16
- `data_dict::Dict`: Data dictionary (see [`makeDataDict`](@ref) for the canonical description).
13
17
- `quantity::Symbol`: Target quantity. See [`plotParams`](@ref) for possibilities; only quantities well defined for each cell/particle individually are possible.
18
+
- `icGen::Function=initialConditionFunction`: Function that generates the initial condition function for the :ode components. It must have the signature `icGen(data_dict::Dict, component::Symbol)::Union{Function,Nothing}`. This keyword argument is only relevant if `quantity` depends on one of the :ode components (e.g., `:ode_atomic_fraction`).
14
19
15
20
# Returns
16
21
17
22
- The values of `quantity` for every cell/particle.
@@ -311,6 +320,7 @@ Compute `quantity` for the whole system of cell/particles in `data_dict`.
311
320
- `data_dict::Dict`: Data dictionary (see [`makeDataDict`](@ref) for the canonical description).
312
321
- `quantity::Symbol`: Target quantity. See [`plotParams`](@ref) for possibilities.
313
322
- `agg_function::Union{Function,Symbol}=:default`: If `quantity` is one the the listed symbols in [`DERIVED_QTY`](@ref), [`SFM_STELLAR_QTY`](@ref) or [`SFM_GAS_QTY`](@ref), you can pass an `agg_function` to accumulate the values given by [`scatterQty`](@ref). If `agg_function` is left as `:default` [`integrateQty`](@ref) will try to compute the most reasonable global value for `quantity`.
323
+
- `icGen::Function=initialConditionFunction`: Function that generates the initial condition function for the :ode components. It must have the signature `icGen(data_dict::Dict, component::Symbol)::Union{Function,Nothing}`. This keyword argument is only relevant if `quantity` depends on one of the :ode components (e.g., `:ode_atomic_fraction`).
+ If `component` ∈ [:ode_molecular, :ode_stellar, :ode_molecular_stellar]:
148
152
* `:gas` => ["VEL ", "MASS", "FRAC", "RHO "]
149
153
- `component::Symbol`: Target component. It can only be one of the elements of [`COMPONENTS`](@ref).
154
+
- `icGen::Function=initialConditionFunction`: Function that generates the initial condition function for the :ode components. It must have the signature `icGen(data_dict::Dict, component::Symbol)::Union{Function,Nothing}`. This keyword argument is only relevant if `component` is one of the :ode components (e.g., `:ode_atomic`).
@@ -201,12 +214,17 @@ Compute the gravitational potencial energy.
201
214
+ If `component` ∈ [:ode_molecular, :ode_stellar, :ode_molecular_stellar]:
202
215
* `:gas` => ["POT ", "MASS", "FRAC", "RHO "]
203
216
- `component::Symbol`: Target component. It can only be one of the elements of [`COMPONENTS`](@ref).
217
+
- `icGen::Function=initialConditionFunction`: Function that generates the initial condition function for the :ode components. It must have the signature `icGen(data_dict::Dict, component::Symbol)::Union{Function,Nothing}`. This keyword argument is only relevant if `component` is one of the :ode components (e.g., `:ode_atomic`).
204
218
205
219
# Returns
206
220
207
221
- The gravitational potencial energy of each cell/particle.
- `component::Symbol`: Target component. It can only be one of the elements of [`COMPONENTS`](@ref).
281
+
- `icGen::Function=initialConditionFunction`: Function that generates the initial condition function for the :ode components. It must have the signature `icGen(data_dict::Dict, component::Symbol)::Union{Function,Nothing}`. This keyword argument is only relevant if `component` is one of the :ode components (e.g., `:ode_atomic`).
0 commit comments