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

Method revertToStart

SRC/material/nD/ASDConcrete3DMaterial.cpp:1795–1841  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1793}
1794
1795int ASDConcrete3DMaterial::revertToStart(void)
1796{
1797 // State variables
1798 svt.reset();
1799 svt_commit.reset();
1800 svt_commit_old.reset();
1801 svc.reset();
1802 svc_commit.reset();
1803 svc_commit_old.reset();
1804
1805 // Time step
1806 dtime_n = 0.0;
1807 dtime_n_commit = 0.0;
1808 dtime_0 = 0.0;
1809 dtime_is_user_defined = false;
1810
1811 // Commit flag
1812 commit_done = false;
1813
1814 // IMPL-EX error
1815 implex_error = 0.0;
1816
1817 // Strain, Stress and Tangent
1818 strain.Zero();
1819 strain_commit.Zero();
1820 stress.Zero();
1821 stress_eff.Zero();
1822 stress_eff_commit.Zero();
1823 C = getInitialTangent();
1824 PT_commit.Zero();
1825 for (int i = 0; i < 6; ++i)
1826 PT_commit(i, i) = 0.5;
1827 R_commit = 0.0;
1828
1829 // Output variables
1830 dt_bar = 0.0;
1831 dc_bar = 0.0;
1832 xt_max = 0.0;
1833 xt_max_commit = 0.0;
1834 xc_max = 0.0;
1835 xc_max_commit = 0.0;
1836 iso_crack_normal.Zero();
1837 iso_crush_normal.Zero();
1838
1839 // Done
1840 return 0;
1841}
1842
1843NDMaterial * ASDConcrete3DMaterial::getCopy(void)
1844{

Callers

nothing calls this directly

Calls 3

getInitialTangentFunction · 0.85
resetMethod · 0.45
ZeroMethod · 0.45

Tested by

no test coverage detected