private void button1_Click(object sender, EventArgs e) { if (Mode == 0) { PreprocessingModelling.addMaterials(textBox1.Text, Convert.ToSingle(textBox2.Text), Convert.ToSingle(textBox3.Text), Convert.ToSingle(textBox4.Text)); } else { PreprocessingModelling.editMaterials(Selection, textBox1.Text, Convert.ToSingle(textBox2.Text), Convert.ToSingle(textBox3.Text), Convert.ToSingle(textBox4.Text)); } this.Close(); }
private void loadAnalysisToolStripMenuItem_Click(object sender, EventArgs e) { PreprocessingModelling.addNodes(0, 0, 0); PreprocessingModelling.addNodes(0.5, 0, 0); PreprocessingModelling.addNodes(1, 0, 0); PreprocessingModelling.addNodes(0, 1, 0); PreprocessingModelling.addNodes(0.5, 1, 0); PreprocessingModelling.addNodes(1, 1, 0); PreprocessingModelling.addNodes(0, 0, 1); PreprocessingModelling.addNodes(0.5, 0, 1); PreprocessingModelling.addNodes(1, 0, 1); PreprocessingModelling.addNodes(0, 1, 1); PreprocessingModelling.addNodes(0.5, 1, 1); PreprocessingModelling.addNodes(1, 1, 1); MainInterface.Etopol.Add(0); MainInterface.Etopol.Add(6); MainInterface.Etopol.Add(7); MainInterface.Etopol.Add(1); MainInterface.Etopol.Add(3); MainInterface.Etopol.Add(9); MainInterface.Etopol.Add(10); MainInterface.Etopol.Add(4); MainInterface.Etopol.Add(1); MainInterface.Etopol.Add(7); MainInterface.Etopol.Add(8); MainInterface.Etopol.Add(2); MainInterface.Etopol.Add(4); MainInterface.Etopol.Add(10); MainInterface.Etopol.Add(11); MainInterface.Etopol.Add(5); MainInterface.Etopol_Material.Add(0); MainInterface.Etopol_Material.Add(0); PreprocessingModelling.addNodesLoading(2, 1000, 0, 0); PreprocessingModelling.addNodesLoading(5, 1000, 0, 0); PreprocessingModelling.addNodesLoading(8, 1000, 0, 0); PreprocessingModelling.addNodesLoading(11, 1000, 0, 0); PreprocessingModelling.addNodesBoundaryCondition(0, 1, 1, 1); PreprocessingModelling.addNodesBoundaryCondition(3, 1, 1, 1); PreprocessingModelling.addNodesBoundaryCondition(6, 1, 1, 1); PreprocessingModelling.addNodesBoundaryCondition(9, 1, 1, 1); PreprocessingModelling.addNodesDefinedDisplacement(6, 0, 0, -0.25); PreprocessingModelling.addMaterials(1.ToString(), 70000000, 0.33, 0); }