23 |
|
|
24 |
""" |
""" |
25 |
|
|
26 |
def __init__(self,debug=False): |
def __init__(self,**kwargs): |
27 |
""" |
""" |
28 |
set up model |
set up model |
29 |
""" |
""" |
30 |
Model.__init__(self,debug=debug) |
Model.__init__(self,**kwargs) |
31 |
self.declareParameter(domain=None, \ |
self.declareParameter(domain=None, \ |
32 |
velocity=0., \ |
velocity=0., \ |
33 |
pressure=0., \ |
pressure=0., \ |
34 |
viscosity=1., \ |
viscosity=1., \ |
35 |
internal_force=0., \ |
internal_force=0., \ |
36 |
location_prescribed_velocity=Data(), \ |
location_prescribed_velocity=None, \ |
37 |
prescribed_velocity=Data(), \ |
prescribed_velocity=None, \ |
38 |
rel_tol=1.e-3,abs_tol=0.,max_iter=10,relaxation=0.0001) |
rel_tol=1.e-3,abs_tol=0.,max_iter=10,relaxation=0.0001) |
39 |
self.__iter=0 |
self.__iter=0 |
40 |
|
|
47 |
self.__dt_old=None |
self.__dt_old=None |
48 |
self.__pde=LameEquation(self.domain) |
self.__pde=LameEquation(self.domain) |
49 |
self.__pde.setSolverMethod(LameEquation.DIRECT) |
self.__pde.setSolverMethod(LameEquation.DIRECT) |
50 |
|
if self.location_prescribed_velocity == None: self.location_prescribed_velocit=Data() |
51 |
|
if self.prescribed_velocity == None: self.prescribed_velocity=Data() |
52 |
|
|
53 |
def stress(self): |
def stress(self): |
54 |
""" |
""" |