5. Add a new load#

Loads in the sense of Code_Aster are split into two separate directives in EPX: LINK and CHAR. The translation catalog follows this rule by separating loads and links in two different dictionaries: cata_liais and cata_char.

5.2. Add a load#

5.2.1. Loading dictionary#

To add a new load, you must duplicate a key/value pair from the cata_char dictionary. One gives here a key to this dictionary:

cata_charge = {

“FORCE_COQUE”: {

“TYPE_CHAR”: “FACTO”,

“MOT_CLE_EPX”: [“PRES COQU”],

“ASTER”: [“PRES”],

“EPX”: None,

“COEF_MULT”: -1,

“ENTITE”: [“GROUP_MA”],

},

}

5.2.2. Stages#

The steps are exactly the same as for a link with two exceptions:

  1. Indicate in “TYPE_CHAR”, the EPX type of the load (FACTO or CONST). In case FACTO, the load must be accompanied by a multiplier function, but not in case CONST.

  2. Do not give the keyword “FONC_MULT” as it is implied by the type of load.

5.3. Multiple choice processing#

Sometimes a load or a Code_Aster link can correspond to multiple uploads or links in EPX.

First of all, it is necessary to identify what will determine which option is retained. The analysis of this criterion and the resulting choice must be hard-coded in the calc_epx_char.py module in the export_charge routine after the code list:

if len (epx_keyword) > 1:

The dictionary must then be adapted to these multiple possibilities with the following logic. Each key whose value is not the same for each of the cases must be a dictionary whose keys are the different names of the possible loads or links and whose values are the desired values for the key in question. Link DDL_IMPO is an example of this.