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

Encompassing DeRham element #892

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions cpp/basix/e-DeRham.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
// Copyright (c) 2024 Johannes M. Vogels
// FEniCS Project
// SPDX-License-Identifier: MIT

#pragma once

#include "cell.h"
#include "element-families.h"
#include "finite-element.h"
#include <concepts>

namespace basix::element
{
/// Create a finite element on cell with given degree
/// @param[in] celltype The cell type
/// @param[in] degree The degree of the element
/// @param[in] form -1,0,1,2,3 : de Rahm complex form
/// @param[in] trimmed : P- instead of P based
/// @param[in] tensor : instead of serendipity
/// @param[in] tiniesttensor : instead of full
/// @param[in] rotated2D : Curl Div instead of Grad Curl complex for 2D
/// @return A finite element
template <std::floating_point T>
FiniteElement<T> create_DeRham_element(cell::type celltype,
int degree,
int form,
bool trimmed,
bool tensor,
bool tiniesttensor,
bool rotated2D
);