Skip to content

Commit

Permalink
Fixed scaling of 2D element with unitz
Browse files Browse the repository at this point in the history
  • Loading branch information
JoranZwet committed Dec 6, 2023
1 parent e3cfb18 commit 56df985
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pymoto/modules/assembly.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ def _prepare(self, domain: DomainDefinition, *args,

# Numerical integration
siz = domain.element_size
w = np.prod(siz[:domain.dim]/2)
w = np.prod(siz/2)
for n in domain.node_numbering:
pos = n*(siz/2)/np.sqrt(3) # Sampling point
dN_dx = domain.eval_shape_fun_der(pos)
Expand Down

0 comments on commit 56df985

Please sign in to comment.