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

Add modal c0 machinery #777

Merged
merged 9 commits into from
May 4, 2022
Merged
6 changes: 6 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## Unreleased

### Added
- Implemented (generalised) ModalC0 Polynomial bases and reference FEs. Since PR [#777](https://github.com/gridap/Gridap.jl/pull/777)
- Serendipity reference FEs for any dimension and order. Since PR [#777](https://github.com/gridap/Gridap.jl/pull/777)

## [0.17.12] - 2022-03-24

### Fixed
Expand Down
1 change: 1 addition & 0 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ LineSearches = "d3d80556-e9d4-5f37-9878-2ab0fcc64255"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
NLsolve = "2774e3e8-f4cf-5e23-947b-6d7e65073b56"
NearestNeighbors = "b8a86587-4115-5ab1-83bc-aa920d37bbce"
PolynomialBases = "c74db56a-226d-5e98-8bb0-a6049094aeea"
QuadGK = "1fd47b50-473d-5c70-9696-f719f8f3bcdc"
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
Expand Down
2 changes: 2 additions & 0 deletions src/Exports.jl
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,11 @@ using Gridap.TensorValues: ⊗; export ⊗
@publish ReferenceFEs Lagrangian
@publish ReferenceFEs RaviartThomas
@publish ReferenceFEs Nedelec
@publish ReferenceFEs ModalC0
@publish ReferenceFEs lagrangian
@publish ReferenceFEs raviart_thomas
@publish ReferenceFEs nedelec
@publish ReferenceFEs modalC0

@publish Geometry get_triangulation
@publish Geometry num_cells
Expand Down
6 changes: 6 additions & 0 deletions src/Geometry/DiscreteModels.jl
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,12 @@ function ReferenceFE(model::DiscreteModel,args...;kwargs...)
cell_to_reffe
end

function ReferenceFE(model::DiscreteModel,basis::ModalC0,args...;kwargs...)
ctype_to_polytope = get_polytopes(model)
@assert length(ctype_to_polytope) == 1 "Only one polytope expected"
compute_cell_to_modalC0_reffe(ctype_to_polytope[1],num_cells(model),args...;kwargs...)
end

# IO

function to_dict(model::DiscreteModel)
Expand Down
Loading