new load class and changes to the code
Moderators: silvia, selimgunay, Moderators
new load class and changes to the code
Dear fmk,
I have made a new load class that is to be used mainly for truss elements (that cannot carry elemental load). The difference is that this load will have as argument the element and not the node like in nodal load. Then it will get and apply equivalent loads in the two end nodes of the element. The question I have is how to apply this load with making the fewest changes to the existing code? This is if I can take advantage of the existing nodal load class in order to make my class to cooperate with it since my class just creates two nodal loads so I do not have to produce more methods in classes like loadpattern.
Thanks a lot in advance,
Panagiotis, UoE
I have made a new load class that is to be used mainly for truss elements (that cannot carry elemental load). The difference is that this load will have as argument the element and not the node like in nodal load. Then it will get and apply equivalent loads in the two end nodes of the element. The question I have is how to apply this load with making the fewest changes to the existing code? This is if I can take advantage of the existing nodal load class in order to make my class to cooperate with it since my class just creates two nodal loads so I do not have to produce more methods in classes like loadpattern.
Thanks a lot in advance,
Panagiotis, UoE
Hello fmk, thanks for your reply.
I made this new elemental load class that takes the eleload from the user. Then in the truss element in the add load method it gets the eleload and it makes 2 equivalent nodal loads, after that the nodal load are added to the nodes. My problem is that when i run i see that it is like the add load method is never called. I also checked with opserr method but it did not appear. I would like to ask you if you can think of possible reasons why the add load method is not called.
Thanks a lot in advance,
Panagiotis, UoE
I made this new elemental load class that takes the eleload from the user. Then in the truss element in the add load method it gets the eleload and it makes 2 equivalent nodal loads, after that the nodal load are added to the nodes. My problem is that when i run i see that it is like the add load method is never called. I also checked with opserr method but it did not appear. I would like to ask you if you can think of possible reasons why the add load method is not called.
Thanks a lot in advance,
Panagiotis, UoE
Dear fmk, thank you for your quick reply and help to my message. I am using the main as I find it more clear for debugging of the developed code. The previous problem is now resolved. However, I would like to ask if the method for adding the nodal loads (myNodePtr->addUnbalancedLoad(*load,loadFactor); that I also use will work in my case if the load changes according to the material properties? Thank you in advance.
PK, UoE
PK, UoE
if you are asking, can modify the load you apply based on material properties .. the answer is yes if your load has a handle on the element and can get the material properties
if you are asking whether you can modify element material properties based on the load, you could again providing you have a handle on the element.
if you are asking whether you can modify element material properties based on the load, you could again providing you have a handle on the element.