/[escript]/trunk/escriptcore/py_src/rheologies.py
ViewVC logotype

Diff of /trunk/escriptcore/py_src/rheologies.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 5023 by jfenwick, Tue Jun 10 06:37:50 2014 UTC revision 5024 by jfenwick, Tue Jun 10 08:46:07 2014 UTC
# Line 375  class Rheology(object): Line 375  class Rheology(object):
375            :type restoration_factor: scalar values/field            :type restoration_factor: scalar values/field
376            :note: Only changing parameters need to be specified.            :note: Only changing parameters need to be specified.
377            """            """
378            if F != None: self.__F=F            if F is not None: self.__F=F
379            if f != None: self.__f=f            if f is not None: self.__f=f
380            if fixed_v_mask != None: self.__fixed_v_mask=fixed_v_mask            if fixed_v_mask is not None: self.__fixed_v_mask=fixed_v_mask
381            if v_boundary != None: self.__v_boundary=v_boundary            if v_boundary is not None: self.__v_boundary=v_boundary
382            if restoration_factor!=None: self.__restoration_factor=restoration_factor            if restoration_factor is not None: self.__restoration_factor=restoration_factor
383                        
384        def getForce(self):        def getForce(self):
385            """            """
# Line 694  class IncompressibleIsotropicFlowCartesi Line 694  class IncompressibleIsotropicFlowCartesi
694            :param verbose: prints some infos in the incompressible solver            :param verbose: prints some infos in the incompressible solver
695            """            """
696            mu=self.getElasticShearModulus()            mu=self.getElasticShearModulus()
697            if mu != None:            if mu is not None:
698               if not dt > 0.:               if not dt > 0.:
699                   raise ValueError("dt must be positive.")                   raise ValueError("dt must be positive.")
700            else:            else:

Legend:
Removed from v.5023  
changed lines
  Added in v.5024

  ViewVC Help
Powered by ViewVC 1.1.26