-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1072 from Antoinemarteau/moment-based-reffes
Moment based reffes: refactoring and extension of Gridap.Polynomials
- Loading branch information
Showing
78 changed files
with
3,894 additions
and
3,719 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
[deps] | ||
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4" | ||
Gridap = "56d4f2e9-7ea1-5844-9cf6-b9c51ca7ce8e" | ||
Kroki = "b3565e16-c1f2-4fe9-b4ab-221c88942068" | ||
|
||
[compat] | ||
Documenter = "1.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
using Kroki | ||
|
||
macro export_kroki(name, str) | ||
return quote | ||
write("src/assets/"*string($name)*".svg", render($str, "svg")) | ||
end | ||
end | ||
|
||
# Plantuml uml diagrams syntax: https://plantuml.com/class-diagram#49b7759afaffc066 | ||
|
||
@export_kroki :poly_1 plantuml""" | ||
@startuml | ||
skinparam groupInheritance 2 | ||
hide empty members | ||
together { | ||
abstract Field | ||
abstract Polynomial { | ||
+isHierarchical | ||
} | ||
} | ||
Field <|-left- Polynomial | ||
together { | ||
struct Monomial | ||
struct Legendre | ||
struct Chebyshev | ||
struct ModalC0 | ||
struct Bernstein | ||
} | ||
Polynomial <|-- Monomial | ||
Polynomial <|-- Legendre | ||
Polynomial <|-- Chebyshev | ||
Polynomial <|-- ModalC0 | ||
Polynomial <|-- Bernstein | ||
@enduml | ||
""" | ||
|
||
@export_kroki :poly_2 plantuml""" | ||
@startuml | ||
skinparam groupInheritance 2 | ||
hide empty members | ||
together { | ||
abstract "AbstractArray{<:Polynomial}" as a1 | ||
abstract PolynomialBasis { | ||
+get_order | ||
+return_type | ||
} | ||
} | ||
a1 <|-left- PolynomialBasis | ||
together { | ||
struct UniformPolyBasis { | ||
+get_exponents | ||
+get_orders | ||
} | ||
struct CompWiseTensorPolyBasis | ||
struct RaviartThomasPolyBasis | ||
struct NedelecPolyBasisOnSimplex | ||
struct ModalC0Basis { | ||
+get_orders | ||
} | ||
} | ||
PolynomialBasis <|-- UniformPolyBasis | ||
PolynomialBasis <|-- CompWiseTensorPolyBasis | ||
PolynomialBasis <|-- RaviartThomasPolyBasis | ||
PolynomialBasis <|-- NedelecPolyBasisOnSimplex | ||
PolynomialBasis <|-- ModalC0Basis | ||
object "(<:Polynomial)Basis" as m1 | ||
object "QGrad[<:Polynomial]Basis\nQCurlGrad[<:Polynomial]Basis" as m2 | ||
object "PCurlGrad[<:Polynomial]Basis" as m4 | ||
object "PGradMonomialBasis" as m5 | ||
UniformPolyBasis <-down- m1 | ||
CompWiseTensorPolyBasis <-down- m2 | ||
RaviartThomasPolyBasis <-down- m4 | ||
NedelecPolyBasisOnSimplex <-down- m5 | ||
@enduml | ||
""" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.