|
[Sponsors] |
![]() |
![]() |
#1 |
New Member
CPark
Join Date: Apr 2021
Location: Germany
Posts: 13
Rep Power: 6 ![]() |
Dear all,
While going through the transport equation of Reynolds stress tensor in SSG model of OpenFOAM foundation distribution, I came across a couple of differences compared to the definition in the original paper by Speziale in 1991. The first difference is from the 4th term: ![]() When I went to look up the definition of innerSqr(), it did not look anything like ![]() The second difference is from the 1st term: simply the ![]() Does anyone know where these differences arise from or why are they implemented as such? Thank you! ckpark Last edited by ckpark; December 9, 2024 at 03:27. |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
Join Date: Apr 2020
Location: UK
Posts: 841
Rep Power: 16 ![]() |
I am not sure which bit you are worried about ... b is a symmetric tensor
Code:
inline Foam::SymmTensor<Cmpt>::SymmTensor ( const Cmpt txx, const Cmpt txy, const Cmpt txz, const Cmpt tyy, const Cmpt tyz, const Cmpt tzz ) { this->v_[XX] = txx; this->v_[XY] = txy; this->v_[XZ] = txz; this->v_[YY] = tyy; this->v_[YZ] = tyz; this->v_[ZZ] = tzz; } so ![]() Code:
//- Inner-sqr of a symmetric tensor template<class Cmpt> inline SymmTensor<Cmpt> innerSqr(const SymmTensor<Cmpt>& st) { return SymmTensor<Cmpt> ( st.xx()*st.xx() + st.xy()*st.xy() + st.xz()*st.xz(), st.xx()*st.xy() + st.xy()*st.yy() + st.xz()*st.yz(), st.xx()*st.xz() + st.xy()*st.yz() + st.xz()*st.zz(), st.xy()*st.xy() + st.yy()*st.yy() + st.yz()*st.yz(), st.xy()*st.xz() + st.yy()*st.yz() + st.yz()*st.zz(), st.xz()*st.xz() + st.yz()*st.yz() + st.zz()*st.zz() ); } And then in OF, dev(F) returns ![]() ![]() Am I missing something? Perhaps I misunderstood your initial question? |
|
![]() |
![]() |
![]() |
![]() |
#3 |
New Member
CPark
Join Date: Apr 2021
Location: Germany
Posts: 13
Rep Power: 6 ![]() |
||
![]() |
![]() |
![]() |
![]() |
#4 |
Senior Member
Join Date: Apr 2020
Location: UK
Posts: 841
Rep Power: 16 ![]() |
For a symmetric tensor, like
![]() ![]() ![]() ![]() Why not just use &? I guess because innerSqr uses the symmetric tensor storage form, and is more compact? Dunno. As for the second question, if the flow is incompressible (as was Speziale et al's assumption in their paper), then ![]() ![]() |
|
![]() |
![]() |
![]() |
Tags |
innersqr, openfoam, rsm, ssg |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
whats the cause of error? | immortality | OpenFOAM Running, Solving & CFD | 13 | March 24, 2021 07:15 |
[swak4Foam] swakExpression not writing to log | alexfells | OpenFOAM Community Contributions | 3 | March 16, 2020 18:19 |
[mesh manipulation] RefineMesh Error and Foam warning | jiahui_93 | OpenFOAM Meshing & Mesh Conversion | 4 | March 3, 2018 11:32 |
[mesh manipulation] refineMesh Error | mohsen.boojari | OpenFOAM Meshing & Mesh Conversion | 3 | March 1, 2018 22:07 |
is internalField(U) equivalent to zeroGradient? | immortality | OpenFOAM Running, Solving & CFD | 7 | March 29, 2013 01:27 |