Skip to content
Snippets Groups Projects
Commit de092a3a authored by David's avatar David
Browse files

raise gravity term interpolation degree by one

parent 68425d8e
Branches
No related tags found
No related merge requests found
......@@ -1165,12 +1165,14 @@ class DomainPatch(df.SubDomain):
for phase in has_phases:
rho = df.Constant(self.densities[phase])
# V = self.pressure[phase]
# element = V.ufl_element()
self.gravity_term.update(
{phase: df.Expression('g*rho*x[1]',
domain=self.mesh, #
degree=self.interpolation_degree,
g=g,
rho=rho
degree=self.interpolation_degree+1,
g=self.gravity_acceleration,
rho=self.densities[phase]
)}
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment