Ignore:
Timestamp:
09/17/13 18:44:22 (12 years ago)
Author:
cborstad
Message:

CHG: working toward damage class implementation. As long as md.damage.isdamage flag is set to zero, all NR should ignore damage and run okay

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/classes/model/model.py

    r15987 r16162  
    1010from basalforcings import basalforcings
    1111from matice import matice
     12from damage import damage
    1213from friction import friction
    1314from flowequation import flowequation
     
    5859                self.basalforcings    = basalforcings()
    5960                self.materials        = matice()
     61                self.damage           = damage()
    6062                self.friction         = friction()
    6163                self.flowequation     = flowequation()
     
    99101                        'basalforcings',\
    100102                        'materials',\
     103                        'damage',\
    101104                        'friction',\
    102105                        'flowequation',\
     
    136139                string="%s\n%s" % (string,"%19s: %-22s -- %s" % ("basalforcings","[%s,%s]" % ("1x1",obj.basalforcings.__class__.__name__),"bed forcings"))
    137140                string="%s\n%s" % (string,"%19s: %-22s -- %s" % ("materials","[%s,%s]" % ("1x1",obj.materials.__class__.__name__),"material properties"))
     141                string="%s\n%s" % (string,"%19s: %-22s -- %s" % ("damage","[%s,%s]" % ("1x1",obj.damage.__class__.__name__),"damage propagation laws"))
    138142                string="%s\n%s" % (string,"%19s: %-22s -- %s" % ("friction","[%s,%s]" % ("1x1",obj.friction.__class__.__name__),"basal friction/drag properties"))
    139143                string="%s\n%s" % (string,"%19s: %-22s -- %s" % ("flowequation","[%s,%s]" % ("1x1",obj.flowequation.__class__.__name__),"flow equations"))
     
    627631                md.materials.rheology_n=project3d(md,'vector',md.materials.rheology_n,'type','element')
    628632
     633                #damage
     634                md.damage.D=project3d(md,'vector',md.damage.D,'type','node')
    629635                #parameters
    630636                md.geometry.surface=project3d(md,'vector',md.geometry.surface,'type','node')
Note: See TracChangeset for help on using the changeset viewer.