Commit a4c71644 authored by Grand Francois's avatar Grand Francois
Browse files

NubFactory.createNub() : ajout de Dever

Showing with 11 additions and 1 deletion
+11 -1
......@@ -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`);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment