# -*- coding: utf-8 -*-

# Copyright 2016 EDF R&D
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License Version 3 as
# published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, you may download a copy of license
# from https://www.gnu.org/licenses/gpl-3.0.

"""
Translation dictionary
----------------------

This module defines a dictionary to translate the commands names and their
keywords.

A translation of a command or keyword name is first searched in the
catalog of the command itself (which depends on the selected version), then in
the global dictionary (defined here and common to all code_aster versions),
and finally the name is returned untranslated if no translation was found.

Attributes:
    GLOBAL_DICT (dict): Global translation dictionary.

"""


__all__ = ["GLOBAL_DICT"]


GLOBAL_DICT = {
    "MAILLAGE": "Mesh",
    "MODELE": "Model",
    "MATER": "Material",
    "COMPOR": "Behavior",
    "AFFE": "Assignement",
    "UNITE": "Filename",
    "OUI": "Yes",
    "NON": "No",
    "INFO": "Verbosity",
    "TOUT": "All",
    "GROUP_MA": "Group of element",
    "SANS_GROUP_MA": "Exclude group of element",
    "SANS_MAILLE": "Exclude element",
    "MAILLE": "Element",
    "GROUP_NO": "Group of node",
    "SANS_NOEUD": "Exclude Node",
    "SANS_GROUP_NO": "Exclude group of node",
    "NOEUD": "Node",
    "CHAM_GD": "Field",
    "EVOL": "Transient value",
    "EVOL_NOLI": "Non linear transient",
    "VALE_REF": "Reference value",
    "E": "Young's modulus",
    "NU": "Poisson's ratio",
    "RHO": "Density",
    "ELAS": "Elastic",
    "THER": "Thermic",
    "LONG_CARA": "Characteristic length",
    "COEF_AMOR": "Damping coeficient",
    "LONGUEUR": "Length",
    "PRESSION": "Pressure",
    "TEMPERATURE": "Temperature",
    "TEMP": "Temperature",
    "TEMP_IMPO": "Enforce Temperature",
    "PHENOMENE": "Phenomenon",
    "MECANIQUE": "Mechanic",
    "THERMIQUE": "Thermic",
    "ACOUSTIQUE": "Acoustic",
    "METHODE": "Method",
    "MODELISATION": "Modelisation",
    "CHAM_MATER": "Material field",
    "SOLVEUR": "Solver",
    "CARA_ELEM": "Structural element characteristic",
    "EXCIT": "Loads",
    "OPTION": "Option",
    "CHARGE": "Load",
    "FONC_MULT": "Multiplier function",
    "TYPE_CHARGE": "Load type",
    "LIST_INST": "Time step list",
    "INST": "Time",
    "INST_FIN": "End time step",
    "TITRE": "Title",
    "PESANTEUR": "Gravitational acceleration",
    "ROTATION": "Rotation",
    "DDL_IMPO": "Enforce DOF",
    "DDL_POUTRE": "Enforce beam's DOF",
    "DIRECTION": "Direction",
    "GRAVITE": "Gravitational constant",
    "VITESSE": "Celerity",
    "ABSCISSE": "X-coordinate",
    "ORDONNEE": "Y-coordinate",
    "VALE": "Value",
    "VALE_C": "Complex Value",
    "VERIF": "Check",
    "NOM_PARA": "Parameter name",
    "NOM_RESU": "Resu_name",
    "INTERPOL": "Interpolation",
    "PROL_GAUCHE": "Left extension",
    "PROL_DROITE": "Right extension",
    "GRANDEUR_CARA": "Characteristic value",
    "ASTER": "Aster",
    "MED": "Med",
    "INCREMENT": "Timestepping",
    "ETAT_INIT": "Initial condition",
    "ARCHIVAGE": "Storing ",
    "CRITERE": "Criterion",
    "PRECISION": "Precision",
    "RESU": "Results",
    "FORMAT": "Format",
    "CONCEPT": "Concept",
    "RESULTAT": "Result",
    "SOUS_TITRE": "Subtitle",

        # English Aliases for Code_Aster Commands
    "AFFE_CARA_ELEM": "Assign_Element_Properties",
    "AFFE_CHAR_CINE": "Apply_Kinematic_Boundary_Condition_Complex",
    "AFFE_CHAR_CINE_F": "ApplyKinematicBoundaryCondition",
    "AFFE_CHAR_MECA_C": "Assign_Mechanical_Loads_Complex",
    "AFFE_CHAR_MECA_F": "ApplyMechanicalLoad",
    "ASSE_MAILLAGE": "Assemble_Mesh",
    "CALC_AMOR_MODAL": "Compute_Modal_Damping",
    "CALC_CHAM_FLUI": "Compute_Fluid_Field",
    "CALC_CHAMP": "Compute_Field",
    "CALC_CHAR_SEISME": "Seismic_Characteristics_Calc",
    "CALC_ERREUR": "Calculate_Error",
    "CALC_FATIGUE": "Compute_Fatigue",
    "CALC_FERRAILLAGE": "Reinforcement_Calculation",
    "CALC_FLUI_STRU": "Compute_Fluid_Structure_Interaction",
    "CALC_FONC_INTERP": "Interpolate_Function",
    "CALC_G": "Compute_CenterOfGravity_And_Inertia",
    "CALC_META": "ComputeMetadata",
    "COMB_MATR_ASSE": "CombineAssembledMatrices",
    "CREA_CHAMP": "Create_Field",
    "CREA_MAILLAGE": "Create_Mesh",
    "CREA_RESU": "Create_Result",
    "CREA_TABLE": "Create_Table",
    "DEFI_BASE_MODALE": "Define_Modal_Basis",
    "DEFI_BASE_REDUITE": "Define_Reduced_Basis",
    "DEFI_COMPOSITE": "Define_Composite_Material",
    "DEFI_CONSTANTE": "Define_Constant",
    "DEFI_CONTACT": "Define_Contact",
    "DEFI_DOMAINE_REDUIT": "Define_Reduced_Domain",
    "DEFI_FISS_XFEM": "Define_XFEM_Crack",
    "DEFI_FLUI_STRU": "Define_Fluid_Structure_Coupling",
    "DEFI_FOND_FISS": "Define_Crack_Base",
    "DEFI_FONC_FLUI": "Define_Fluid_Function",
    "DEFI_GEOM_FIBRE": "Define_Fiber_Geometry",
    "DEFI_GROUP": "Define_Group",
    "DEFI_LIST_INST": "Define_Time_Step_List",
    "DEFI_LIST_REEL": "Define_Real_List",
    "DEFI_NAPPE": "Define_Table_Surface",
    "DEFI_OBSTACLE": "Define_Obstacle",
    "DEFI_TRC": "Define_Transfer",
    "DYNA_NON_LINE": "Nonlinear_Dynamic_Analysis",
    "DYNA_VIBRA": "Dynamic_Vibration_Analysis",
    "EXTR_MODE": "Extract_Modes",
    "EXTR_RESU": "Extract_Results",
    "EXTR_TABLE": "Extract_Table_Data",
    "FORMULE": "Analytic_Function",
    "INFO_MODE": "Output_Verbosity_Level",
    "MODE_NON_LINE": "Nonlinear_Mechanical_Analysis",
    "MODE_STATIQUE": "Static_Mode_Computation",
    "MODI_MODELE": "Modify_Model",
    "MODI_MODELE_XFEM": "Modify_XFEM_Model",
    "MODI_REPERE": "Modify_Reference_Frame",
    "POST_CHAM_XFEM": "Postprocess_XFEM_Field",
    "POST_CHAMP": "Post_Field",
    "POST_ELEM": "Element_PostProcessor",
    "POST_FATIGUE": "FatiguePostProcessor",
    "POST_GENE_PHYS": "GeneratePhysicalFields",
    "POST_MAIL_XFEM": "Export_XFEM_PostResults",
    "POST_RCCM": "PostProcess_RCCM_Check",
    "POST_RELEVE_T": "Thermal_Result_Extractor",
    "PROJ_CHAMP": "Field_Projection",
    "RECA_WEIBULL": "Weibull_Recalibration",
    "RECU_FONCTION": "Retrieve_Function",
    "RECU_TABLE": "Retrieve_Table_Data",
    "REST_GENE_PHYS": "Reconstruct_Physical_Field",
    "REST_REDUIT_COMPLET": "Full_Reduced_Model_Restoration",
    "REST_SPEC_PHYS": "RestorePhysicalSpecification",
    "REST_SPEC_TEMP": "Specification_Temporal_Restoration",
    "STAT_NON_LINE": "NonlinearStaticSolver",
    "THER_NON_LINE_MO": "NonlinearThermalAnalysis",



}
