Closed cmoha closed 4 years ago
Hi
Thanks for details.
We can fix it easily. First need to make sure we are using same model. This is same model as BFE example you mentioned, but uniform loads are removed, also a new load is applied on the n1
node:
output for such model in bfe is:
N0
: F:{-3140,0,-375} and M:{0,-13218,0}N4
: F:{-1859,0,375} and M:{0,-9278,0}Can you please analyze this frame in SAP2000 and give me the support reactions output of model?
Thanks
Good day dear,
Code used for generating your model is
[Test]
public void TestMethod4()
{
var model = new Model();
var n0 = new Node(-10, 0, 0);
var n1 = new Node(-10, 0, 6);
var n2 = new Node(0, 0, 8);
var n3 = new Node(10, 0, 6);
var n4 = new Node(10, 0, 0);
model.Nodes.Add(n0, n1, n2, n3, n4);
n0.Constraints = n4.Constraints = Constraints.Fixed;
var secAA = new Sections.UniformGeometric1DSection(SectionGenerator.GetISetion(0.24, 0.67, 0.01, 0.006));
var secBB = new Sections.UniformGeometric1DSection(SectionGenerator.GetISetion(0.24, 0.52, 0.01, 0.006));
var mat = Materials.UniformIsotropicMaterial.CreateFromYoungPoisson(210e9, 0.3);
var e1 = new BarElement(n0, n1) { Material = mat, Section = secAA };
var e2 = new BarElement(n1, n2) { Material = mat, Section = secBB };
var e3 = new BarElement(n2, n3) { Material = mat, Section = secBB };
var e4 = new BarElement(n3, n4) { Material = mat, Section = secAA };
model.Elements.Add(e1, e2, e3, e4);
n1.Loads.Add(new NodalLoad(new Force(5000, 0, 0, 0, 0, 0)));
model.Solve_MPC();
var n0Force = n0.GetSupportReaction();
var n4Force = n4.GetSupportReaction();
Console.WriteLine("Support reaction of n0: {0}", n0Force);
Console.WriteLine("Support reaction of n4: {0}", n4Force);
results from unit test gave
and my output is matching with your output
SAP2000 output gave me
results are varying between 100.67% to 99.03%
I think for such simple model, there should be no error. So i think there is a difference in BFE model and SAP2000 model. Lets check the calculated value of sections.
0.0087 [m2]
, Iy:0.000660 [m4]
, Iz:2.30517-05 [m4]
0.0078 [m2]
, Iy:0.00037466 [m4]
, Iz:2.3049E-05 [m4]
210e9 [Pa]
, Poisson's ratio :0.3
, Shear modulus: 80.77e9 [Pa]
Dimensions are in [m]
and [Pa]
Can you please check these values with your model in SAP2000?
Thanks
Sorry for late reply, these are section properties and material data calculated from sap2000
Calculated geometric and mechanical properties are identical. But seems SAP2000 do not use EulerBernoully formulation for beam by default (have a look at here and here) but this library uses EulerBernoully beam formulation by default. SAP2000 uses a formulation like Timoshenko beam, and maybe the 1% difference is because of that. Can you please set the shear property modifiers of section to zero and check the result again? like what is said in above two links . that way results will be identical I think... Thanks
Hi, Did you check by setting shear property modifiers to zero? That way they should give identical result.
Hi, Yes I have rechecked these parameters and they are now the same values, You can now close this issue. Thank you for your time.
Does the result match for uniform load also? I mean model in first post.
Thanks
Describe the bug
Hello Dear, I have done some hand calculations and SAP2000 of examples given here and here and i don't get same results.
To Reproduce This is the code We've used and caused wrong result/ runtime error
Expected behavior Results of this example are writen Support reaction of n4: F: -37514.9891729259, 0, 51261.532772234, M: 0, -97714.6039503916, 0 but SAP2000 gives me this result