Skip to content
Snippets Groups Projects
Commit 5d1bcaca authored by Nils Kohl's avatar Nils Kohl :full_moon_with_face:
Browse files

Adding epsilon, gradient and divergence with freeslip boundary integrals to gen all ops.

parent 14fab85c
1 merge request!19Weak Nitsche freeslip integrands, improved and extended external parameter handling
Pipeline #67860 failed with stages
in 2 minutes and 52 seconds
...@@ -51,7 +51,12 @@ from hog.forms import ( ...@@ -51,7 +51,12 @@ from hog.forms import (
supg_diffusion, supg_diffusion,
grad_rho_by_rho_dot_u, grad_rho_by_rho_dot_u,
) )
from hog.forms_boundary import mass_boundary from hog.forms_boundary import (
mass_boundary,
freeslip_gradient_weak_boundary,
freeslip_divergence_weak_boundary,
freeslip_momentum_weak_boundary,
)
from hog.forms_vectorial import curl_curl, curl_curl_plus_mass, mass_n1e1 from hog.forms_vectorial import curl_curl, curl_curl_plus_mass, mass_n1e1
from hog.function_space import ( from hog.function_space import (
FunctionSpace, FunctionSpace,
...@@ -646,6 +651,55 @@ def all_operators( ...@@ -646,6 +651,55 @@ def all_operators(
) )
) )
p2vec_freeslip_momentum_weak_boundary = partial(
freeslip_momentum_weak_boundary, function_space_mu=P2
)
ops.append(
OperatorInfo(
mapping=f"P2Vector",
name=f"EpsilonFreeslip",
trial_space=P2Vector,
test_space=P2Vector,
form=p2vec_epsilon,
form_boundary=p2vec_freeslip_momentum_weak_boundary,
type_descriptor=type_descriptor,
geometries=list(geometries),
opts=opts,
blending=blending,
)
)
ops.append(
OperatorInfo(
mapping=f"P2VectorToP1",
name=f"DivergenceFreeslip",
trial_space=P2Vector,
test_space=P1,
form=divergence,
form_boundary=freeslip_divergence_weak_boundary,
type_descriptor=type_descriptor,
geometries=list(geometries),
opts=opts,
blending=blending,
)
)
ops.append(
OperatorInfo(
mapping=f"P1ToP2Vector",
name=f"GradientFreeslip",
trial_space=P1,
test_space=P2Vector,
form=gradient,
form_boundary=freeslip_gradient_weak_boundary,
type_descriptor=type_descriptor,
geometries=list(geometries),
opts=opts,
blending=blending,
)
)
p2vec_grad_rho = partial( p2vec_grad_rho = partial(
grad_rho_by_rho_dot_u, grad_rho_by_rho_dot_u,
density_function_space=P2, density_function_space=P2,
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment