Skip to content

possible equation error in imas/src/physics/fast.jl #281

@TokaMcNamara

Description

@TokaMcNamara

looking at the code and comparing to the reference it looks like slightly different expressions for the fast ion density and pressure are used

around line 343

pressa = i4 .* taus .* 2.0 ./ 3.0 .* (sion_particles .* particle_energy .* mks.e)
cion.density_fast .+= sion_particles .* taut

In the reference the density is
Image
and pressure
Image
If I sub density into pressure this gives

Image

which is similar to the expression given in the code, but the code doesn't look to include the (v_c/v_alpha) term.

I also looked at the density expression and it looks slightly different as well. The reference uses tau_slow and (v_c/v_alpha) but the code looked to use tau_therm defined as tau_s * log((vf3 + vc3) / vc3) / 3

I haven't double checked this but thought I'd post it before I forget!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions