Exemplo n.º 1
0
        private static CantileverBeam BuildCantileverBenchmark()
        {
            var benchmarkBuilder = new CantileverBeam.Builder();

            //benchmarkBuilder.Length = 5.0;
            return(benchmarkBuilder.BuildWithQuad4Elements(200, 10));
        }
        private static Model CreateModel()
        {
            int numElementsX = 2, numElementsY = 4; // for the hardcoded stiffness matrices

            var cantileverBuilder = new CantileverBeam.Builder();

            cantileverBuilder.Length       = numElementsX;
            cantileverBuilder.Height       = numElementsY;
            cantileverBuilder.Width        = 1.0;
            cantileverBuilder.YoungModulus = 1.0;
            cantileverBuilder.PoissonRatio = 0.3;
            CantileverBeam cantilever = cantileverBuilder.BuildWithQuad4Elements(numElementsX, numElementsY);

            return(cantilever.Model);
        }