Skip to content

Commit

Permalink
build based on b943e85
Browse files Browse the repository at this point in the history
  • Loading branch information
Documenter.jl committed Nov 15, 2024
1 parent 177f0a6 commit d1691b0
Show file tree
Hide file tree
Showing 73 changed files with 34,689 additions and 3 deletions.
2 changes: 1 addition & 1 deletion stable
2 changes: 1 addition & 1 deletion v0.1
1 change: 1 addition & 0 deletions v0.1.38/.documenter-siteinfo.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"documenter":{"julia_version":"1.11.1","generation_timestamp":"2024-11-15T02:04:46","documenter_version":"1.8.0"}}
277 changes: 277 additions & 0 deletions v0.1.38/act.html

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions v0.1.38/act_details.html

Large diffs are not rendered by default.

22 changes: 22 additions & 0 deletions v0.1.38/act_docs.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
txt = ["""
# act Parameters
```@meta
CurrentModule = FUSE
```
```@example
import FUSE # hide
act = FUSE.ParametersActors() # hide
act # hide
```
"""]

open("$(@__DIR__)/act.md", "w") do io
return write(io, join(txt, "\n"))
end

open("$(@__DIR__)/act_details.md", "w") do io
return parameters_details_md(io, FUSE.ParametersActors())
end
274 changes: 274 additions & 0 deletions v0.1.38/actors.html

Large diffs are not rendered by default.

87 changes: 87 additions & 0 deletions v0.1.38/actors_docs.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
using InteractiveUtils: subtypes

txt = ["""
# Physics and Engineering Actors
Physics and engineering **actors** are the fundamental building blocks of FUSE simulations:
* Actors operate exclusively on `IMAS.dd` data
* Actors functionality is controlled via `act` parameters
* Actors can be combined into other actors
Fidelity hierarchy is enabled by concept of *generic* Vs *specific* actors
* Generic actors define physics/component
* Specific actors implement a specific model for that physics/component
* For example:
```
ActorEquilibrium <-- generic
├─ ActorSolovev <-- specific
└─ ActorCHEASE <-- specific
```
* `act.[ActorGeneric].model` selects specific actor being used
* All specific actors will expect data and fill the same enties in `dd`
* IMAS.jl expressions are key to make this work seamlessly
* Where possible actors should make use of generic actors and not hardcode use of specific actors
```@contents
Pages = ["actors.md"]
Depth = 3
```
"""]

function concrete_subtypes(T::Type)
if isabstracttype(T)
sub = subtypes(T)
return vcat(map(concrete_subtypes, sub)...)
else
return [T]
end
end

list_directories(path::String) = [item for item in readdir(path) if isdir(joinpath(path, item))]

single_actors = concrete_subtypes(FUSE.SingleAbstractActor)
compound_actors = concrete_subtypes(FUSE.CompoundAbstractActor)

for actor_dir in list_directories(joinpath(FUSE.__FUSE__, "src", "actors"))

first_time_actor_dir = true
index_txt_header = 0
n_actors = 0

for Actor in [compound_actors; single_actors]
folder = FUSE.group_name(Actor)
name = FUSE.name(Actor; remove_Actor=false)
nname = replace("$name", "Actor" => "")
basename = replace(nname, "_" => " ")

if folder == actor_dir
if first_time_actor_dir
push!(txt, "## $(uppercasefirst(replace(actor_dir,"_"=>" ")))")
index_txt_header = length(txt)
first_time_actor_dir = false
end
n_actors += 1
push!(txt,
"""### $basename
```@docs
FUSE.$name(dd::IMAS.dd, act::FUSE.ParametersAllActors; kw...)
```
```@example
import FUSE # hide
act = FUSE.ParametersActors() # hide
getfield(FUSE.ParametersActors(), :$name) # hide
```
"""
)
end
end
if index_txt_header > 0
txt[index_txt_header] = "$(txt[index_txt_header]) ($n_actors actors)"
end
end

open(joinpath(@__DIR__, "actors.md"), "w") do io
return write(io, join(txt, "\n"))
end
239 changes: 239 additions & 0 deletions v0.1.38/assets/FUSE.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
445 changes: 445 additions & 0 deletions v0.1.38/assets/deps.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit d1691b0

Please sign in to comment.