Skip to content
Snippets Groups Projects
Commit df5a9278 authored by Chloé Mimeau's avatar Chloé Mimeau
Browse files

update FlowSphere example

parent ce8076bf
No related branches found
No related tags found
No related merge requests found
......@@ -66,7 +66,7 @@ d3d = Discretization([Nx, Ny, Nz])
# ====== Sphere inside the domain ======
RADIUS = 0.5
pos = [0., 0., 0.]
from hysop.domain.subsets.sphere import Sphere, HemiSphere
from hysop.domain.subsets import Sphere, HemiSphere
#sphere = Sphere(origin=pos, radius=RADIUS, parent=box)
sphere = HemiSphere(origin=pos, radius=RADIUS, parent=box)
......@@ -168,7 +168,7 @@ op['vort_absorption'] = AbsorptionBC(velo, vorti, discretization=topofft,
op['vort_absorption'].discretize()
# ===== Penalization of the vorticity on a sphere inside the domain =====
from hysop.operator.penalize_vorticity import PenalizeVorticity
from hysop.operator.penalization import PenalizeVorticity
op['penalVort'] = PenalizeVorticity(velocity=velo, vorticity=vorti,
discretization=topo_with_ghosts,
obstacles=[sphere], coeff=1e8,
......@@ -201,7 +201,7 @@ io_ener = IOParams('energy_enstrophy')
monitors['energy'] = EnergyEnstrophy(velo, vorti, discretization=topofft,
io_params=io_ener, is_normalized=False)
from hysop.domain.subsets.control_box import ControlBox
from hysop.domain.control_box import ControlBox
from hysop.operator.drag_and_lift import MomentumForces, NocaForces
ref_step = topo_with_ghosts.mesh.space_step
cbpos = npw.zeros(dim)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment