diff --git a/src/nub_factory.ts b/src/nub_factory.ts index e41e50dfe529c598eb9dce61c4cdeca7c3d2cf3f..e84c0b724dcdd77ac23afac169015f73088c5192 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`); }