Commit 38c10961 authored by Grand Francois's avatar Grand Francois
Browse files

modifs pour ngHyd par rapport à Kindsvater-Carter & Villemonte

Showing with 11 additions and 0 deletions
+11 -0
...@@ -22,6 +22,8 @@ export enum ComputeNodeType { ...@@ -22,6 +22,8 @@ export enum ComputeNodeType {
SectionTrapeze, SectionRectangle, SectionCercle, SectionPuissance, SectionTrapeze, SectionRectangle, SectionCercle, SectionPuissance,
// types d'ouvrages hydrauliques // types d'ouvrages hydrauliques
StructureRectangle, StructureRectangle,
// ouvrages hydrauliques : Kindsvater-Carter & Villemonte
StructureKIVI
} }
/** /**
......
...@@ -17,6 +17,8 @@ import { ParallelStructureParams } from "./structure/parallel_structure_params"; ...@@ -17,6 +17,8 @@ import { ParallelStructureParams } from "./structure/parallel_structure_params";
import { ParallelStructure } from "./structure/parallel_structure"; import { ParallelStructure } from "./structure/parallel_structure";
import { RectangularStructureParams } from "./structure/rectangular_structure_params"; import { RectangularStructureParams } from "./structure/rectangular_structure_params";
import { StructureCem88d } from "./structure/structure_cem88d"; import { StructureCem88d } from "./structure/structure_cem88d";
import { StructureKiviParams } from "./structure/structure_kivi_params";
import { StructureKivi } from "./structure/structure_kivi";
export class ComputeNodeParameters { export class ComputeNodeParameters {
...@@ -132,6 +134,13 @@ export class ComputeNodeParameters { ...@@ -132,6 +134,13 @@ export class ComputeNodeParameters {
let n = new StructureCem88d(cn); let n = new StructureCem88d(cn);
return cn; return cn;
case ComputeNodeType.StructureKIVI:
{
let cn = new StructureKiviParams(undefined, 1, 2, 1, undefined, undefined, undefined, undefined);
let n = new StructureKivi(cn);
return cn;
}
default: default:
throw new Error(`ComputeNodeParameters.createComputeNodeParameters() : calculatrice '${CalculatorType[calcType]}' / noeud de calcul '${ComputeNodeType[nodeType]}' non pris en charge`); throw new Error(`ComputeNodeParameters.createComputeNodeParameters() : 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