From c1f189930d3fd320f681c6d320e90fab6b69ebc3 Mon Sep 17 00:00:00 2001 From: "francois.grand" <francois.grand@irstea.fr> Date: Tue, 5 Sep 2017 17:39:52 +0200 Subject: [PATCH] =?UTF-8?q?-=20fichier=20de=20conf=20des=20calculettes=20:?= =?UTF-8?q?=20introduction=20d'une=20notion=20de=20d=C3=A9pendance=20(dep?= =?UTF-8?q?=5Fvalue,=20dep=5Fexist)=20entre=20=C3=A9l=C3=A9ments=20du=20fo?= =?UTF-8?q?rmulaire=20(input,=20select,=20fieldset)=20-=20modif=20du=20fic?= =?UTF-8?q?hier=20de=20conf=20de=20Lechapt-Calmon=20et=20cr=C3=A9ation=20d?= =?UTF-8?q?e=20fichiers=20de=20conf=20pour=20toutes=20les=20calculettes=20?= =?UTF-8?q?suivant=20ce=20principe=20de=20d=C3=A9pendance?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lechapt-calmon/lechapt-calmon.config.json | 337 ++++++++++-------- .../lechapt-calmon/lechapt-calmon.fr.json | 20 +- .../calculators/ouvrages/ouvrages.config.json | 239 +++++++++++++ src/app/calculators/ouvrages/ouvrages.fr.json | 32 ++ .../regime-uniforme.config.json | 167 +++++++++ .../regime-uniforme/regime-uniforme.fr.json | 26 ++ src/app/calculators/remous/remous.config.json | 235 ++++++++++++ src/app/calculators/remous/remous.fr.json | 52 +++ .../section-param/section-param.config.json | 167 +++++++++ .../section-param/section-param.fr.json | 26 ++ 10 files changed, 1136 insertions(+), 165 deletions(-) create mode 100644 src/app/calculators/ouvrages/ouvrages.config.json create mode 100644 src/app/calculators/ouvrages/ouvrages.fr.json create mode 100644 src/app/calculators/regime-uniforme/regime-uniforme.config.json create mode 100644 src/app/calculators/regime-uniforme/regime-uniforme.fr.json create mode 100644 src/app/calculators/remous/remous.config.json create mode 100644 src/app/calculators/remous/remous.fr.json create mode 100644 src/app/calculators/section-param/section-param.config.json create mode 100644 src/app/calculators/section-param/section-param.fr.json diff --git a/src/app/calculators/lechapt-calmon/lechapt-calmon.config.json b/src/app/calculators/lechapt-calmon/lechapt-calmon.config.json index 6449fdb0b..5ba3de5e0 100644 --- a/src/app/calculators/lechapt-calmon/lechapt-calmon.config.json +++ b/src/app/calculators/lechapt-calmon/lechapt-calmon.config.json @@ -1,166 +1,194 @@ [ { "id": "fs_materiau", - "name": "Type du matériau", - "option": "var", + "option": "fix", "fields": [ { "id": "select_material", "type": "select", - "name": "Choix du matériau", "select": [ { - "id": 1, - "parameters": [ - { - "id": "L", - "value": "1.863" - }, - { - "id": "M", - "value": "2" - }, - { - "id": "N", - "value": "5.33" - } - ] - }, - { - "id": 2, - "parameters": [ - { - "id": "L", - "value": "1.601" - }, - { - "id": "M", - "value": "1.975" - }, - { - "id": "N", - "value": "5.25" - } - ] - }, - { - "id": 3, - "parameters": [ - { - "id": "L", - "value": "1.40" - }, - { - "id": "M", - "value": "1.96" - }, - { - "id": "N", - "value": "5.19" - } - ] - }, - { - "id": 4, - "parameters": [ - { - "id": "L", - "value": "1.16" - }, - { - "id": "M", - "value": "1.93" - }, - { - "id": "N", - "value": "5.11" - } - ] - }, - { - "id": 5, - "parameters": [ - { - "id": "L", - "value": "1.1" - }, - { - "id": "M", - "value": "1.89" - }, - { - "id": "N", - "value": "5.01" - } - ] - }, - { - "id": 6, - "parameters": [ - { - "id": "L", - "value": "1.049" - }, - { - "id": "M", - "value": "1.86" - }, - { - "id": "N", - "value": "4.93" - } - ] - }, - { - "id": 7, - "parameters": [ - { - "id": "L", - "value": "1.01" - }, - { - "id": "M", - "value": "1.84" - }, - { - "id": "N", - "value": "4.88" - } - ] - }, - { - "id": 8, - "parameters": [ - { - "id": "L", - "value": "0.916" - }, - { - "id": "M", - "value": "1.78" - }, - { - "id": "N", - "value": "4.78" - } - ] - }, - { - "id": 9, - "parameters": [ - { - "id": "L", - "value": "0.971" - }, - { - "id": "M", - "value": "1.81" - }, - { - "id": "N", - "value": "4.81" - } - ] + "id": "select_material_1" + }, + { + "id": "select_material_2" + }, + { + "id": "select_material_3" + }, + { + "id": "select_material_4" + }, + { + "id": "select_material_5" + }, + { + "id": "select_material_6" + }, + { + "id": "select_material_7" + }, + { + "id": "select_material_8" + }, + { + "id": "select_material_9" + } + ] + }, + { + "type": "input", + "id": "L", + "unit": "", + "dep_value": [ + { + "refid": "select_material", + "refvalue": "select_material_1", + "value": "1.863" + }, + { + "refid": "select_material", + "refvalue": "select_material_2", + "value": "1.601" + }, + { + "refid": "select_material", + "refvalue": "select_material_3", + "value": "1.40" + }, + { + "refid": "select_material", + "refvalue": "select_material_4", + "value": "1.16" + }, + { + "refid": "select_material", + "refvalue": "select_material_5", + "value": "1.1" + }, + { + "refid": "select_material", + "refvalue": "select_material_6", + "value": "1.049" + }, + { + "refid": "select_material", + "refvalue": "select_material_7", + "value": "1.01" + }, + { + "refid": "select_material", + "refvalue": "select_material_8", + "value": "0.916" + }, + { + "refid": "select_material", + "refvalue": "select_material_9", + "value": "0.971" + } + ] + }, + { + "type": "input", + "id": "M", + "unit": "", + "dep_value": [ + { + "refid": "select_material", + "refvalue": "select_material_1", + "value": "2" + }, + { + "refid": "select_material", + "refvalue": "select_material_2", + "value": "1.975" + }, + { + "refid": "select_material", + "refvalue": "select_material_3", + "value": "1.96" + }, + { + "refid": "select_material", + "refvalue": "select_material_4", + "value": "1.93" + }, + { + "refid": "select_material", + "refvalue": "select_material_5", + "value": "1.89" + }, + { + "refid": "select_material", + "refvalue": "select_material_6", + "value": "1.86" + }, + { + "refid": "select_material", + "refvalue": "select_material_7", + "value": "1.84" + }, + { + "refid": "select_material", + "refvalue": "select_material_8", + "value": "1.78" + }, + { + "refid": "select_material", + "refvalue": "select_material_9", + "value": "1.81" + } + ] + }, + { + "type": "input", + "id": "N", + "unit": "", + "dep_value": [ + { + "refid": "select_material", + "refvalue": "select_material_1", + "value": "5.33" + }, + { + "refid": "select_material", + "refvalue": "select_material_2", + "value": "5.25" + }, + { + "refid": "select_material", + "refvalue": "select_material_3", + "value": "5.19" + }, + { + "refid": "select_material", + "refvalue": "select_material_4", + "value": "5.11" + }, + { + "refid": "select_material", + "refvalue": "select_material_5", + "value": "5.01" + }, + { + "refid": "select_material", + "refvalue": "select_material_6", + "value": "4.93" + }, + { + "refid": "select_material", + "refvalue": "select_material_7", + "value": "4.88" + }, + { + "refid": "select_material", + "refvalue": "select_material_8", + "value": "4.78" + }, + { + "refid": "select_material", + "refvalue": "select_material_9", + "value": "4.81" } ] } @@ -168,7 +196,6 @@ }, { "id": "fs_hydraulique", - "name": "Caractéristiques hydrauliques", "option": "cal", "fields": [ { diff --git a/src/app/calculators/lechapt-calmon/lechapt-calmon.fr.json b/src/app/calculators/lechapt-calmon/lechapt-calmon.fr.json index cf4844217..81976f36a 100644 --- a/src/app/calculators/lechapt-calmon/lechapt-calmon.fr.json +++ b/src/app/calculators/lechapt-calmon/lechapt-calmon.fr.json @@ -1,20 +1,20 @@ { "fs_materiau": "Type du matériau", "select_material": "Choix du matériau", + "select_material_1": "Fonte ou acier non revêtus - Béton grossier (eau corrosive)", + "select_material_2": "Fonte ou acier non revêtus - Béton grossier (eau peu corrosive)", + "select_material_3": "Fonte ou acier revêtement ciment", + "select_material_4": "Fonte ou acier revêtement bitume - Béton centrifugé", + "select_material_5": "Acier laminé - Béton lisse", + "select_material_6": "Fonte ou acier revêtement centrifugé", + "select_material_7": "PVC - Polyéthylène", + "select_material_8": "Tuyau hydrauliquement lisse - 0.05 ≤ D ≤ 0.2", + "select_material_9": "Tuyau hydrauliquement lisse - 0.25 ≤ D ≤ 1", "fs_hydraulique": "Caractéristiques hydrauliques", "Q": "Débit", "D": "Diamètre du tuyau", "J": "Perte de charge", "Lg": "Longueur du tuyau", "fs_param_calc": "Paramètres de calcul", - "Pr": "Précision de calcul", - "1": "Fonte ou acier non revêtus - Béton grossier (eau corrosive)", - "2": "Fonte ou acier non revêtus - Béton grossier (eau peu corrosive)", - "3": "Fonte ou acier revêtement ciment", - "4": "Fonte ou acier revêtement bitume - Béton centrifugé", - "5": "Acier laminé - Béton lisse", - "6": "Fonte ou acier revêtement centrifugé", - "7": "PVC - Polyéthylène", - "8": "Tuyau hydrauliquement lisse - 0.05 ≤ D ≤ 0.2", - "9": "Tuyau hydrauliquement lisse - 0.25 ≤ D ≤ 1" + "Pr": "Précision de calcul" } \ No newline at end of file diff --git a/src/app/calculators/ouvrages/ouvrages.config.json b/src/app/calculators/ouvrages/ouvrages.config.json new file mode 100644 index 000000000..1dcdb14cb --- /dev/null +++ b/src/app/calculators/ouvrages/ouvrages.config.json @@ -0,0 +1,239 @@ +[ + { + "id": "fs_ouvrage", + "fields": [ + { + "id": "select_ouvrage", + "type": "select", + "select": [ + { + "id": "select_ouvrage_vanne_rect" + }, + { + "id": "select_ouvrage_vanne_circ" + }, + { + "id": "select_ouvrage_seuil_rect" + }, + { + "id": "select_ouvrage_seuil_trap" + }, + { + "id": "select_ouvrage_vanne_trap" + } + ] + }, + { + "id": "select_loidebit1", + "type": "select", + "dep_exist": [ + { + "refid": "select_ouvrage_vanne", + "refvalue": "select_ouvrage_vanne_rect" + }, + { + "refid": "select_ouvrage_vanne", + "refvalue": "select_ouvrage_vanne_circ" + }, + { + "refid": "select_ouvrage_vanne", + "refvalue": "select_ouvrage_seuil_rect" + } + ], + "select": [ + { + "id": "select_loidebit1_cemagref88" + }, + { + "id": "select_loidebit1_vannedenoye" + }, + { + "id": "select_loidebit1_vannenoye" + } + ] + }, + { + "id": "select_loidebit2", + "type": "select", + "dep_exist": [ + { + "refid": "select_ouvrage_vanne", + "refvalue": "select_ouvrage_seuil_trap" + }, + { + "refid": "select_ouvrage_vanne", + "refvalue": "select_ouvrage_vanne_trap" + } + ], + "select": [ + { + "id": "select_loidebit4_cemagref88" + } + ] + } + ] + }, + { + "id": "fs_caract_1", + "dep_exist": [ + { + "refid": "select_ouvrage_vanne", + "refvalue": "select_ouvrage_vanne_rect" + }, + { + "refid": "select_ouvrage_vanne", + "refvalue": "select_ouvrage_vanne_circ" + } + ], + "fields": [ + { + "type": "input", + "id": "larg", + "unit": "m", + "value": 2 + }, + { + "type": "input", + "id": "ouv", + "unit": "m", + "value": 0.5 + }, + { + "type": "input", + "id": "kq", + "unit": "", + "value": 0.4 + } + ] + }, + { + "id": "fs_caract_2", + "dep_exist": [ + { + "refid": "select_ouvrage_vanne", + "refvalue": "select_ouvrage_seuil_rect" + } + ], + "fields": [ + { + "type": "input", + "id": "larg", + "unit": "m", + "value": 2 + }, + { + "type": "input", + "id": "kq", + "unit": "", + "value": 0.4 + } + ] + }, + { + "id": "fs_caract_3", + "dep_exist": [ + { + "refid": "select_ouvrage_vanne", + "refvalue": "select_ouvrage_seuil_trap" + }, + { + "refid": "select_ouvrage_vanne", + "refvalue": "select_ouvrage_vanne_trap" + } + ], + "fields": [ + { + "type": "input", + "id": "largf", + "unit": "m", + "value": 2 + }, + { + "type": "input", + "id": "kqr", + "unit": "", + "value": 0.4 + }, + { + "type": "input", + "id": "kqt", + "unit": "", + "value": 0.5 + }, + { + "type": "input", + "id": "fruit", + "unit": "m/m", + "value": 0.56 + } + ] + }, + { + "id": "fs_surverse", + "dep_exist": [ + { + "id": "select_ouvrage_vanne_rect" + }, + { + "id": "select_ouvrage_vanne_circ" + }, + { + "id": "select_ouvrage_vanne_trap" + } + ], + "fields": [ + { + "type": "bool", + "id": "surverse", + "value": false + } + ] + }, + { + "id": "fs_hydraulique", + "name": "Caractéristiques globales", + "option": "cal", + "fields": [ + { + "type": "input", + "id": "Q", + "unit": "m³/s", + "value": 3 + }, + { + "type": "input", + "id": "D", + "unit": "m", + "value": 1.2 + }, + { + "type": "input", + "id": "J", + "unit": "m", + "value": 0.6 + }, + { + "type": "input", + "id": "Lg", + "unit": "m", + "value": 100 + } + ] + }, + { + "id": "fs_param_calc", + "option": "fix", + "fields": [ + { + "type": "input", + "id": "Pr", + "unit": "m", + "value": 0.001 + } + ] + }, + { + "id": "options", + "idCal": "J" + } +] \ No newline at end of file diff --git a/src/app/calculators/ouvrages/ouvrages.fr.json b/src/app/calculators/ouvrages/ouvrages.fr.json new file mode 100644 index 000000000..ce4d974c5 --- /dev/null +++ b/src/app/calculators/ouvrages/ouvrages.fr.json @@ -0,0 +1,32 @@ +{ + "fs_ouvrage": "Type d'ouvrage", + "select_ouvrage": "Ouvrage", + "select_ouvrage_vanne_rect": "Vanne rectangulaire", + "select_loidebit1": "Loi de débit", + "select_loidebit1_cemagref88": "Déversoir/Orifice Cemagref 88", + "select_loidebit1_vannedenoye": "Vanne dénoyé", + "select_loidebit1_vannenoye": "Vanne noyé", + "select_loidebit2": "Loi de débit", + "select_loidebit2_cemagref88": "Déversoir/Orifice Cemagref 88", + "select_ouvrage_circ": "Vanne circulaire", + "select_ouvrage_seuil_rect": "Seuil rectangulaire", + "select_ouvrage_seuil_trap": "Seuil trapézoïdal", + "select_ouvrage_vanne_trap": "Vanne trapézoïdale", + "fs_caract_1": "Caractéristiques de l'ouvrage", + "larg": "Largeur", + "ouv": "Ouverture", + "kq": "Coefficient de débit", + "fs_caract_2": "Caractéristiques de l'ouvrage", + "fs_caract_3": "Caractéristiques de l'ouvrage", + "largf": "Largeur au fond", + "kqr": "Coefficient de débit partie rectangulaire", + "kqt": "Coefficient de débit partie triangulaire", + "fruit": "Fruit", + "fs_surverse": "Surverse", + "fs_hydraulique": "Caractéristiques globales", + "Q": "Débit", + "Y_A": "Cote de l'eau à l'amont", + "Y_a": "Cote de l'eau à l'aval", + "fs_param_calc": "Paramètres de calcul", + "Pr": "Précision de calcul" +} \ No newline at end of file diff --git a/src/app/calculators/regime-uniforme/regime-uniforme.config.json b/src/app/calculators/regime-uniforme/regime-uniforme.config.json new file mode 100644 index 000000000..b403b17ce --- /dev/null +++ b/src/app/calculators/regime-uniforme/regime-uniforme.config.json @@ -0,0 +1,167 @@ +[ + { + "id": "fs_section", + "fields": [ + { + "id": "select_section", + "type": "select", + "select": [ + { + "id": "select_section_trapez" + }, + { + "id": "select_section_rect" + }, + { + "id": "select_section_circ" + }, + { + "id": "select_section_para" + } + ] + } + ] + }, + { + "id": "fs_section_trapez", + "option": "cal", + "dep_exist": [ + { + "refid": "select_section", + "refvalue": "select_section_trapez" + } + ], + "fields": [ + { + "type": "input", + "id": "LargeurFond", + "unit": "m", + "value": 2.5 + }, + { + "type": "input", + "id": "Fruit", + "unit": "m/m", + "value": 0.56 + } + ] + }, + { + "id": "fs_section_rect", + "option": "cal", + "dep_exist": [ + { + "refid": "select_section", + "refvalue": "select_section_rect" + } + ], + "fields": [ + { + "type": "input", + "id": "LargeurFond", + "unit": "m", + "value": 2.5 + } + ] + }, + { + "id": "fs_section_circ", + "option": "cal", + "dep_exist": [ + { + "refid": "select_section", + "refvalue": "select_section_circ" + } + ], + "fields": [ + { + "type": "input", + "id": "D", + "unit": "m", + "value": 2 + } + ] + }, + { + "id": "fs_section_para", + "option": "cal", + "dep_exist": [ + { + "refid": "select_section", + "refvalue": "select_section_para" + } + ], + "fields": [ + { + "type": "input", + "id": "k", + "unit": "", + "value": 0.5 + }, + { + "type": "input", + "id": "B", + "unit": "m", + "value": 2 + } + ] + }, + { + "id": "fs_bief", + "option": "cal", + "fields": [ + { + "type": "input", + "id": "K", + "unit": "m1/3s-1", + "value": 40 + }, + { + "type": "input", + "id": "If", + "unit": "m/m", + "value": 0.001 + }, + { + "type": "input", + "id": "H", + "unit": "m", + "value": 1 + } + ] + }, + { + "id": "fs_hydraulique", + "option": "cal", + "fields": [ + { + "type": "input", + "id": "Q", + "unit": "m³/s", + "value": 1.2 + }, + { + "type": "input", + "id": "Y", + "unit": "m", + "value": 0.8 + } + ] + }, + { + "id": "fs_param_calc", + "option": "fix", + "fields": [ + { + "type": "input", + "id": "Pr", + "unit": "m", + "value": 0.001 + } + ] + }, + { + "id": "options", + "idCal": "J" + } +] \ No newline at end of file diff --git a/src/app/calculators/regime-uniforme/regime-uniforme.fr.json b/src/app/calculators/regime-uniforme/regime-uniforme.fr.json new file mode 100644 index 000000000..213c48f6f --- /dev/null +++ b/src/app/calculators/regime-uniforme/regime-uniforme.fr.json @@ -0,0 +1,26 @@ +{ + "fs_section": "Type de section", + "select_section": "Choix du type de section", + "select_section_trapez": "Trapézoïdale", + "select_section_rect": "Rectangulaire", + "select_section_circ": "Circulaire", + "select_section_para": "Parabolique", + "fs_section_trapez": "Définition de la section trapézoïdale", + "LargeurFond": "Largeur au fond", + "Fruit": "Fruit des berges", + "fs_section_rect": "Définition de la section rectangulaire", + "fs_section_circ": "Définition de la section circulaire", + "D": "Diamètre", + "fs_section_para": "Définition de la section parabolique", + "k": "Coefficient", + "B": "Largeur de berge", + "fs_bief": "Caractéristiques du bief", + "K": "Coefficient de Strickler", + "If": "Pente du fond", + "H": "Hauteur de berge", + "fs_hydraulique": "Caractéristiques hydrauliques", + "Q": "Débit", + "Y": "Tirant d'eau", + "fs_param_calc": "Paramètres de calcul", + "Pr": "Précision de calcul" +} \ No newline at end of file diff --git a/src/app/calculators/remous/remous.config.json b/src/app/calculators/remous/remous.config.json new file mode 100644 index 000000000..3a14d2db1 --- /dev/null +++ b/src/app/calculators/remous/remous.config.json @@ -0,0 +1,235 @@ +[ + { + "id": "fs_section", + "fields": [ + { + "id": "select_section", + "type": "select", + "select": [ + { + "id": "select_section_trapez" + }, + { + "id": "select_section_rect" + }, + { + "id": "select_section_circ" + }, + { + "id": "select_section_para" + } + ] + } + ] + }, + { + "id": "fs_section_trapez", + "option": "fix", + "dep_exist": [ + { + "refid": "select_section", + "refvalue": "select_section_para" + } + ], + "fields": [ + { + "type": "input", + "id": "LargeurFond", + "unit": "m", + "value": 2.5 + }, + { + "type": "input", + "id": "Fruit", + "unit": "m/m", + "value": 0.56 + } + ] + }, + { + "id": "fs_section_rect", + "option": "fix", + "dep_exist": [ + { + "refid": "select_section", + "refvalue": "select_section_rect" + } + ], + "fields": [ + { + "type": "input", + "id": "LargeurFond", + "unit": "m", + "value": 2.5 + } + ] + }, + { + "id": "fs_section_circ", + "option": "fix", + "dep_exist": [ + { + "refid": "select_section", + "refvalue": "select_section_circ" + } + ], + "fields": [ + { + "type": "input", + "id": "D", + "unit": "m", + "value": 2 + } + ] + }, + { + "id": "fs_section_para", + "option": "fix", + "dep_exist": [ + { + "refid": "select_section", + "refvalue": "select_section_para" + } + ], + "fields": [ + { + "type": "input", + "id": "k", + "unit": "", + "value": 0.5 + }, + { + "type": "input", + "id": "B", + "unit": "m", + "value": 2 + } + ] + }, + { + "id": "fs_bief", + "option": "fix", + "fields": [ + { + "type": "input", + "id": "K", + "unit": "m1/3s-1", + "value": 40 + }, + { + "type": "input", + "id": "If", + "unit": "m/m", + "value": 0.001 + }, + { + "type": "input", + "id": "H", + "unit": "m", + "value": 1 + } + ] + }, + { + "id": "fs_condlim", + "option": "fix", + "fields": [ + { + "type": "input", + "id": "Pd", + "unit": "m", + "value": 5 + }, + { + "type": "input", + "id": "Pr", + "unit": "m", + "value": 0.0001 + }, + { + "id": "select_resolution", + "type": "select", + "select": [ + { + "id": "select_resolution_trap" + }, + { + "id": "select_resolution_rk4" + }, + { + "id": "select_resolution_trap" + } + ] + } + ] + }, + { + "id": "fs_target_data", + "fields": [ + { + "id": "select_target", + "type": "select", + "select": [ + { + "id": "select_target_none" + }, + { + "id": "select_target_hs" + }, + { + "id": "select_target_hsc" + }, + { + "id": "select_target_b" + }, + { + "id": "select_target_p" + }, + { + "id": "select_target_s" + }, + { + "id": "select_target_r" + }, + { + "id": "select_target_v" + }, + { + "id": "select_target_fr" + }, + { + "id": "select_target_yc" + }, + { + "id": "select_target_yn" + }, + { + "id": "select_target_yf" + }, + { + "id": "select_target_yt" + }, + { + "id": "select_target_yco" + }, + { + "id": "select_target_j" + }, + { + "id": "select_target_i_j" + }, + { + "id": "select_target_imp" + }, + { + "id": "select_target_tau0" + } + ] + } + ] + }, + { + "id": "options", + "idCal": "J" + } +] \ No newline at end of file diff --git a/src/app/calculators/remous/remous.fr.json b/src/app/calculators/remous/remous.fr.json new file mode 100644 index 000000000..fc1192576 --- /dev/null +++ b/src/app/calculators/remous/remous.fr.json @@ -0,0 +1,52 @@ +{ + "fs_section": "Type de section", + "select_section": "Choix du type de section", + "select_section_trapez": "Trapézoïdale", + "select_section_rect": "Rectangulaire", + "select_section_circ": "Circulaire", + "select_section_para": "Parabolique", + "fs_section_trapez": "Définition de la section trapézoïdale", + "LargeurFond": "Largeur au fond", + "Fruit": "Fruit des berges", + "fs_section_rect": "Définition de la section rectangulaire", + "fs_section_circ": "Définition de la section circulaire", + "D": "Diamètre", + "fs_section_para": "Définition de la section parabolique", + "k": "Coefficient", + "B": "Largeur de berge", + "fs_bief": "Caractéristiques du bief", + "K": "Coefficient de Strickler", + "If": "Pente du fond", + "H": "Hauteur de berge", + "fs_condlim": "Conditions aux limites", + "Q_a": "Débit amont", + "Y_a": "Tirant d'eau imposé à l'aval", + "Y_A": "Tirant d'eau imposé à l'amont", + "fs_param_calc": "Paramètres de calcul", + "Pd": "Pas de discrétisation", + "Pr": "Précision de calcul et d'affichage des cotes", + "select_resolution": "Méthode de résolution", + "select_resolution_trap": "Intégration par trapèzes", + "select_resolution_rk4": "Runge Kutta d'ordre 4", + "select_resolution_euler": "Euler explicite", + "fs_target_data": "Donnée à calculer", + "select_target": "Choix de la donnée à calculer", + "select_target_none": "Aucune", + "select_target_hs": "La charge spécifique (m)", + "select_target_hsc": "La charge critique (m)", + "select_target_b": "La largeur au miroir (m)", + "select_target_p": "Le périmètre mouillé (m)", + "select_target_s": "La surface mouillée (m2)", + "select_target_r": "Le rayon hydraulique (m)", + "select_target_v": "La vitesse moyenne (m/s)", + "select_target_fr": "Le Froude", + "select_target_yc": "Le tirant d'eau critique (m)", + "select_target_yn": "Le tirant d'eau normal (m)", + "select_target_yf": "Le tirant d'eau fluvial (m)", + "select_target_yt": "Le tirant d'eau torrentiel (m)", + "select_target_yco": "Le tirant d'eau conjugué (m)", + "select_target_j": "La perte de charge (m)", + "select_target_i_j": "Variation linéaire de l'énergie spécifique (m/m)", + "select_target_imp": "Impulsion (m/m)", + "select_target_tau0": "La force tractrice (N)" +} \ No newline at end of file diff --git a/src/app/calculators/section-param/section-param.config.json b/src/app/calculators/section-param/section-param.config.json new file mode 100644 index 000000000..446fabc36 --- /dev/null +++ b/src/app/calculators/section-param/section-param.config.json @@ -0,0 +1,167 @@ +[ + { + "id": "fs_section", + "fields": [ + { + "id": "select_section", + "type": "select", + "select": [ + { + "id": "select_section_trapez" + }, + { + "id": "select_section_rect" + }, + { + "id": "select_section_circ" + }, + { + "id": "select_section_para" + } + ] + } + ] + }, + { + "id": "fs_section_trapez", + "option": "var", + "dep_exist": [ + { + "refid": "select_section", + "refvalue": "select_section_trapez" + } + ], + "fields": [ + { + "type": "input", + "id": "LargeurFond", + "unit": "m", + "value": 2.5 + }, + { + "type": "input", + "id": "Fruit", + "unit": "m/m", + "value": 0.56 + } + ] + }, + { + "id": "fs_section_rect", + "option": "var", + "dep_exist": [ + { + "refid": "select_section", + "refvalue": "select_section_rect" + } + ], + "fields": [ + { + "type": "input", + "id": "LargeurFond", + "unit": "m", + "value": 2.5 + } + ] + }, + { + "id": "fs_section_circ", + "option": "var", + "dep_exist": [ + { + "refid": "select_section", + "refvalue": "select_section_circ" + } + ], + "fields": [ + { + "type": "input", + "id": "D", + "unit": "m", + "value": 2 + } + ] + }, + { + "id": "fs_section_para", + "option": "var", + "dep_exist": [ + { + "refid": "select_section", + "refvalue": "select_section_para" + } + ], + "fields": [ + { + "type": "input", + "id": "k", + "unit": "", + "value": 0.5 + }, + { + "type": "input", + "id": "B", + "unit": "m", + "value": 2 + } + ] + }, + { + "id": "fs_bief", + "option": "var", + "fields": [ + { + "type": "input", + "id": "K", + "unit": "m1/3s-1", + "value": 40 + }, + { + "type": "input", + "id": "If", + "unit": "m/m", + "value": 0.001 + }, + { + "type": "input", + "id": "H", + "unit": "m", + "value": 1 + } + ] + }, + { + "id": "fs_hydraulique", + "option": "var", + "fields": [ + { + "type": "input", + "id": "Q", + "unit": "m³/s", + "value": 1.2 + }, + { + "type": "input", + "id": "Y", + "unit": "m", + "value": 0.8 + } + ] + }, + { + "id": "fs_param_calc", + "option": "fix", + "fields": [ + { + "type": "input", + "id": "Pr", + "unit": "m", + "value": 0.001 + } + ] + }, + { + "id": "options", + "idCal": "J" + } +] \ No newline at end of file diff --git a/src/app/calculators/section-param/section-param.fr.json b/src/app/calculators/section-param/section-param.fr.json new file mode 100644 index 000000000..213c48f6f --- /dev/null +++ b/src/app/calculators/section-param/section-param.fr.json @@ -0,0 +1,26 @@ +{ + "fs_section": "Type de section", + "select_section": "Choix du type de section", + "select_section_trapez": "Trapézoïdale", + "select_section_rect": "Rectangulaire", + "select_section_circ": "Circulaire", + "select_section_para": "Parabolique", + "fs_section_trapez": "Définition de la section trapézoïdale", + "LargeurFond": "Largeur au fond", + "Fruit": "Fruit des berges", + "fs_section_rect": "Définition de la section rectangulaire", + "fs_section_circ": "Définition de la section circulaire", + "D": "Diamètre", + "fs_section_para": "Définition de la section parabolique", + "k": "Coefficient", + "B": "Largeur de berge", + "fs_bief": "Caractéristiques du bief", + "K": "Coefficient de Strickler", + "If": "Pente du fond", + "H": "Hauteur de berge", + "fs_hydraulique": "Caractéristiques hydrauliques", + "Q": "Débit", + "Y": "Tirant d'eau", + "fs_param_calc": "Paramètres de calcul", + "Pr": "Précision de calcul" +} \ No newline at end of file -- GitLab