Skip to content

Reply To: SuperLatticePhysWallShearStress3D() returns norm of wall shear stress tensor

OpenLB – Open Source Lattice Boltzmann Code Forums on OpenLB General Topics SuperLatticePhysWallShearStress3D() returns norm of wall shear stress tensor Reply To: SuperLatticePhysWallShearStress3D() returns norm of wall shear stress tensor

#5491
jonathan
Participant

I think I misunderstood your question there, sorry. If I now understand correctly you just want it to give you the vector components and not the magnitude. Go to the file I linked above (BlockLatticePhysWallShearStress3D) and look for

WSS[0] = traction[0] - tractionNormalComponent[0]; 
WSS[1] = traction[1] - tractionNormalComponent[1];
WSS[2] = traction[2] - tractionNormalComponent[2];

Replace WSS with output and remove the line with output[0] = sqrt(…). Then you need to increase the functor dimension of both Super and BlockLatticePhysWallShearStress3D to 3 in order to have 3 output components.

Hope this clarifies, as I originally thought you needed the stress tensor.

Best
Jonathan