Esempio n. 1
0
    def __init__(self, aneurysm, near_vessel, *args, **kwargs):
        Field.__init__(self, *args, **kwargs)
        
        self.aneurysm = aneurysm
        self.near_vessel = near_vessel

        self.Vnv = assemble(Constant(1)*dx(near_vessel[1], domain=near_vessel[0].mesh(), subdomain_data=near_vessel[0]))
        self.Va = assemble(Constant(1)*dx(aneurysm[1], domain=aneurysm[0].mesh(), subdomain_data=aneurysm[0]))
Esempio n. 2
0
            def __init__(self, valuename, nu, subdomain, *args, **kwargs):
                Field.__init__(self, *args, **kwargs)
                self.valuename = valuename
                mf = subdomain[0]
                idx = subdomain[1]
                self.dx = dx(idx, domain=mf.mesh(), subdomain_data=mf)
                self.vol = assemble(Constant(1) * self.dx)

                self.nu = nu
Esempio n. 3
0
            def __init__(self, valuename, nu, subdomain,*args, **kwargs):
                Field.__init__(self, *args, **kwargs)
                self.valuename = valuename
                mf = subdomain[0]
                idx = subdomain[1]
                self.dx = dx(idx, domain=mf.mesh(), subdomain_data=mf)
                self.vol = assemble(Constant(1)*self.dx)

                self.nu = nu
Esempio n. 4
0
    def __init__(self, aneurysm, near_vessel, *args, **kwargs):
        Field.__init__(self, *args, **kwargs)

        self.aneurysm = aneurysm
        self.near_vessel = near_vessel

        self.Vnv = assemble(
            Constant(1) * dx(near_vessel[1],
                             domain=near_vessel[0].mesh(),
                             subdomain_data=near_vessel[0]))
        self.Va = assemble(
            Constant(1) * dx(aneurysm[1],
                             domain=aneurysm[0].mesh(),
                             subdomain_data=aneurysm[0]))
Esempio n. 5
0
 def __init__(self, aneurysm_domain, *args, **kwargs):
     Field.__init__(self, *args, **kwargs)
     self.aneurysm_domain = aneurysm_domain
Esempio n. 6
0
 def __init__(self, aneurysm, near_vessel, *args, **kwargs):
     Field.__init__(self, *args, **kwargs)
     self.aneurysm = aneurysm
     self.near_vessel = near_vessel
Esempio n. 7
0
 def __init__(self, params=None):
     Field.__init__(self, params=params)
     self.touched = 0
     self.finalized = False
Esempio n. 8
0
 def __init__(self, V, params=None):
     Field.__init__(self, params)
     self.f = Function(V)
Esempio n. 9
0
 def __init__(self, Q, params=None, **args):
     Field.__init__(self, params, **args)
     self.f = Function(Q)
Esempio n. 10
0
 def __init__(self, upstream_planes, downstream_planes, rho, *args,
              **kwargs):
     Field.__init__(self, *args, **kwargs)
     self.upstream_planes = upstream_planes
     self.downstream_planes = downstream_planes
     self.rho = rho
Esempio n. 11
0
 def __init__(self, upstream_planes, downstream_planes, rho, *args, **kwargs):
     Field.__init__(self, *args, **kwargs)
     self.upstream_planes = upstream_planes
     self.downstream_planes = downstream_planes
     self.rho = rho
Esempio n. 12
0
 def __init__(self, neck, pa_planes, *args, **kwargs):
     Field.__init__(self, *args, **kwargs)
     self.neck, self.necknormal = neck[0], neck[1]
     self.pa_planes = pa_planes
Esempio n. 13
0
 def __init__(self, neck, pa_planes, *args, **kwargs):
     Field.__init__(self, *args, **kwargs)
     self.neck, self.necknormal = neck[0], neck[1]
     self.pa_planes = pa_planes
Esempio n. 14
0
 def __init__(self, aneurysm_domain, parent_artery, *args, **kwargs):
     Field.__init__(self, *args, **kwargs)
     self.aneurysm_domain = aneurysm_domain
     self.parent_artery = parent_artery
     assert self.params.method in ["Xiang", "Cebral"]