Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add configuration of ionizers to PICMI #4985

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"$id": "https://registry.hzdr.de/crp/picongpu/schema/picongpu.pypicongpu.species.constant.ionizationModel.ADKCircPol",
"type": "object",
"description": "Describes the ADK circular polarization ionization model parameters.",
"unevaluatedProperties": false,
"required": [
"ionization_electron_species",
"last"
],
"properties": {
"ionization_electron_species": {
"description": "Electron species spawned by ionization.",
"$ref": "https://registry.hzdr.de/crp/picongpu/schema/picongpu.pypicongpu.species.species.Species"
},
"last": "boolean"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"$id": "https://registry.hzdr.de/crp/picongpu/schema/picongpu.pypicongpu.species.constant.ionizationModel.ADKLinPol",
"type": "object",
"description": "Describes the ADK linear polarization ionization model parameters.",
"unevaluatedProperties": false,
"required": [
"ionization_electron_species"
"last"
],
"properties": {
"ionization_electron_species": {
"description": "Electron species spawned by ionization.",
"$ref": "https://registry.hzdr.de/crp/picongpu/schema/picongpu.pypicongpu.species.species.Species"
},
"last": "boolean"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"$id": "https://registry.hzdr.de/crp/picongpu/schema/picongpu.pypicongpu.species.constant.ionizationModel.BSI",
"type": "object",
"description": "Describes the BSI ionization model parameters.",
"unevaluatedProperties": false,
"required": [
"ionization_electron_species"
"last"
],
"properties": {
"ionization_electron_species": {
"description": "Electron species spawned by ionization.",
"$ref": "https://registry.hzdr.de/crp/picongpu/schema/picongpu.pypicongpu.species.species.Species"
},
"last": "boolean"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"$id": "https://registry.hzdr.de/crp/picongpu/schema/picongpu.pypicongpu.species.constant.ionizationModel.BSIEffectiveZ",
"type": "object",
"description": "Describes the BSI effective Z ionization model parameters.",
"unevaluatedProperties": false,
"required": [
"ionization_electron_species"
"last"
],
"properties": {
"ionization_electron_species": {
"description": "Electron species spawned by ionization.",
"$ref": "https://registry.hzdr.de/crp/picongpu/schema/picongpu.pypicongpu.species.species.Species"
},
"last": "boolean"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"$id": "https://registry.hzdr.de/crp/picongpu/schema/picongpu.pypicongpu.species.constant.ionizationModel.BSIStarkShifted",
"type": "object",
"description": "Describes the BSI stark shifted ionization model parameters.",
"unevaluatedProperties": false,
"required": [
"ionization_electron_species"
"last"
],
"properties": {
"ionization_electron_species": {
"description": "Electron species spawned by ionization.",
"$ref": "https://registry.hzdr.de/crp/picongpu/schema/picongpu.pypicongpu.species.species.Species"
},
"last": "boolean"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"$id": "https://registry.hzdr.de/crp/picongpu/schema/picongpu.pypicongpu.species.constant.ionizationModel.Keldysh",
"type": "object",
"description": "Describes the Keldysh ionization model parameters.",
"unevaluatedProperties": false,
"required": [
"ionization_electron_species"
"last"
],
"properties": {
"ionization_electron_species": {
"description": "Electron species spawned by ionization.",
"$ref": "https://registry.hzdr.de/crp/picongpu/schema/picongpu.pypicongpu.species.species.Species"
},
"last": "boolean"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"$id": "https://registry.hzdr.de/crp/picongpu/schema/picongpu.pypicongpu.species.constant.ionizationModel.ThomasFermi",
"type": "object",
"description": "Describes the Thomas-Fermi ionization model parameters.",
"unevaluatedProperties": false,
"required": [
"ionization_electron_species"
"last"
],
"properties": {
"ionization_electron_species": {
"description": "Electron species spawned by ionization.",
"$ref": "https://registry.hzdr.de/crp/picongpu/schema/picongpu.pypicongpu.species.species.Species"
},
"last": "boolean"
}
}
Original file line number Diff line number Diff line change
@@ -1,13 +1,44 @@
{
"$id": "https://registry.hzdr.de/crp/picongpu/schema/picongpu.pypicongpu.species.constant.ionizers.Ionizers",
"description": "used ionization methods and electron species",
"description": "Ionization electron species schema. Consists of (1) the type of ionization model used and (2) the actual data for that model.",
"type": "object",
"required": ["type", "data"],
"unevaluatedProperties": false,
"required": ["electron_species"],
"properties": {
"electron_species": {
"description": "electrons used for ionization",
"$ref": "https://registry.hzdr.de/crp/picongpu/schema/picongpu.pypicongpu.species.species.Species"
"type": {
"description": "Enum-equivalent of selected type. Note that only one entry should be marked as true, and all others as false, but that is not enforced by the schema.",
"type": "object",
"required": [
"BSIEffectiveZ",
"ADKCircPol",
"ADKLinPol",
"BSI",
"BSIStarkShifted",
"Keldysh",
"ThomasFermi"
],
"unevaluatedProperties": false,
"properties": {
"BSIEffectiveZ": {"type": "boolean"},
"ADKCircPol": {"type": "boolean"},
"ADKLinPol": {"type": "boolean"},
"BSI": {"type": "boolean"},
"BSIStarkShifted": {"type": "boolean"},
"Keldysh": {"type": "boolean"},
"ThomasFermi": {"type": "boolean"}
}
},
"data": {
"description": "Data as provided by any ionization model schema",
"anyOf": [
{"$ref": "https://registry.hzdr.de/crp/picongpu/schema/picongpu.pypicongpu.species.constant.ionizationModel.BSIEffectiveZ"},
{"$ref": "https://registry.hzdr.de/crp/picongpu/schema/picongpu.pypicongpu.species.constant.ionizationModel.ADKCircPol"},
{"$ref": "https://registry.hzdr.de/crp/picongpu/schema/picongpu.pypicongpu.species.constant.ionizationModel.ADKLinPol"},
{"$ref": "https://registry.hzdr.de/crp/picongpu/schema/picongpu.pypicongpu.species.constant.ionizationModel.BSI"},
{"$ref": "https://registry.hzdr.de/crp/picongpu/schema/picongpu.pypicongpu.species.constant.ionizationModel.BSIStarkShifted"},
{"$ref": "https://registry.hzdr.de/crp/picongpu/schema/picongpu.pypicongpu.species.constant.ionizationModel.Keldysh"},
{"$ref": "https://registry.hzdr.de/crp/picongpu/schema/picongpu.pypicongpu.species.constant.ionizationModel.ThomasFermi"}
]
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,46 @@ namespace picongpu

{{#ionizers}}
ionizers<MakeSeq_t<
particles::ionization::BSI<{{{electron_species.typename}}}, particles::ionization::current::None>,
particles::ionization::ADKCircPol<{{{electron_species.typename}}}, particles::ionization::current::None>,
particles::ionization::ThomasFermi<{{{electron_species.typename}}}>>>,
{{#type.BSIEffectiveZ}}
particles::ionization::BSIEffectiveZ<{{{ionizers.data.ionization_electron_species.typename}}}, particles::ionization::current::None>
{{{^ionizers.data.last}}}
,
{{{/ionizers.data.last}}}
{{/type.BSIEffectiveZ}}
{{#type.ADKCircPol}}
particles::ionization::ADKCircPol<{{{ionizers.data.ionization_electron_species.typename}}}, particles::ionization::current::None>,
{{{^ionizers.data.last}}}
,
{{{/ionizers.data.last}}}
{{/type.ADKCircPol}}
{{#type.ADKLinPol}}
particles::ionization::ADKLinPol<{{{ionizers.data.ionization_electron_species.typename}}}, particles::ionization::current::None>,
{{{^ionizers.data.last}}}
,
{{{/ionizers.data.last}}}
{{/type.ADKLinPol}}
{{#type.BSI}}
particles::ionization::BSI<{{{ionizers.data.ionization_electron_species.typename}}}, particles::ionization::current::None>,
{{{^ionizers.data.last}}}
,
{{{/ionizers.data.last}}}
{{/type.BSI}}
{{#type.BSIStarkShifted}}
particles::ionization::BSIStarkShifted<{{{ionizers.data.ionization_electron_species.typename}}}, particles::ionization::current::None>,
{{{^ionizers.data.last}}}
,
{{{/ionizers.data.last}}}
{{/type.BSIStarkShifted}}
{{#type.Keldysh}}
particles::ionization::Keldysh<{{{ionizers.data.ionization_electron_species.typename}}}, particles::ionization::current::None>,
{{{^ionizers.data.last}}}
,
{{{/ionizers.data.last}}}
{{/type.Keldysh}}
{{#type.ThomasFermi}}
particles::ionization::ThomasFermi<{{{ionizers.data.ionization_electron_species.typename}}}>,
{{/type.ThomasFermi}}
>>,
{{/ionizers}}

{{#element_properties}}
Expand Down