test_structure_cem88d.ts 1.69 KiB
import { Result } from "../../src/base";
import { RectangularStructureParams, StructureCem88d } from "../../src/structure/structure_cem88d";
import { describe, xdescribe } from "../mock_jasmine";
import { precDigits } from "../nubtest";
import { itCalcQ } from "./test_rectangular_structure";
const structPrm: RectangularStructureParams = new RectangularStructureParams(1, 1, 1, 2, 0.6, 0);
const structTest: StructureCem88d = new StructureCem88d(structPrm, true);
describe("Class StructureCem88d: ", () => {
    describe("Calcul Q avec W croissant: ", () => {
        const W: number[] = [0.000000, 0.100000, 0.200000, 0.300000, 0.400000, 0.500000,
            0.600000, 0.700000, 0.800000, 0.900000, 1.000000, 1.100000, 1.200000, 1.300000];
        const h1: number = 1.200000;
        const Q: number[] = [0.000000, 0.617586, 1.235173, 1.852759, 2.470345, 3.087931, 3.705518,
            4.296608, 4.831177, 5.302464, 5.700445, 6.007777, 6.175863, 6.175863];
        for (let i = 0; i < Q.length; i++ ) {
            itCalcQ(structTest, h1, W[i], Q[i]);
    });
    describe("Calcul Q en charge avec h1 croissant: ", () => {
        const W: number = 0.8;
        const h1: number[] = [1.050000, 1.300000, 1.500000];
        const Q: number[] = [2.470345, 5.684601, 6.651906];
        for (let i = 0; i < Q.length; i++ ) {
            itCalcQ(structTest, h1[i], W, Q[i]);
    });
    describe("Calcul Q a surface libre avec h1 croissant: ", () => {
        const W: number = Infinity;
        const h1: number[] = [1.100000, 1.500000];
        const Q: number[] = [4.366994, 9.764896];
        for (let i = 0; i < Q.length; i++ ) {
            itCalcQ(structTest, h1[i], W, Q[i]);
    });
});