Skip to content

Maths parser support #6

@ShaunD137

Description

@ShaunD137

It would be helpful if in-line calculations in the input.deck were processed into the result. For example the input.deck might define.

omega = 2.0 * pi * c / (1.0e-6) 

But epydeck will read that as a string instead of calculating the value of 1.88 * 10^15. Also support for variables that reference previous sections would help.

#size of domain
x_min = -4e-6
x_max =  20e-6
y_min = -12e-6
y_max = -y_min

and

number_density = number_density(Electron) / 6

Which sets the number density of one species to be 1/6 the number density of the electron species.

Additional Request:
It would also be useful if this functionality would include EPOCH defined functions such as the critical() function:

$$\text{critical}(\omega) = \frac{\omega^2 m_e \epsilon_0}{e^2}$$

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