From a4c7164418f26e859502999f3c3655e0ca5abf84 Mon Sep 17 00:00:00 2001
From: "francois.grand" <francois.grand@irstea.fr>
Date: Fri, 29 Jun 2018 16:27:19 +0200
Subject: [PATCH] NubFactory.createNub() : ajout de Dever

---
 src/nub_factory.ts | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/src/nub_factory.ts b/src/nub_factory.ts
index e41e50df..e84c0b72 100644
--- a/src/nub_factory.ts
+++ b/src/nub_factory.ts
@@ -19,7 +19,7 @@ import { StructureType, LoiDebit } from "./structure/structure_props";
 import { Structure } from "./structure/structure";
 import { ParallelStructure } from "./structure/parallel_structure";
 import { ParallelStructureParams } from "./structure/parallel_structure_params";
-import { RectangularStructureParams } from "./structure/structure_cem88d";
+import { DeverParams, Dever } from "./structure/dever";
 
 export class NubFactory {
     private _defaultPrecision: number = 0.001;
@@ -284,6 +284,16 @@ export class NubFactory {
                     return new ParallelStructure(prms);
                 }
 
+            case CalculatorType.Dever:
+                {
+                    const prms = new DeverParams(0.5, // Q
+                        102, // Z1
+                        10, // BR
+                        1 // ZR
+                    );
+                    return new Dever(prms);
+                }
+
             default:
                 throw new Error(`NubFactory.createNub() : calculatrice '${CalculatorType[calcType]}' / noeud de calcul '${ComputeNodeType[nodeType]}' non pris en charge`);
         }
-- 
GitLab