Back to index

salome-med  6.5.0
Functions | Variables
med_opfield_test Namespace Reference

Functions

def add_one
def print_ord

Variables

list filePath = os.environ["MED_ROOT_DIR"]
tuple medFile = os.path.join( filePath, "pointe.med" )
tuple md = MEDFILEBROWSER(medFile)
tuple nbMeshes = md.getNumberOfMeshes()
tuple nbFields = md.getNumberOfFields()
tuple mesh_name = md.getMeshName(i)
tuple field_name = md.getFieldName(i)
tuple mesh = MESH(MED_DRIVER,md.getFileName(),mesh_name)
tuple spaceDim = mesh.getSpaceDimension()
tuple meshDim = mesh.getMeshDimension()
tuple nbNodes = mesh.getNumberOfNodes()
tuple dtits = md.getFieldIteration(field_name)
tuple nbOfIt = len(dtits)
tuple dt = dtitfield.getdt()
tuple it = dtitfield.getit()
tuple type = md.getFieldType(field_name)
tuple fieldint = FIELDINT(MED_DRIVER,md.getFileName(),field_name,dt,it,mesh)
tuple name = fieldint.getName()
tuple desc = fieldint.getDescription()
tuple nbOfComp = fieldint.getNumberOfComponents()
tuple iterationNb = fieldint.getIterationNumber()
tuple orderNb = fieldint.getOrderNumber()
tuple time = fieldint.getTime()
tuple fieldint_vol = fieldint.getSupport()
int kp1 = 1
tuple compName = fieldint.getComponentName(kp1)
tuple compDesc = fieldint.getComponentDescription(kp1)
tuple compUnit = fieldint.getMEDComponentUnit(kp1)
tuple support = fieldint.getSupport()
tuple nbOf = support.getNumberOfElements(MED_ALL_ELEMENTS)
tuple valueI = fieldint.getRow(k+1)
tuple fieldint2 = FIELDINT(fieldint)
 fieldintadd = fieldint+fieldint2
 fieldintsub = fieldint-fieldint2
 fieldintmul = fieldint*fieldint2
 fieldintdiv = fieldint/fieldint2
tuple fielddouble = FIELDDOUBLE(MED_DRIVER,md.getFileName(),field_name,dt,it,mesh)
tuple fielddouble_vol = fielddouble.getSupport()
tuple fielddouble2 = FIELDDOUBLE(fielddouble)
 fielddoubleadd = fielddouble+fielddouble2
 fielddoublesub = fielddouble-fielddouble2
 fielddoublemul = fielddouble*fielddouble2
 fielddoublediv = fielddouble/fielddouble2
 fielddoubleasso = fielddouble+fielddouble2*fielddouble2
tuple fielddoubleSP = createFieldDoubleScalarProduct(fielddouble, fielddouble2)
 fieldintasso = fieldint+fieldint*fieldint
tuple fieldintSP = createFieldIntScalarProduct(fieldint, fieldint2)
string myname = "toto"

Function Documentation

Definition at line 39 of file med_opfield_test.py.

00039 
00040 def add_one(i):
00041     return i+1

Definition at line 42 of file med_opfield_test.py.

00042 
00043 def print_ord(i):
00044     if i == 0:
00045         return 'first'
00046     elif i == 1:
00047         return 'second'
00048     elif i == 2:
00049         return 'third'
00050     else:
00051         return `i`+'th'


Variable Documentation

tuple med_opfield_test.compDesc = fieldint.getComponentDescription(kp1)

Definition at line 121 of file med_opfield_test.py.

tuple med_opfield_test.compName = fieldint.getComponentName(kp1)

Definition at line 120 of file med_opfield_test.py.

tuple med_opfield_test.compUnit = fieldint.getMEDComponentUnit(kp1)

Definition at line 122 of file med_opfield_test.py.

tuple med_opfield_test.desc = fieldint.getDescription()

Definition at line 99 of file med_opfield_test.py.

tuple med_opfield_test.dt = dtitfield.getdt()

Definition at line 92 of file med_opfield_test.py.

tuple med_opfield_test.dtits = md.getFieldIteration(field_name)

Definition at line 87 of file med_opfield_test.py.

tuple med_opfield_test.field_name = md.getFieldName(i)

Definition at line 69 of file med_opfield_test.py.

tuple med_opfield_test.fielddouble = FIELDDOUBLE(MED_DRIVER,md.getFileName(),field_name,dt,it,mesh)

Definition at line 268 of file med_opfield_test.py.

Definition at line 312 of file med_opfield_test.py.

tuple med_opfield_test.fielddouble_vol = fielddouble.getSupport()

Definition at line 285 of file med_opfield_test.py.

Definition at line 314 of file med_opfield_test.py.

Definition at line 455 of file med_opfield_test.py.

Definition at line 408 of file med_opfield_test.py.

Definition at line 376 of file med_opfield_test.py.

tuple med_opfield_test.fielddoubleSP = createFieldDoubleScalarProduct(fielddouble, fielddouble2)

Definition at line 456 of file med_opfield_test.py.

Definition at line 345 of file med_opfield_test.py.

tuple med_opfield_test.fieldint = FIELDINT(MED_DRIVER,md.getFileName(),field_name,dt,it,mesh)

Definition at line 97 of file med_opfield_test.py.

Definition at line 138 of file med_opfield_test.py.

tuple med_opfield_test.fieldint_vol = fieldint.getSupport()

Definition at line 113 of file med_opfield_test.py.

Definition at line 140 of file med_opfield_test.py.

Definition at line 499 of file med_opfield_test.py.

Definition at line 234 of file med_opfield_test.py.

Definition at line 202 of file med_opfield_test.py.

tuple med_opfield_test.fieldintSP = createFieldIntScalarProduct(fieldint, fieldint2)

Definition at line 500 of file med_opfield_test.py.

Definition at line 171 of file med_opfield_test.py.

tuple med_opfield_test.filePath = os.environ["MED_ROOT_DIR"]

Definition at line 34 of file med_opfield_test.py.

tuple med_opfield_test.it = dtitfield.getit()

Definition at line 93 of file med_opfield_test.py.

tuple med_opfield_test.iterationNb = fieldint.getIterationNumber()

Definition at line 103 of file med_opfield_test.py.

Definition at line 119 of file med_opfield_test.py.

Definition at line 52 of file med_opfield_test.py.

tuple med_opfield_test.medFile = os.path.join( filePath, "pointe.med" )

Definition at line 37 of file med_opfield_test.py.

tuple med_opfield_test.mesh = MESH(MED_DRIVER,md.getFileName(),mesh_name)

Definition at line 75 of file med_opfield_test.py.

Definition at line 62 of file med_opfield_test.py.

tuple med_opfield_test.meshDim = mesh.getMeshDimension()

Definition at line 77 of file med_opfield_test.py.

string med_opfield_test.myname = "toto"

Definition at line 528 of file med_opfield_test.py.

tuple med_opfield_test.name = fieldint.getName()

Definition at line 98 of file med_opfield_test.py.

tuple med_opfield_test.nbFields = md.getNumberOfFields()

Definition at line 54 of file med_opfield_test.py.

tuple med_opfield_test.nbMeshes = md.getNumberOfMeshes()

Definition at line 53 of file med_opfield_test.py.

tuple med_opfield_test.nbNodes = mesh.getNumberOfNodes()

Definition at line 78 of file med_opfield_test.py.

tuple med_opfield_test.nbOf = support.getNumberOfElements(MED_ALL_ELEMENTS)

Definition at line 133 of file med_opfield_test.py.

tuple med_opfield_test.nbOfComp = fieldint.getNumberOfComponents()

Definition at line 100 of file med_opfield_test.py.

Definition at line 88 of file med_opfield_test.py.

tuple med_opfield_test.orderNb = fieldint.getOrderNumber()

Definition at line 104 of file med_opfield_test.py.

tuple med_opfield_test.spaceDim = mesh.getSpaceDimension()

Definition at line 76 of file med_opfield_test.py.

tuple med_opfield_test.support = fieldint.getSupport()

Definition at line 132 of file med_opfield_test.py.

tuple med_opfield_test.time = fieldint.getTime()

Definition at line 105 of file med_opfield_test.py.

tuple med_opfield_test.type = md.getFieldType(field_name)

Definition at line 94 of file med_opfield_test.py.

tuple med_opfield_test.valueI = fieldint.getRow(k+1)

Definition at line 136 of file med_opfield_test.py.