MCPcopy Create free account
hub / github.com/OpenFOAM/OpenFOAM-dev / innerSqr

Function innerSqr

src/OpenFOAM/primitives/SymmTensor/SymmTensorI.H:259–273  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

257//- Inner-sqr of a symmetric tensor
258template<class Cmpt>
259inline SymmTensor<Cmpt>
260innerSqr(const SymmTensor<Cmpt>& st)
261{
262 return SymmTensor<Cmpt>
263 (
264 st.xx()*st.xx() + st.xy()*st.xy() + st.xz()*st.xz(),
265 st.xx()*st.xy() + st.xy()*st.yy() + st.xz()*st.yz(),
266 st.xx()*st.xz() + st.xy()*st.yz() + st.xz()*st.zz(),
267
268 st.xy()*st.xy() + st.yy()*st.yy() + st.yz()*st.yz(),
269 st.xy()*st.xz() + st.yy()*st.yz() + st.yz()*st.zz(),
270
271 st.xz()*st.xz() + st.yz()*st.yz() + st.zz()*st.zz()
272 );
273}
274
275
276template<class Cmpt>

Callers 4

mainFunction · 0.50
SSG.CFile · 0.50
correctNonlinearStressFunction · 0.50
correctNonlinearStressFunction · 0.50

Calls 1

xyMethod · 0.80

Tested by 1

mainFunction · 0.40