Closed erny123 closed 1 year ago
Hey @erny123,
I think the code you're referring to is in the Ionisation
section of the species block documentation. I also think there's been some confusion here, as the input deck lines here only show where ionisation-relevant keys go. The above text reads: A basic example of using both ionisation mechanisms is given below, where non-relevant lines have been omitted
. Perhaps we should include an ionisation example in our "basic examples" section to avoid future confusion.
There are lines which are "non-relevant" for ionisation, but still required for a standard EPOCH input deck. These include things like x_min
, x_max
, t_end
in the control block, but there are also things needed by the species block.
In the attached input deck, you should include mass
in your Carbon
and Hydrogen
blocks, such that they read:
begin:species
name = Carbon
charge = 0
mass = 1836.2 * 12
atomic_no = 6
ionise = T
ionise_limit = 3
ionisation_electron_species = Electron
density = if((x gt 20.0*micro) ,ne0*1.0/5.0,0)*if((x lt 160.0*micro) ,1,0)
temp_ev = Te_eV
end:species
begin:species
name = Hydrogen
charge = 0
mass = 1836.2 * 1
atomic_no = 1
ionise = T
ionise_limit = 1
ionisation_electron_species = Electron
density = if((x gt 20.0*micro) ,ne0*4.0/5.0,0)*if((x lt 160.0*micro) ,1,0)
temp_ev = Te_eV
end:species
Note that mass
must be specified for a species (unless using the identify
alias like your electron species), and is given in units of the electron mass. The mass, charge and atomic number of ionised species will be generated automatically.
If you have any further problems, let me know Stuart
I have an input deck where I basically just copy the ionisation example from: https://epochpic.github.io/documentation/input_deck/input_deck_species.html
However I get the following errors:
I'm going to try adding each ionised species one by one. But honestly, ya'll should have better documentation on this.
And here is the input deck.