MCPcopy Create free account
hub / github.com/OpenSees/OpenSees / setParameter

Method setParameter

SRC/element/componentElement/ComponentElement3d.cpp:1697–1724  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1695}
1696
1697int
1698ComponentElement3d::setParameter(const char **argv, int argc, Parameter &param)
1699{
1700 if (argc < 1)
1701 return -1;
1702
1703 // E of the beam interior
1704 if (strcmp(argv[0],"E") == 0)
1705 return param.addObject(1, this);
1706
1707 // A of the beam interior
1708 if (strcmp(argv[0],"A") == 0)
1709 return param.addObject(2, this);
1710
1711 // I of the beam interior
1712 if (strcmp(argv[0],"Iz") == 0)
1713 return param.addObject(3, this);
1714 if (strcmp(argv[0],"Iy") == 0)
1715 return param.addObject(4, this);
1716
1717 if (strcmp(argv[0],"G") == 0)
1718 return param.addObject(5, this);
1719
1720 if (strcmp(argv[0],"J") == 0)
1721 return param.addObject(6, this);
1722
1723 return -1;
1724}
1725
1726int
1727ComponentElement3d::updateParameter (int parameterID, Information &info)

Callers

nothing calls this directly

Calls 1

addObjectMethod · 0.45

Tested by

no test coverage detected