Closed kkorus94 closed 4 years ago
Hi, There are two issues, can you please edit your code accordingly:
Model.Solve_MPC()
instead of Model.Solve()
BriefFiniteElementNet.Controls.BarInternalForceVisualizer.VisualizeInNewWindow(elm);
Hello, Thank You for your response.
I've just tried solving two methods (of two issues) with Model.Solve_MPC()
, but the results are still the same.
These are the results of forces visualizations of the first issue:
Other forces are 0. It seems that Fx is just reversed - it's the biggest on the loose, higher end of the column (and given the uniformLoad on the -z vector, it should be the biggest on the constraint, like the other forces).
The second issue:
Model.Solve_MPC()
doesn't change anything as well.
I've tried to get forces at more parameters on the loaded bar since the free bars' forces are correct.
These are results (with two loads in two load cases, like in the code above)
Since the magnitudes of the loads are 1 and 2 and the bar length is 10, "combined force value" is 1x10 + 2x10 = 30. It seems that the results of Fz are just combined, there is no difference between load cases. However, My value is disturbed in another way, but I don't know how.
Forces visualizations (for the loaded element e11
):
Fz values on the chart are the same as these got by GetExactInternalForceAt
- combination od two load cases. The strange thing is that values of My on the chart are other that outcomes of the method - max is about 25 and min about -12,5 - it's not corresponding to any outcome of GetExactInternalForceAt
.
I've observed that the problem exists even if one of the load cases is empty (I've commented one of the loads in each case). Values of not-loaded elements are still correct, however loaded bars have still some strange values coming from nowhere.
Again, thank You for your quick response :). I hope that this problem can be resolved.
I've updated this visualizer to show internal force for specific LoadCase
, can you please check with updated code?
in the BarElementInternalForceVisualizer
form, Exact
internal force uses GetExactInternalForceAt()
and Approximate
uses BarElement.GetInternalForceAt()
methods
BarElementInternalForceVisualizer
now visualizes values, that are corresponding to GetExactInternalForceAt()
. Nevertheless, the values of GetExactInternalForceAt()
of the loaded bars are still calculated incorrectly. As I've written - values of Fz are the sum of both loadcases and values of My are calculated in another, incorrect way. Something must be disturbing calculations on loaded bars.
Hi, Yes you are right. ExactInternalForce was calculating for sum of all load cases not a single one, code fixed like this in c80b867
foreach (var load in this.Loads)
if (load.Case == loadCase)//this line is added to ln#1002 of file BarElement.cs
foreach (var helper in helpers)
Hello, Yes, now it's working perfectly, thank You a lot :). Have You been thinking as well about the other issue concerning column and reversed results of forces (described in the first post in this discussion)?
Do you mean that moment and shear internal forces are calculated correctly, but axial internal force is calculated reversed?
Yes, all values are correct, but axial forces are "reversed".
It should be fixed in 93e15d2.
Can you please do same checks with ConcentratedLoad
as well?
Thanks
This beam and truss internal force is nightmare. it had so many bugs, i think i had to first start documentation for this part instead of starting code. Anyways if there is a documentation for internal force of element with body loads effect, then it have worth to put them here.
Now it's working correctly, with uniform and nodal loads. Thank You very much. If You want me to make any further tests with my code, just let me know in this issue ;).
Can you please check and see if there is same issue with ConcentratedLoad
applying on a BarElement
? It is possible to there be same problem (internal force being reversed) when ConcentratedLoad
applied on a BarElement
, like this issue that axial internal force was reversely shown.
Thanks
Sorry, I thought that as a "concentrated load" You mean NodalLoad
. I've never used ConcentraedLoad
before.
But yes, there the problem still exists.
I've applied it to the column described before (node n1 with fixed constraint, n2 free, length of element: 5)
ConcentratedLoad concentratedLoad = new ConcentratedLoad()
{
CoordinationSystem = CoordinationSystem.Global,
Force = new Force(0,1,-1,0,0,0),
ForceIsoLocation = new IsoPoint(0)
};
e.Loads.Add(concentratedLoad);
So, the axial force is reversed. There are also two other issues with that:
If I try to get forces at parameter 0 (so, at the paint of concentrated load application), such an exception is thrown:
System.Exception: 'Internal force is descrete at xi = 0, thus have two values in this location. try to find internal force a little bit after or before this point'
BriefFiniteElementNet.Controls.BarInternalForceVisualizer.VisualizeInNewWindow(e);
is not showing exact forces, just blank pages with no chart-lines.
Hi,
There were some edits on code, can you please verify again with this concentrated load being reversed?
As I checked with BarInternalForceVisualizer.VisualizeInNewWindow
the result was not reversed neither anymore for axial force or shaft torsion. If any problem please feel free to reopen the issued.
Thanks
Hello,
Firstly, as this is my first post here, I would like to thank you for this project. It's a grat job and it has great potential to use.
During my work, I've detected two errors:
First - GetExactInternalForcesAt() with multiple loads. I've created a column with one fixed constraint at the "bottom node". It's loaded with two uniform loads - first of them simulates self-weight, the second one is perpendicular to the column.
Support reactions are correct, but forces at parameters seem to be reversed. if parameter -1 is a "starting parameter" of a beam, Fx at -0.99999 should be close to -5, Fz close to -50 and My close to 125. However, values of Fx are reversed - the one at -0.9999 should be the one at 0.9999 and so on.
The second issue - Incorrect values of external forces in the case of multiple loadcases with elemental loads.
I've created a 3D structure and applied two loads to one of its bars - each load is in another load case. Loads are similar, just the amount of one is two times bigger than the other.
Created structure:![2020-06-09_12h45_36](https://user-images.githubusercontent.com/48924657/84138780-251cbc80-aa4f-11ea-8199-75a8865ad2a2.png)
Model is solved with no errors, however, the values of bars forces are incorrect on the bars, where the loads are applied. Free of external loads bars values are correct.
The problem doesn't appear with nodal loads.
Thank You in advance!