|
[Sponsors] |
March 4, 2020, 05:40 |
|
#21 | |
Senior Member
|
Quote:
Now I need to implement the wall shear stress for solid phase (twophaseeulerfoam) through a source term in the momentum equation. The wall shear stress can be obtained via the following formular: Sp=Tauw=alpha1*rho1*st*(U1.component(2).boundaryFi eld ()[patchi].patchInternalField()) *(U1.boundaryField()[patchi].patchInternalField() - U1.boundaryField()[patchi]) where "st" is the friction factor which should be calculated ieratively through for (int i=0; i<10; i++) { st = sqr(kappa)/Log(E*Res*sqrt(st)); } where "Res" is the Reynolds number of solid which calculated by Res=rho1*U1.component(2).boundaryField()[patchi].patchInternalField()*y[facei]/mus However, now I wrote the codes in the Uequation but cannot be compiled. Anyone can give me some suggestions? |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Radiation interface | hinca | CFX | 15 | January 26, 2014 18:11 |
Compile problem | ivanyao | OpenFOAM Running, Solving & CFD | 1 | October 12, 2012 10:31 |
channelFoam for a 3D pipe | AlmostSurelyRob | OpenFOAM | 3 | June 24, 2011 14:06 |
[blockMesh] Axisymmetrical mesh | Rasmus Gjesing (Gjesing) | OpenFOAM Meshing & Mesh Conversion | 10 | April 2, 2007 15:00 |
Quick Question - Wall Function | D.Tandra | Main CFD Forum | 2 | March 16, 2004 05:29 |