quickmain modification
Moderators: silvia, selimgunay, Moderators
quickmain modification
Hi all, I tried to modify the example 1 given in quickmain in opensees source with a basic example (like example 2) with elastic beam elements. My problem is that when i try to build the solution, the compliler says that ''Cannot open include file: 'ElasticBeam2d.h': No such file or directory''. I would like to ask you if you know why this happens.
Thanks in advance,
Panagiotis, University of Edinburgh
Thanks in advance,
Panagiotis, University of Edinburgh
Dear fmk, i use vs2005. I know about the location of the elastic beam element. When i use an #include "C:\Documents and Settings\... there is no problem with the header file but when i use #include <ElasticBeam2d.h> it seems that it cannot find it which is weird as there is no problem with the truss.h. I am thinking maybe this is because of main.cpp is located in EXAMPLES\Example1 and not in SRC as the element does?
Dear fmk thank you very much for your suggestion, elasticbeam was actually not included.
I would like also to ask you something else. I want to dynamically construct an ElementalLoad object as you do with the NodalLoad object in example 1 however the way you do it cannot be done with elementalload because it is an abstract class and it cannot be instantiated. Do you have any suggestion on how to do that? Thank you in advance.
I would like also to ask you something else. I want to dynamically construct an ElementalLoad object as you do with the NodalLoad object in example 1 however the way you do it cannot be done with elementalload because it is an abstract class and it cannot be instantiated. Do you have any suggestion on how to do that? Thank you in advance.
Re: quickmain modification
[quote="pankotso"]Hi all, I tried to modify the example 1 given in quickmain in opensees source with a basic example (like example 2) with elastic beam elements. My problem is that when i try to build the solution, the compliler says that ''Cannot open include file: 'ElasticBeam2d.h': No such file or directory''. I would like to ask you if you know why this happens.
Thanks in advance,
Panagiotis, University of Edinburgh[/quote]
I tried to modify the given example,too. But I don't know how can I recode the information of nodes or elements, can you give me an example.
Thank you very much.
fluozhen, University of NUAA,Nanjing,China
Thanks in advance,
Panagiotis, University of Edinburgh[/quote]
I tried to modify the given example,too. But I don't know how can I recode the information of nodes or elements, can you give me an example.
Thank you very much.
fluozhen, University of NUAA,Nanjing,China
Thank you fmk. I can create an instance from the derived class. What i used is ElementalLoad *theEleLoad = new Beam2dUniformLoad(1,-1000,0,1); //udl=-1000N/m . Is this correct?
I also encounter some problems in the element construction with the intergration and the fibers. I use the following code to construct it:
DispBeamColumn2d *DispBeamColumn2d1 = new DispBeamColumn2d(1, 1, 2, 1,&theSection, *Lobatto, *CrdTransf2d1);
For the integration I can create an integration object by BeamIntegration *Lobatto = new LobattoBeamIntegration();
but it does not have any parameter for the nIP.
For the fiber section:
SectionForceDeformation *theSection = new FiberSection2d(1, 1, theFibers)
Then I construct the fibers like below but i do not have succeded in combining them to an array like theFibers(4) to use it for theSection. What should i do?
Fiber *fiber1 = new UniaxialFiber2d(1, *theMaterial, 0.00165, -0.147);
Fiber *fiber2 = new UniaxialFiber2d(2, *theMaterial, 0.000852, -0.147);
Fiber *fiber3 = new UniaxialFiber2d(3, *theMaterial, 0.000852, -0.147);
Fiber *fiber4 = new UniaxialFiber2d(4, *theMaterial, 0.00165, -0.147);
Thank you very much for all your help.
I also encounter some problems in the element construction with the intergration and the fibers. I use the following code to construct it:
DispBeamColumn2d *DispBeamColumn2d1 = new DispBeamColumn2d(1, 1, 2, 1,&theSection, *Lobatto, *CrdTransf2d1);
For the integration I can create an integration object by BeamIntegration *Lobatto = new LobattoBeamIntegration();
but it does not have any parameter for the nIP.
For the fiber section:
SectionForceDeformation *theSection = new FiberSection2d(1, 1, theFibers)
Then I construct the fibers like below but i do not have succeded in combining them to an array like theFibers(4) to use it for theSection. What should i do?
Fiber *fiber1 = new UniaxialFiber2d(1, *theMaterial, 0.00165, -0.147);
Fiber *fiber2 = new UniaxialFiber2d(2, *theMaterial, 0.000852, -0.147);
Fiber *fiber3 = new UniaxialFiber2d(3, *theMaterial, 0.000852, -0.147);
Fiber *fiber4 = new UniaxialFiber2d(4, *theMaterial, 0.00165, -0.147);
Thank you very much for all your help.
Re: quickmain modification
[quote="fluozhen"][quote="pankotso"]Hi all, I tried to modify the example 1 given in quickmain in opensees source with a basic example (like example 2) with elastic beam elements. My problem is that when i try to build the solution, the compliler says that ''Cannot open include file: 'ElasticBeam2d.h': No such file or directory''. I would like to ask you if you know why this happens.
Thanks in advance,
Panagiotis, University of Edinburgh[/quote]
I tried to modify the given example,too. But I don't know how can I recode the information of nodes or elements, can you give me an example.
Thank you very much.
fluozhen, University of NUAA,Nanjing,China[/quote]
I got it.
Thanks in advance,
Panagiotis, University of Edinburgh[/quote]
I tried to modify the given example,too. But I don't know how can I recode the information of nodes or elements, can you give me an example.
Thank you very much.
fluozhen, University of NUAA,Nanjing,China[/quote]
I got it.