Esempio n. 1
0
 def generateLoads(self):
   '''Append the loads for each load state into corresponding load patterns and 
   return a dictionary with identifiers and the geometric entities (lines and surfaces) generated. #????
   '''
   if(hasattr(self,'loadStates')):
     self.lPatterns= self.loadStates.generateLoadPatterns(self.getPreprocessor(),self.grid.dicQuadSurf)
     if(hasattr(self,'conjSup')): 
       for cs in self.conjSup: #???
         nbrset='set'+cs
         self.lPatterns[nbrset]= grid.setEntLstSurf(self.getPreprocessor(),self.conjSup[cs].lstSup,nbrset)
   return self.grid.dicQuadSurf #???
Esempio n. 2
0
  def generateMesh(self):
    self.grid.generatePoints() #Key points generation.
    self.materialData.setup(self.getPreprocessor()) #Material definition.
    nodes= self.getPreprocessor().getNodeHandler
    modelSpace= predefined_spaces.StructuralMechanics3D(nodes)
    nodes.newSeedNode()
#    self.dicQuadSurf= dict() #Surfaces dictionary.
    if(hasattr(self,'conjSup')):
      self.conjSup.generateMesh(self.getPreprocessor(),self.grid.dicQuadSurf)
#    self.dicLin= dict() #Lines dictionary.
    if(hasattr(self,'conjLin')):
      self.conjLin.generateMesh(self.getPreprocessor(),self.grid.dicQuadSurf)
    if(hasattr(self,'constrainedRanges')):
      self.constrainedRanges.generateContraintsInLines()
    if(hasattr(self,'elasticFoundationRanges')):
      self.elasticFoundationRanges.generateSprings(self.getPreprocessor())
    if(hasattr(self,'conjSup')):
      for setName in self.conjSup: #???
        #vars()[setName]= 
        grid.setEntLstSurf(self.getPreprocessor(),self.conjSup[setName].lstSup,setName)