Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
b07aa6f
add barycentric polynomials
indiamai Mar 16, 2026
a485a22
immerse polynomial vectors
indiamai Mar 17, 2026
c4d98f2
post rotation of vector valued polynomials
indiamai Mar 19, 2026
e760a98
investigating the rotation of vector valued polynomials
indiamai Mar 20, 2026
c6925ad
creating new tests for vector valued polynomials on facets
indiamai Mar 25, 2026
c625e7d
changes to tests
indiamai Mar 26, 2026
f0ec80c
add vanishing dof test for bdm2|
indiamai Mar 27, 2026
dc29e10
n2curl 2 working
indiamai Mar 27, 2026
f426ffb
brain wave about the groups required
indiamai Mar 31, 2026
2b77feb
test fixups
indiamai Mar 31, 2026
57a5942
clean up tests
indiamai Apr 1, 2026
2ff73bf
lint
indiamai Apr 1, 2026
d6ed8aa
CG and DG elements on triangle of any order
indiamai Apr 1, 2026
8c18ffa
Add general construction for cg/dg n on triangles, start nd
indiamai Apr 1, 2026
6a6631b
General order nedelec on triangles
indiamai Apr 2, 2026
d12d96a
General order nedelec on triangles
indiamai Apr 2, 2026
f80be51
refactor to prepare for second column
indiamai Apr 2, 2026
55e9225
Starting to add autogen of second column on triangles
indiamai Apr 2, 2026
b0dd627
fixes to vertex order choices
indiamai Apr 7, 2026
6d0170d
bdm and nedelec2 on triangles general order
indiamai Apr 7, 2026
6e35f68
fix nd22, refactor, prep for 3d
indiamai Apr 7, 2026
a04fbb0
small update to test
indiamai Apr 8, 2026
7518e0f
generation of cg1-4 on tets
indiamai Apr 8, 2026
db33418
Merge branch 'main' into indiamai/periodic_table
indiamai Apr 8, 2026
39662c0
fix merge error
indiamai Apr 9, 2026
e3f0e9d
move cg4 test to other test type, rename function, trial quintic test
indiamai Apr 9, 2026
c856c20
lint
indiamai Apr 9, 2026
d357c3d
work on cg5 and 6 on tets
indiamai Apr 10, 2026
203d426
starting on vector valued general construction on tets
indiamai Apr 10, 2026
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
2 changes: 1 addition & 1 deletion fuse/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from fuse.cells import Point, Edge, polygon, make_tetrahedron, constructCellComplex
from fuse.groups import S1, S2, S3, D4, Z3, Z4, C3, C4, S4, A4, diff_C3, tet_edges, tet_faces, sq_edges, GroupRepresentation, PermutationSetRepresentation, get_cyc_group, get_sym_group
from fuse.groups import S1, S2, S3, D4, Z3, Z4, C3, C4, S4, A4, diff_C3, new_C3, tet_edges, tet_faces, sq_edges, GroupRepresentation, PermutationSetRepresentation, get_cyc_group, get_sym_group
from fuse.dof import DeltaPairing, DOF, L2Pairing, FuseFunction, PointKernel, VectorKernel, BarycentricPolynomialKernel, PolynomialKernel, ComponentKernel
from fuse.triples import ElementTriple, DOFGenerator, immerse
from fuse.traces import TrH1, TrGrad, TrHess, TrHCurl, TrHDiv
Expand Down
6 changes: 3 additions & 3 deletions fuse/dof.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,14 +210,14 @@ def _from_dict(obj_dict):
class BarycentricPolynomialKernel(BaseKernel):

def __init__(self, fn, g=None, symbols=[]):
if hasattr(fn, "__iter__"):
if hasattr(fn, "__iter__") or isinstance(fn, sp.Matrix):
# if len(symbols) != 0 and any(not sp.sympify(fn[i]).as_poly() for i in range(len(fn))):
# raise ValueError("Function components must be able to be interpreted as a sympy polynomial")
self.fn = [sp.Poly(fn[i], symbols) for i in range(len(fn))]
self.shape = len(fn)
else:
if len(symbols) != 0 and not sp.sympify(fn).as_poly():
raise ValueError("Function must be able to be interpreted as a sympy polynomial")
# if len(symbols) != 0 and not sp.sympify(fn).as_poly():
# raise ValueError("Function must be able to be interpreted as a sympy polynomial")
# self.fn = sp.sympify(fn)
self.fn = sp.Poly(fn, symbols)
self.shape = 0
Expand Down
Loading
Loading