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

Neutral fueling actor (WIP) #705

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
Open

Neutral fueling actor (WIP) #705

wants to merge 13 commits into from

Conversation

orso82
Copy link
Member

@orso82 orso82 commented Sep 10, 2024

No description provided.

Copy link
Member Author

@orso82 orso82 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mostly minor comments! 👍

src/actors/hcd/neutral_fueling_actor.jl Outdated Show resolved Hide resolved
dd = actor.dd
par = actor.par

if par.model == :neucg
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if model is not :neucg this will throw an error

src/actors/hcd/neutral_fueling_actor.jl Outdated Show resolved Hide resolved
src/actors/hcd/neutral_fueling_actor.jl Outdated Show resolved Hide resolved
src/actors/hcd/neutral_fueling_actor.jl Outdated Show resolved Hide resolved
src/actors/hcd/neutral_fueling_actor.jl Outdated Show resolved Hide resolved
src/actors/hcd/neutral_fueling_actor.jl Outdated Show resolved Hide resolved
src/actors/hcd/neutral_fueling_actor.jl Outdated Show resolved Hide resolved
src/actors/hcd/neutral_fueling_actor.jl Outdated Show resolved Hide resolved
taupin::Entry{Float64} = Entry{Float64}("s", "Particle confinement time"; default=1.0)
twall::Entry{Float64} = Entry{Float64}("eV", "Wall temperature"; default=10.0)
vwall::Entry{Float64} = Entry{Float64}("m/s", "Wall particle velocity"; default=100.0)
model::Switch{Symbol} = Switch{Symbol}([:neucg, :none], "-", "Neutral gas fueling model"; default=:neucg)
Copy link
Contributor

@TimSlendebroek TimSlendebroek Sep 11, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is a good moment to talk about model = :none

This also happens elsewhere (ActorCoreTransport for example)

As it will show up in the Loggin as if the actor ran but in fact it didn't!

What I think should happen is that these actors shouldnt' be executed and instead use ActorNoOperation in the compound ones (kind of like how we do this for the pedestal)

what do you think @orso82 ?

end

cp1d = dd.core_profiles.profiles_1d[]
resize!(cp1d.neutral, 1)[1]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
resize!(cp1d.neutral, 1)[1]
resize!(cp1d.neutral, 1)[1]
Suggested change
resize!(cp1d.neutral, 1)[1]
resize!(cp1d.neutral, 1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants