Skip to content

Commit 945f0d4

Browse files
committed
fixed some things in the documentation
1 parent e854284 commit 945f0d4

7 files changed

+53
-19
lines changed

docs/make.jl

+5-5
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ function make_all(; with_examples::Bool = true)
4343
modules=[ExtendableFEMBase],
4444
sitename="ExtendableFEMBase.jl",
4545
authors="Christian Merdon",
46-
repo = "github.com/chmerdon/ExtendableFEMBase.jl",
47-
clean = false,
48-
format = Documenter.HTML(size_threshold = 250000),
46+
repo = "https://github.com/chmerdon/ExtendableFEMBase.jl",
47+
clean = true,
48+
format = Documenter.HTML(size_threshold = 250000, mathengine = MathJax3()),
4949
checkdocs = :all,
50-
warnonly = true,
50+
warnonly = false,
5151
doctest = true,
5252
pages = [
5353
"Home" => "index.md",
@@ -76,7 +76,7 @@ function make_all(; with_examples::Bool = true)
7676

7777
end
7878

79-
make_all(; with_examples = true)
79+
make_all(; with_examples = false)
8080

8181
deploydocs(
8282
repo = "github.com/chmerdon/ExtendableFEMBase.jl",

docs/src/functionoperators.md

+8-6
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,13 @@ used to dispatch different evaluations of finite element basis functions.
3636
can be build from the ones available (e.g. the deviator).
3737

3838

39+
```@autodocs
40+
Modules = [ExtendableFEMBase]
41+
Pages = ["functionoperators.jl"]
42+
Order = [:type, :function]
43+
```
44+
45+
3946
## ReconstructionOperators
4047

4148
There are special operators that allow to evaluate a primitive operator of some discrete
@@ -59,9 +66,4 @@ as well as for the P2-bubble (H1P2B) finite element type in two dimensions.
5966

6067
## Operator Pairs (experimental)
6168

62-
Two function operators can be put into an OperatorPair so that one can provide effectively two operators in each argument of an assembly pattern. However, the user should make sure that both operators can be evaluated together reasonably (meaning both should be well-defined on the element geometries and the finite element space where the argument will be evaluated, and the action of the operator has to operate with coressponding input and result fields). This feature is still experimental and might have issues in some cases. OperatorTriple for a combination of three operators is also available.
63-
64-
```@docs
65-
OperatorPair
66-
OperatorTriple
67-
```
69+
Two function operators can be put into an OperatorPair so that one can provide effectively two operators in each argument of an assembly pattern. However, the user should make sure that both operators can be evaluated together reasonably (meaning both should be well-defined on the element geometries and the finite element space where the argument will be evaluated, and the action of the operator has to operate with coressponding input and result fields). This feature is still experimental and might have issues in some cases. OperatorTriple for a combination of three operators is also available.

docs/src/interpolations.md

+12-1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ Usually, Plotters need nodal values, so there is a gengeric function that evalua
3939
nodevalues!
4040
nodevalues
4141
nodevalues_view
42+
nodevalues_subset!
4243
```
4344

4445
## Lazy Interpolation
@@ -48,4 +49,14 @@ works in all cases (but is not very efficient as it involves a PointeEvaluator a
4849

4950
```@docs
5051
lazy_interpolate!
51-
```
52+
```
53+
54+
55+
## Displace Mesh
56+
57+
Nodal values (e.g. of a FEVector that discretizes a displacement) can be used to displace the mesh.
58+
59+
```@docs
60+
displace_mesh!
61+
displace_mesh
62+
```

docs/src/quadrature.md

+9
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,13 @@ Quadrature rules consist of points (coordinates of evaluation points with respec
1212
Modules = [ExtendableFEMBase]
1313
Pages = ["quadrature.jl"]
1414
Order = [:type, :function]
15+
```
16+
17+
18+
#### Accumulating Vector (not relevant for users, but for completeness)
19+
20+
Internally a global integration uses an accumulating vector and calls the cell-wise integration.
21+
22+
```@docs
23+
AccumulatingVector
1524
```

src/accumvector.jl

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
###########################
22
### ACCUMULATING VECTOR ###
33
###########################
4-
#
5-
# used to store coefficients for FESpaces and can have several blocks of different FESpaces
6-
# acts like an AbstractArray{T,1}
74

85
"""
96
$(TYPEDEF)
107
11-
block of an FEVector that carries coefficients for an associated FESpace and can be assigned as an AbstractArray (getindex, setindex, size, length)
8+
vector that is acting as an AbstractArray{T, 2} and
9+
automatically accumulates all values from the second dimension
10+
11+
AV[k,j] += s for any j results in AV.entries[k] += s
1212
"""
1313
struct AccumulatingVector{T} <: AbstractArray{T, 2}
1414
entries::Array{T, 1}
1515
size2::Int
1616
end
1717

18-
# AV[k,j] += s for any j results in entries[k] += s
18+
#
1919

2020
# overload stuff for AbstractArray{T,2} behaviour
2121
Base.getindex(AV::AccumulatingVector, i::Int, j) = AV.entries[i]

src/finiteelements.jl

+5
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@
88
#######################################################################################################
99
#######################################################################################################
1010

11+
"""
12+
$(TYPEDEF)
13+
14+
root type for finite element types
15+
"""
1116
abstract type AbstractFiniteElement end
1217

1318

src/interpolations.jl

+9-2
Original file line numberDiff line numberDiff line change
@@ -384,8 +384,8 @@ function nodevalues_subset!(
384384
Evaluates the finite element function with the coefficient vector source (interpreted as a coefficient vector for the FESpace FE)
385385
and the specified FunctionOperator at the specified list of nodes of the grid and writes the values in that order into target.
386386
Node values for nodes that are not part of the specified regions (default = all regions) are set to zero.
387-
Discontinuous (continuous = false) quantities are evaluated in all neighbouring cells of each node and then averaged. Continuous
388-
(continuous = true) quantities are only evaluated once at each node.
387+
Discontinuous (continuous = false) quantities are evaluated in all neighbouring cells (in the specified regions)
388+
of each node and then averaged. Continuous (continuous = true) quantities are only evaluated once at each node.
389389
"""
390390
function nodevalues_subset!(target::AbstractArray{T, 2},
391391
source::AbstractArray{T, 1},
@@ -1057,6 +1057,13 @@ function displace_mesh!(xgrid::ExtendableGrid, source::FEVectorBlock; magnify =
10571057
end
10581058

10591059

1060+
"""
1061+
````
1062+
function displace_mesh(xgrid::ExtendableGrid, source::FEVectorBlock; magnify = 1)
1063+
````
1064+
Returns a new grid by adding the displacement field in source (expects a vector-valued finite element)
1065+
to the coordinates of the provided xgrid times a magnify value.
1066+
"""
10601067
function displace_mesh(xgrid::ExtendableGrid, source::FEVectorBlock; kwargs...)
10611068
xgrid_displaced = deepcopy(xgrid)
10621069
displace_mesh!(xgrid_displaced, source; kwargs...)

0 commit comments

Comments
 (0)