Skip to content
Snippets Groups Projects
Commit 38c10961 authored by francois.grand's avatar francois.grand
Browse files

modifs pour ngHyd par rapport à Kindsvater-Carter & Villemonte

parent e8da0e2a
No related branches found
No related tags found
No related merge requests found
......@@ -22,6 +22,8 @@ export enum ComputeNodeType {
SectionTrapeze, SectionRectangle, SectionCercle, SectionPuissance,
// types d'ouvrages hydrauliques
StructureRectangle,
// ouvrages hydrauliques : Kindsvater-Carter & Villemonte
StructureKIVI
}
/**
......
......@@ -17,6 +17,8 @@ import { ParallelStructureParams } from "./structure/parallel_structure_params";
import { ParallelStructure } from "./structure/parallel_structure";
import { RectangularStructureParams } from "./structure/rectangular_structure_params";
import { StructureCem88d } from "./structure/structure_cem88d";
import { StructureKiviParams } from "./structure/structure_kivi_params";
import { StructureKivi } from "./structure/structure_kivi";
export class ComputeNodeParameters {
......@@ -132,6 +134,13 @@ export class ComputeNodeParameters {
let n = new StructureCem88d(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:
throw new Error(`ComputeNodeParameters.createComputeNodeParameters() : calculatrice '${CalculatorType[calcType]}' / noeud de calcul '${ComputeNodeType[nodeType]}' non pris en charge`);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment