If the schema implies a coupling between Code_Aster and HOMARD, some comments are included here.
The first phase consists in creating a directory which will gather the files of the calculation and the files of the successive meshes.
The commands of the calculation are to be defined as for any calculation. The only point is about the test value for the convergence.
To get back the test value V_TEST, the script fetches in the file resu a line such as:
V_TEST 0.02071983
For that purpose, the best way consists in placing the test value in an entitled table V_TEST, for example after an extraction from a result:
TA=POST_RELEVE_T(ACTION=_F(OPERATION='EXTRACTION',
INTITULE='V_TEST',
RESULTAT=RESU,
NOM_CHAM='TEMP',
NUME_ORDRE=0,
GROUP_NO='A',
NOM_CMP='TEMP',),);
Then print this table for the two parameters INTITULE and component:
IMPR_TABLE(TABLE=TA,
NOM_PARA=('INTITULE','TEMP',),);
If the adaptation is driven by a field, it will be necessary to write this field in the exit MED file. It can be an error indicator (CALC_ERREUR command) or another field.
For example :
RESU=CALC_ERREUR(reuse =RESU,
RESULTAT=RESU,
OPTION='ERTH_ELEM',);
IMPR_RESU(FORMAT='MED',
RESU=_F(RESULTAT=RESU,
NUME_ORDRE=0,
NOM_CHAM='ERTH_ELEM',
NOM_CMP='ERTABS',
NOM_CHAM_MED='ERREUR',),);
The script for running Code_Aster to supply in the schema YACS is to be downloaded here: ScriptAster. This file can be moved anywhere.
As soon as the commands are correct, a first calculation has to be done. That gives the opportunity to choose the parameters: Code_Aster version, calculation server, interactive/batch, and so on. These parameters will be used for the successive computations. Launching Code_Aster gathers these informations into a file export. This file must be renamed as calcul.ref.export in the directory for the computation.
When the computation is over, the following steps must be done:
The schema is written in the file schema.xml in the directory connected to the case which is the support. This file can be moved with no problem at all. The default parameters of control of the loop of the alternation (calculation/adaptation) can be modified.
The module YACS is activated, the schema is imported and it is launched.