## How do I construct a fiber section dispBeamColumn?

For developers writing C++, Fortran, Java, code who have questions or comments to make.

Moderators: silvia, selimgunay, Moderators

Random
Posts: 7
Joined: Thu Sep 22, 2016 4:58 am
Location: Huazhong University of Science and Technology
Contact:

### How do I construct a fiber section dispBeamColumn?

UniaxialMaterial **theMaterial =new UniaxialMaterial*[3];
theMaterial[0]=new Concrete01(1,-41.4,-0.004,-34.5,-0.014);
theMaterial[1]=new Concrete01(2,-34.5,-0.002,0,-0.006);
theMaterial[2]=new Steel01(3,414,206000,0.01);
CrdTransf *coordTransf=new LinearCrdTransf2d(1);
BeamIntegration *bi=new LegendreBeamIntegration();
//RCSectionIntegration(double d, double b, double Atop, double Abottom,double Aside, double cover,
// int Nfcore, int Nfcover, int Nfs);
SectionIntegration *si=new RCSectionIntegration(400,400,315,315,315,35,10,10,8);
SectionForceDeformation **s=new SectionForceDeformation *[1];
//FiberSection2d(int tag, int num, UniaxialMaterial **mats,SectionIntegration &si):
s[0]=new FiberSection2d(1,3,theMaterial,*si);
//DispBeamColumn2d(int tag, int nd1, int nd2,int numSections, SectionForceDeformation **s,
// BeamIntegration &bi, CrdTransf &coordTransf,double rho = 0.0, int cMass = 0);
DispBeamColumn2d *beamcolumn1=new DispBeamColumn2d(1,1,2,1,s,*bi,*coordTransf);

I konw that is wrong to construct DispBeamColumn2d,but I don't konw how to make it right.Does anyone can help me or tell me the meaning of every parameter?
Thanks

fmk
Posts: 5866
Joined: Fri Jun 11, 2004 2:33 pm
Location: UC Berkeley
Contact:

### Re: How do I construct a fiber section dispBeamColumn?

it is not wrong to construct an element!!!

the constructor from the header file:

DispBeamColumn2d(int tag, int nd1, int nd2,
int numSections, SectionForceDeformation **s,
BeamIntegration &bi, CrdTransf &coordTransf,
double rho = 0.0, int cMass = 0);

the meaning of the parameters is pretty obvious, i cannot think that you would need help understanding any given the information shown above.
note: if you use 1 section, as you are doing, you get one point integration!

Random
Posts: 7
Joined: Thu Sep 22, 2016 4:58 am
Location: Huazhong University of Science and Technology
Contact:

### Re: How do I construct a fiber section dispBeamColumn?

Thanks,fmk.What makes me confused is the RCSectionIntegration and FiberSection2d.I am not quite clear about the int Nfcore int Nfs and int num.In tcl we need to tell the position of the fibers,but here I don't know where the fibers(concrete and steel) are.