Commit 9d48ef6e authored by Jonathan Lambrechts's avatar Jonathan Lambrechts

particlefluid : import only scontact2 or scontact3

parent 34e312c8
from . import dofManager
import scontact2
import scontact3
import numpy as np
class ParticleFluid :
......@@ -23,8 +21,10 @@ class ParticleFluid :
self.mass = mass
els = self.jac.x
if self.jac.dim == 2 :
import scontact2
self.eid, self.uvw = scontact2.particleToMesh(position, els)
else :
import scontact3
self.eid, self.uvw = scontact3.particleToMesh(position, els)
self.psi = self.jac.dofManager.get_field_basis(0).f(self.uvw)
dof = self.jac.dofManager
......
Markdown is supported
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