# strupy / ascomp

###Description Function calculate longitudinal reinforcement for rectangular section with eccentric compression load. Crack control optional included.

```input (Nsd=10.0*u.kN, Msd=200.0*u.kNm, h=0.8*u.m, b=0.4*u.m, a1=5*u.cm ,a2=5*u.cm ,rysA1=1.0 ,rysA2=1.0 ,fi1=20*u.mm ,fi2=20*u.mm ,wlim1=0.3*u.mm ,wlim2=0.3*u.mm, fcd=16.7*u.MPa, fctm=2.2*u.MPa, fyd=420*u.MPa)

out {"A1": A1, "A2": A2, "ksieff": ksieff, "mimos": mimos, "rys": rys, "w": w, "sigmas": sigmas, "srm": srm, "ror": ror, "Ncr": Ncr}
```

###Use examples

```In [1]: from strupy.concrete.ascomp import ascomp

In [2]: import strupy.units as u

In [3]: ascomp(Nsd=10.0*u.kN, Msd=200.0*u.kNm, h=0.8*u.m, b=0.4*u.m, a1=5*u.cm ,a2=5*u.cm ,rysA1=1.0 ,rysA2=1.0 ,fi1=20*u.mm ,fi2=20*u.mm ,wlim1=0.3*u.mm ,wlim2=0.3*u.mm, fcd=16.7*u.MPa, fctm=2.2*u.MPa, fyd=420*u.MPa)
Out[3]:
{'A1':  8.91 [cm2],
'A2':  0.00 [m2],
'Ncr': 4662.25 [N],
'ksieff': 0.055710160985233514,
'mimos': -1,
'ror':  0.02 [],
'rys': 1,
'sigmas': 24.17 [kN/cm2],
'srm':  0.16 [m],
'w':  0.00 [m]}
```

Updated