Back to index

salome-med  6.5.0
Public Member Functions | Public Attributes
Compo1.Compo1 Class Reference

List of all members.

Public Member Functions

def __init__
def __del__
def Initialise
def Test
def Calcul1
def Calcul2

Public Attributes

 mesh
 support
 md
 medFile

Detailed Description

Definition at line 27 of file Compo1.py.


Constructor & Destructor Documentation

def Compo1.Compo1.__init__ (   self)

Definition at line 29 of file Compo1.py.

00029 
00030     def __init__(self):
00031         print "Initialisation Compo1"
00032         self.mesh = None
00033         self.support = None
00034         self.md = None
00035         self.medFile = None
        
def Compo1.Compo1.__del__ (   self)

Definition at line 36 of file Compo1.py.

00036 
00037     def __del__(self):
00038         print "destruction Compo1"


Member Function Documentation

def Compo1.Compo1.Calcul1 (   self)

Definition at line 57 of file Compo1.py.

00057 
00058     def Calcul1(self):
00059 
00060         self.Test();
00061         if (self.mesh is None):
00062             self.mesh = self.md.getMesh(self.md.getMeshName(0))
00063             self.mesh.read()
00064             
00065         return self.mesh

Here is the call graph for this function:

Here is the caller graph for this function:

def Compo1.Compo1.Calcul2 (   self)

Definition at line 66 of file Compo1.py.

00066 
00067     def Calcul2(self):
00068 
00069         self.Test();
00070         if (self.mesh is None):
00071             self.Calcul1()
00072             
00073         if (self.support is None):
00074             self.support = SUPPORT(self.mesh, "my_support", MED_CELL)
00075             self.support.setAll(1)
00076             
00077         return self.support

Here is the call graph for this function:

def Compo1.Compo1.Initialise (   self,
  medFile 
)

Definition at line 39 of file Compo1.py.

00039 
00040     def Initialise(self, medFile):
00041         if ((self.medFile != medFile) | (self.md is None)):
00042             print "fichier MED monte"
00043             self.md = MED()
00044             mdDriver = MED_MED_RDONLY_DRIVER(medFile, self.md)
00045             mdDriver.open()
00046             mdDriver.readFileStruct()
00047             mdDriver.close()
00048             self.mesh = None
00049             self.support = None
00050             self.medFile = medFile
00051         else:
00052             print "fichier MED deja monte"
            
def Compo1.Compo1.Test (   self)

Definition at line 53 of file Compo1.py.

00053 
00054     def Test(self):
00055         if (self.md is None):
00056             raise RuntimeError, 'call Initialise first'

Here is the caller graph for this function:


Member Data Documentation

Definition at line 33 of file Compo1.py.

Definition at line 34 of file Compo1.py.

Definition at line 31 of file Compo1.py.

Definition at line 32 of file Compo1.py.


The documentation for this class was generated from the following file: