|
[Sponsors] |
OF 3.0.x: The tetLambda() function in particleTemplates.C |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 18, 2016, 11:44 |
OF 3.0.x: The tetLambda() function in particleTemplates.C
|
#1 |
Member
Join Date: Jul 2011
Posts: 54
Rep Power: 15 |
Hey everyone,
I am right now trying to understand the hitWallFaces() function in particleTemplates.C of the lagrangian tree. It is checked whether a particle hits a face that belongs to a wall or not. I think that I understand most of the code until the tetLambda() function is called as follows: Code:
scalar tetClambda = tetLambda ( tetIs.tet(mesh_).centre(), toPlusRNHat, 0, n, f[tetIs.faceBasePt()], cellI_, fI, tetIs.tetPt(), lambdaDistanceTolerance ); Code:
toPlusRNHat = to + r*nHat What tetLambda now does (as far as I've understood and please correct me if I'm wrong) is to check whether "toPlusRNHat" is behind the considered wall face outside of the domain. I have checked for multiple triangles and I see that the triangle normal vector "nHat" is always pointing into the simulation domain. To me this means that "toPlusRNHat" is always more inside of the domain than "to" (the wanted position of the particle when there is no hit of a face) is. To my understanding it would make more sense if Code:
toPlusRNHat = to - r*nHat Since then the particle would mean to hit a face as soon as its outer radius hits the face. Does anybody have any expierence with this class? Thank you very much in advance. Best regards, Andreas |
|
May 24, 2016, 03:57 |
|
#2 |
Member
Join Date: Jul 2011
Posts: 54
Rep Power: 15 |
Has anybody worked on this and some hints for me?
In my opinion, since the normal vector "n" of a triangle points inwards into the domain (this may be contrary to face normal vectors), toPlusRNHat should be defined as: Code:
toPlusRNHat =to - r*nHat |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Lets talk about relaxation factor optimization | chriss85 | OpenFOAM Running, Solving & CFD | 35 | June 21, 2019 10:54 |
[blockMesh] error message with modeling a cube with a hold at the center | hsingtzu | OpenFOAM Meshing & Mesh Conversion | 2 | March 14, 2012 10:56 |
ParaView for OF-1.6-ext | Chrisi1984 | OpenFOAM Installation | 0 | December 31, 2010 07:42 |
Compilation errors in ThirdPartymallochoard | feng_w | OpenFOAM Installation | 1 | January 25, 2009 07:59 |
Problem with compile the setParabolicInlet | ivanyao | OpenFOAM Running, Solving & CFD | 6 | September 5, 2008 21:50 |