Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
j-fu committed Nov 25, 2024
1 parent 734eb88 commit 88bcab9
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 18 deletions.
6 changes: 3 additions & 3 deletions docs/src/post.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Plotting

Plotting can be performed using the package [GridVisualize.jl](https://github.com/WIAS-PDELib/GridVisualize.jl).
This package extends the API with a couple of methods:
This package extends the API with a couple of methods for systems:

```@docs
GridVisualize.gridplot
Expand Down Expand Up @@ -37,9 +37,9 @@ nodevolumes
## Solution integrals
```@docs
VoronoiFVM.integrate(system::VoronoiFVM.AbstractSystem, tf::Vector, U::AbstractMatrix; kwargs...)
VoronoiFVM.integrate(system::VoronoiFVM.AbstractSystem{Tv, Tc, Ti, Tm}, F::Function, U::AbstractMatrix{Tu}; boundary = false, data = system.physics.data) where {Tu, Tv, Tc, Ti, Tm}
VoronoiFVM.integrate(system::VoronoiFVM.AbstractSystem{Tv, Tc, Ti, Tm}, F::Tf, U::AbstractMatrix{Tu}; boundary = false, data = system.physics.data) where {Tu, Tv, Tc, Ti, Tm, Tf}
VoronoiFVM.integrate(system::VoronoiFVM.AbstractSystem, U::AbstractMatrix; kwargs...)
VoronoiFVM.integrate(system::VoronoiFVM.AbstractSystem, F::Function, U::AbstractMatrix; boundary, data)
VoronoiFVM.integrate(system::VoronoiFVM.AbstractSystem, F, U::AbstractMatrix; boundary, data)
VoronoiFVM.edgeintegrate
```

Expand Down
34 changes: 19 additions & 15 deletions src/vfvm_postprocess.jl
Original file line number Diff line number Diff line change
Expand Up @@ -124,28 +124,18 @@ end

############################################################################
"""
$(SIGNATURES)
nodeflux(system, F,U; data)
Reconstruction of an edge function as vector function on the nodes of the
triangulation. The result can be seen as a piecewiesw linear vector
function in the FEM space spanned by the discretization nodes exhibiting
the flux density.
The reconstruction is based on the "magic formula"
R. Eymard, T. Gallouet, R. Herbin, IMA Journal of Numerical Analysis (2006)
26, 326−353, Lemma 2.4 .
R. Eymard, T. Gallouët, R. Herbin, IMA Journal of Numerical Analysis (2006)
26, 326−353, Lemma 2.4 (also: [hal.science/hal-00004840](https://hal.science/hal-00004840) ).
The return value is a `dim x nspec x nnodes` vector. The flux of species i
can e.g. plotted via GridVisualize.vectorplot.
Example:
```julia
ispec=3
vis=GridVisualizer(Plotter=Plotter)
scalarplot!(vis,grid,solution[ispec,:],clear=true,colormap=:summer)
vectorplot!(vis,grid,nf[:,ispec,:],clear=false)
reveal(vis)
```
The return value is a `dim x nspec x nnodes` vector.
CAVEAT: there is a possible unsolved problem with the values at domain
corners in the code. Please see any potential boundary artifacts as a manifestation
Expand Down Expand Up @@ -206,10 +196,24 @@ function nodeflux(
end

"""
$(SIGNATURES)
nodeflux(system, U; data)
Reconstruction of the edge flux as vector function on the nodes of the
triangulation. See [`nodeflux(system,F,U;data)`](@ref).
The flux of species i
can e.g. plotted via GridVisualize.vectorplot.
Example:
```julia
ispec=3
vis=GridVisualizer(Plotter=Plotter)
scalarplot!(vis,grid,solution[ispec,:],clear=true,colormap=:summer)
vectorplot!(vis,grid,nf[:,ispec,:],clear=false)
reveal(vis)
```
"""
function nodeflux(
system::AbstractSystem{Tv, Tc, Ti, Tm}, U::AbstractArray{Tu, 2};
Expand Down

2 comments on commit 88bcab9

@j-fu
Copy link
Member Author

@j-fu j-fu commented on 88bcab9 Nov 25, 2024

Choose a reason for hiding this comment

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

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

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

Registration pull request created: JuliaRegistries/General/120127

Tip: Release Notes

Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.

@JuliaRegistrator register

Release notes:

## Breaking changes

- blah

To add them here just re-invoke and the PR will be updated.

Tagging

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v2.6.0 -m "<description of version>" 88bcab930ace81efa99991d853e0d3793aa9d608
git push origin v2.6.0

Please sign in to comment.