Back to index

salome-med  6.5.0
Functions | Variables
med_field_anal Namespace Reference

Functions

def f_scal_dbl_2d
def f_scal_dbl_3d
def f_vect_dbl_2d
def f_vect_dbl_3d
def f_scal_int_2d
def f_scal_int_3d
def f_vect_int_2d
def f_vect_int_3d
def print_ord

Variables

list filePath = os.environ["MED_ROOT_DIR"]
tuple medFile = os.path.join(filePath, "carre_en_quad4_seg2.med")
tuple md = MEDFILEBROWSER(medFile)
tuple nbMeshes = md.getNumberOfMeshes()
tuple mesh_name = md.getMeshName(0)
tuple mesh = MESH(MED_DRIVER,medFile,mesh_name)
tuple spaceDim = mesh.getSpaceDimension()
tuple meshDim = mesh.getMeshDimension()
tuple nbNodes = mesh.getNumberOfNodes()
tuple supportOnCell = mesh.getSupportOnAll(MED_CELL)
tuple supportOnNode = mesh.getSupportOnAll(MED_NODE)
tuple supportOnConst = mesh.getSupportOnAll(MED_FACE)
tuple fieldDoubleScalOnCell
 print "" print supportOnCell
tuple fieldDoubleVectOnCell
tuple fieldIntScalOnCell
tuple fieldIntVectOnCell
tuple name = fieldDoubleScalOnCell.getName()
tuple desc = fieldDoubleScalOnCell.getDescription()
tuple nbOfComp = fieldDoubleScalOnCell.getNumberOfComponents()
tuple iterationNb = fieldDoubleScalOnCell.getIterationNumber()
tuple orderNb = fieldDoubleScalOnCell.getOrderNumber()
tuple time = fieldDoubleScalOnCell.getTime()
int kp1 = 1
tuple compName = fieldDoubleScalOnCell.getComponentName(kp1)
tuple compDesc = fieldDoubleScalOnCell.getComponentDescription(kp1)
tuple compUnit = fieldDoubleScalOnCell.getMEDComponentUnit(kp1)
tuple support = fieldDoubleScalOnCell.getSupport()
tuple nbOf = support.getNumberOfElements(MED_ALL_ELEMENTS)
tuple valueI = fieldDoubleScalOnCell.getRow(k+1)
tuple fieldDoubleScalOnNode
 print "" print supportOnNode
tuple fieldDoubleVectOnNode
tuple fieldIntScalOnNode
tuple fieldIntVectOnNode
tuple fieldDoubleScalOnConst
 print "" print supportOnConst
tuple fieldDoubleVectOnConst
tuple fieldIntScalOnConst
tuple fieldIntVectOnConst

Function Documentation

def med_field_anal.f_scal_dbl_2d (   x,
  y 
)

Definition at line 32 of file med_field_anal.py.

00032 
00033 def f_scal_dbl_2d(x, y):
00034     ret = []
00035     ret.append(x + y)
00036     return ret

def med_field_anal.f_scal_dbl_3d (   x,
  y,
  z 
)

Definition at line 37 of file med_field_anal.py.

00037 
00038 def f_scal_dbl_3d(x, y, z):
00039     ret = []
00040     ret.append(x + y + z)
00041     return ret

def med_field_anal.f_scal_int_2d (   x,
  y 
)

Definition at line 55 of file med_field_anal.py.

00055 
00056 def f_scal_int_2d(x, y):
00057     ret = []
00058     ret_tmp = x + y
00059     ret_tmp = int(ret_tmp)
00060     ret.append(ret_tmp)
00061     return ret

def med_field_anal.f_scal_int_3d (   x,
  y,
  z 
)

Definition at line 62 of file med_field_anal.py.

00062 
00063 def f_scal_int_3d(x, y, z):
00064     ret = []
00065     ret_tmp = x + y + z
00066     ret_tmp = int(ret_tmp)
00067     ret.append(ret_tmp)
00068     return ret

def med_field_anal.f_vect_dbl_2d (   x,
  y 
)

Definition at line 42 of file med_field_anal.py.

00042 
00043 def f_vect_dbl_2d(x, y):
00044     ret = []
00045     ret.append(x + y)
00046     ret.append(2.*(x + y))
00047     return ret

def med_field_anal.f_vect_dbl_3d (   x,
  y,
  z 
)

Definition at line 48 of file med_field_anal.py.

00048 
00049 def f_vect_dbl_3d(x, y, z):
00050     ret = []
00051     ret.append(x + y + z)
00052     ret.append(2.*(x + y + z))
00053     ret.append(3.*(x + y + z))
00054     return ret

def med_field_anal.f_vect_int_2d (   x,
  y 
)

Definition at line 69 of file med_field_anal.py.

00069 
00070 def f_vect_int_2d(x, y):
00071     ret = []
00072     ret.append(int(x + y))
00073     ret.append(int(2.*(x + y)))
00074     return ret

def med_field_anal.f_vect_int_3d (   x,
  y,
  z 
)

Definition at line 75 of file med_field_anal.py.

00075 
00076 def f_vect_int_3d(x, y, z):
00077     ret = []
00078     ret.append(int(x + y + z))
00079     ret.append(int(2.*(x + y + z)))
00080     ret.append(int(3.*(x + y + z)))
00081     return ret

Definition at line 94 of file med_field_anal.py.

00094 
00095 def print_ord(i):
00096     if i == 0:
00097         return 'first'
00098     elif i == 1:
00099         return 'second'
00100     elif i == 2:
00101         return 'third'
00102     else:
00103         return `i`+'th'


Variable Documentation

tuple med_field_anal.compDesc = fieldDoubleScalOnCell.getComponentDescription(kp1)

Definition at line 177 of file med_field_anal.py.

tuple med_field_anal.compName = fieldDoubleScalOnCell.getComponentName(kp1)

Definition at line 176 of file med_field_anal.py.

tuple med_field_anal.compUnit = fieldDoubleScalOnCell.getMEDComponentUnit(kp1)

Definition at line 178 of file med_field_anal.py.

tuple med_field_anal.desc = fieldDoubleScalOnCell.getDescription()

Definition at line 164 of file med_field_anal.py.

Initial value:
00001 createFieldDoubleFromAnalytic(supportOnCell,1,
00002                                                           f_scal_dbl_2d)

print "" print supportOnCell

Definition at line 131 of file med_field_anal.py.

Initial value:
00001 createFieldDoubleFromAnalytic(supportOnConst,1,
00002                                                            f_scal_dbl_2d)

print "" print supportOnConst

Definition at line 434 of file med_field_anal.py.

Initial value:
00001 createFieldDoubleFromAnalytic(supportOnNode,1,
00002                                                           f_scal_dbl_2d)

print "" print supportOnNode

Definition at line 282 of file med_field_anal.py.

Initial value:
00001 createFieldDoubleFromAnalytic(supportOnCell,
00002                                                           spaceDim,
00003                                                           f_vect_dbl_2d)

Definition at line 133 of file med_field_anal.py.

Initial value:
00001 createFieldDoubleFromAnalytic(supportOnConst,
00002                                                            spaceDim,
00003                                                            f_vect_dbl_2d)

Definition at line 436 of file med_field_anal.py.

Initial value:
00001 createFieldDoubleFromAnalytic(supportOnNode,
00002                                                           spaceDim,
00003                                                           f_vect_dbl_2d)

Definition at line 284 of file med_field_anal.py.

Initial value:
00001 createFieldIntFromAnalytic(supportOnCell,1,
00002                                                     f_scal_int_2d)

Definition at line 136 of file med_field_anal.py.

Initial value:
00001 createFieldIntFromAnalytic(supportOnConst,1,
00002                                                      f_scal_int_2d)

Definition at line 439 of file med_field_anal.py.

Initial value:
00001 createFieldIntFromAnalytic(supportOnNode,1,
00002                                                     f_scal_int_2d)

Definition at line 287 of file med_field_anal.py.

Initial value:
00001 createFieldIntFromAnalytic(supportOnCell,spaceDim,
00002                                                     f_vect_int_2d)

Definition at line 138 of file med_field_anal.py.

Initial value:
00001 createFieldIntFromAnalytic(supportOnConst, spaceDim,
00002                                                      f_vect_int_2d)

Definition at line 441 of file med_field_anal.py.

Initial value:
00001 createFieldIntFromAnalytic(supportOnNode, spaceDim,
00002                                                     f_vect_int_2d)

Definition at line 289 of file med_field_anal.py.

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

Definition at line 88 of file med_field_anal.py.

tuple med_field_anal.iterationNb = fieldDoubleScalOnCell.getIterationNumber()

Definition at line 168 of file med_field_anal.py.

Definition at line 175 of file med_field_anal.py.

Definition at line 104 of file med_field_anal.py.

tuple med_field_anal.medFile = os.path.join(filePath, "carre_en_quad4_seg2.med")

Definition at line 91 of file med_field_anal.py.

Definition at line 110 of file med_field_anal.py.

Definition at line 109 of file med_field_anal.py.

tuple med_field_anal.meshDim = mesh.getMeshDimension()

Definition at line 112 of file med_field_anal.py.

tuple med_field_anal.name = fieldDoubleScalOnCell.getName()

Definition at line 163 of file med_field_anal.py.

tuple med_field_anal.nbMeshes = md.getNumberOfMeshes()

Definition at line 105 of file med_field_anal.py.

tuple med_field_anal.nbNodes = mesh.getNumberOfNodes()

Definition at line 113 of file med_field_anal.py.

tuple med_field_anal.nbOf = support.getNumberOfElements(MED_ALL_ELEMENTS)

Definition at line 185 of file med_field_anal.py.

tuple med_field_anal.nbOfComp = fieldDoubleScalOnCell.getNumberOfComponents()

Definition at line 165 of file med_field_anal.py.

tuple med_field_anal.orderNb = fieldDoubleScalOnCell.getOrderNumber()

Definition at line 169 of file med_field_anal.py.

tuple med_field_anal.spaceDim = mesh.getSpaceDimension()

Definition at line 111 of file med_field_anal.py.

tuple med_field_anal.support = fieldDoubleScalOnCell.getSupport()

Definition at line 184 of file med_field_anal.py.

tuple med_field_anal.supportOnCell = mesh.getSupportOnAll(MED_CELL)

Definition at line 118 of file med_field_anal.py.

tuple med_field_anal.supportOnConst = mesh.getSupportOnAll(MED_FACE)

Definition at line 123 of file med_field_anal.py.

tuple med_field_anal.supportOnNode = mesh.getSupportOnAll(MED_NODE)

Definition at line 120 of file med_field_anal.py.

tuple med_field_anal.time = fieldDoubleScalOnCell.getTime()

Definition at line 170 of file med_field_anal.py.

tuple med_field_anal.valueI = fieldDoubleScalOnCell.getRow(k+1)

Definition at line 188 of file med_field_anal.py.