processing

Computations of phyvars that are not output by StagYY.

Time series are returned along with the time at which the variables are evaluated. Radial profiles are returned along with the radial positions at which the variables are evaluated.

stagpy.processing.dtime(sdat: StagyyData) Tseries

Compute time increment.

Compute dt as a function of time.

Parameters

sdat – a StagyyData instance.

Returns

dt and time arrays.

stagpy.processing.dt_dt(sdat: StagyyData) Tseries

Compute derivative of temperature.

Compute dT/dt as a function of time using an explicit Euler scheme.

Parameters

sdat – a StagyyData instance.

Returns

derivative of temperature and time arrays.

stagpy.processing.ebalance(sdat: StagyyData) Tseries

Compute energy balance.

Compute Nu_t - Nu_b + V*dT/dt as a function of time using an explicit Euler scheme. This should be zero if energy is conserved.

Parameters

sdat – a StagyyData instance.

Returns

energy balance and time arrays.

stagpy.processing.mobility(sdat: StagyyData) Tseries

Compute plates mobility.

Compute the ratio vsurf / vrms.

Parameters

sdat – a StagyyData instance.

Returns

mobility and time arrays.

stagpy.processing.delta_r(step: Step) Rprof

Compute cell thicknesses.

Parameters

step – a Step of a StagyyData instance.

Returns

the thickness of the cells and radius.

stagpy.processing.diff_prof(step: Step) Rprof

Compute diffusion flux.

Parameters

step – a Step of a StagyyData instance.

Returns

the diffusion and radius.

stagpy.processing.diffs_prof(step: Step) Rprof

Compute scaled diffusion flux.

This computation takes sphericity into account if necessary.

Parameters

step – a Step of a StagyyData instance.

Returns

the diffusion and radius.

stagpy.processing.advts_prof(step: Step) Rprof

Compute scaled advection flux.

This computation takes sphericity into account if necessary.

Parameters

step – a Step of a StagyyData instance.

Returns

the scaled advection and radius.

stagpy.processing.advds_prof(step: Step) Rprof

Compute scaled downward advection flux.

This computation takes sphericity into account if necessary.

Parameters

step – a Step of a StagyyData instance.

Returns

the scaled downward advection and radius.

stagpy.processing.advas_prof(step: Step) Rprof

Compute scaled upward advection flux.

This computation takes sphericity into account if necessary.

Parameters

step – a Step of a StagyyData instance.

Returns

the scaled upward advection and radius.

stagpy.processing.energy_prof(step: Step) Rprof

Compute total heat flux.

This computation takes sphericity into account if necessary.

Parameters

step – a Step of a StagyyData instance.

Returns

the energy flux and radius.

stagpy.processing.advth(step: Step) Rprof

Compute theoretical advection.

This compute the theoretical profile of total advection as function of radius.

Parameters

step – a Step of a StagyyData instance.

Returns

the theoretical advection and radius.

stagpy.processing.init_c_overturn(step: Step) Rprof

Compute concentration before overturn.

This compute the resulting composition profile if fractional crystallization of a SMO is assumed.

Parameters

step – a Step of a StagyyData instance.

Returns

the composition and radius.

stagpy.processing.c_overturned(step: Step) Rprof

Compute theoretical overturned concentration.

This compute the resulting composition profile if fractional crystallization of a SMO is assumed and then a purely radial overturn happens.

Parameters

step – a Step of a StagyyData instance.

Returns

the composition and radius.

stagpy.processing.stream_function(step: Step) Field

Compute the stream function in 2D geometry.

Parameters

step – a Step of a StagyyData instance.

Returns

the stream function field.