You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Returns an instance of the class iteration
known by its name
iter_name: the name of the iteration
.. module:: GetAllIterationsName
GetAllIterationsName()
Returns the liste of the name of all the existing
iterations
Methods of both classes cas and iteration
************************************"
See also in :doc:`tui_create_case`.
.. module:: NextIteration
NextIteration(iter_name)
Returns an instance of the class iteration after
its creation. It is the next iteration after:
for a case: the very first one that corresponds to the
first mesh of the case
for an iteration: the current iteration
Default: the produced mesh has got the same name as the
iteration
iter_name: the name of this next iteration
.. module:: LastIteration
LastIteration()
Returns an instance of the class iteration that is
the last iteration into the descendants of:
for a case: the very first one that corresponds to the
first mesh of the case
for an iteration: the current iteration
It is the one that has got no child. There is an error if
more than one branch exists into the descendants.
Methods of the class iteration
General methods
.. module:: Compute
Compute(option1, option2)
Computes the mesh produced by the iteration
option1: an integer to decide what to do with
existing files, if any
0: stop with error
1: the old files are removed
option2: an integer to decide what to do with
the results
1: no specific action
2: publication into the module SMESH
Returns an integer:
0: successful adaptation
other value: problem
.. module:: GetName
GetName()
Returns the name of the iteration
.. module:: GetNumber
GetNumber()
Returns the number of the iteration.
The iteration #0 is the one associated to the initial
mesh. Then, an iteration with number #N comes from the
adaptation of an iteration with number #(N-1).
.. module:: GetIterParent
GetIterParent()
Returns the iteration parent
.. module:: AssociateHypo
AssociateHypo(hypo_name)
Associate a hypothesis with the iteration
hypo_name: the name of the hypothesis
.. module:: GetHypoName
GetHypoName()
Returns the name of the associated hypothesis
.. module:: GetCaseName
GetCaseName()
Returns the name of the associated case
.. module:: GetState
GetState()
Returns the state of the iteration
2: computed iteration
1: non computed iteration
<=0: initial iteration not to be computed, with a
number equal to the absolute valure of the state
.. module:: GetLogFile
GetLogFile()
Returns the name of the file with the messages all along
the running of HOMARD
.. module:: GetFileInfo
GetFileInfo()
Returns the name of the file with the analysis of the mesh
.. module:: GetDirName
GetDirName()
Returns the name of the directory that contains the
results of the iteration
.. module:: Delete
Delete(option)
Deletes the iteration and all its children
option: an integer to define what to do with the
MED file of the associated meshes
0: the files are kept
1: the files are removed
Returns an integer:
0: the destruction is done
other value: problem
Information about the meshes
.. module:: SetMeshName
SetMeshName(mesh_name)
Defines the name of the produced mesh
mesh_name: the name of the produced mesh
.. module:: GetMeshName
GetMeshName()
Returns the name of the produced mesh
.. module:: SetMeshFile
SetMeshFile(mesh_file)
Defines the name of the MED file of the produced mesh
mesh_file: the name of the MED file of the
produced mesh
.. module:: GetMeshFile
GetMeshFile()
Returns the name of the MED file of the produced mesh
.. module:: MeshInfo
MeshInfo(Qual, Diam, Conn, Tail, Inte)
Gives information about the current mesh. For every
option, the choice #0 corresponds to 'no action', while
the choice #1 launches the option.
Qual: quality of the elements
Diam: diametre of the elements
Conn: connexity of the domain; a single block, how
many holes, etc.
Tail: size of the parts of the domain, group by
group
Inte: staggered elements, by dimension
Information about the field
The file of the fields
.. module:: SetFieldFile
SetFieldFile(field_file)
Defines the MED file of the fields
field_file: the name of the MED file of the fields:
the driving field for the adaptation, or the fields to
be interpolated
.. module:: GetFieldFileName
GetFieldFileName()
Returns the name of the MED file of the fields
The time step for the driving field
If no time step is defined for the field or if a single time step is defined for the field, the definition of a time step is useless. That will be the default choice.
.. module:: SetTimeStep
SetTimeStep(TimeStep)
Defines the time step for the driving field for the
adaptation. The rank will be ignored.
TimeStep: the selected time step
.. module:: SetTimeStepRank
SetTimeStepRank(TimeStep, Rank)
Defines the time step and the rank for the driving field
for the adaptation
TimeStep: the selected time step
Rank: the selected rank
.. module:: SetTimeStepRankLast
SetTimeStepRankLast()
The last time step will be used for the driving field for
the adaptation, whatever its value
.. module:: GetTimeStep
GetTimeStep()
Returns the selected time step for the driving field
.. module:: GetRank
GetRank()
Returns the selected rank for the driving field
The time steps for the fields to interpolate
The choice of the fields to interpolated are defined in the hypothesis (see :doc:`tui_create_hypothese`).
For a given field, if nothing is declared, every single time step will be considered.
If some time steps are wanted, they must be defined as follows.
.. module:: SetFieldInterpTimeStep
SetFieldInterpTimeStep(FieldName, TimeStep)
Defines the time step for the interpolation of the field.
The rank will be ignored.
FieldName: the name of the field to interpolate
TimeStep: the selected time step
.. module:: SetFieldInterpTimeStepRank
SetFieldInterpTimeStepRank(FieldName, TimeStep)
Defines the time step and the rank for the interpolation
of the field.
FieldName: the name of the field to interpolate
TimeStep: the selected time step
Rank: the selected rank
.. module:: GetFieldInterpsTimeStepRank
GetFieldInterpsTimeStepRank()
Returns the information (name of the field, time step,
rank)
Warning: the time step and the rank are stored as strings
in the list and not as integers.