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

Function hitWallPatch

src/lagrangian/solidParticle/solidParticle.C:121–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119
120
121void Foam::solidParticle::hitWallPatch
122(
123 const wallPolyPatch& wpp,
124 trackingData& td,
125 const tetIndices& tetIs
126)
127{
128 vector nw = tetIs.faceTri(mesh()).normal();
129 nw /= mag(nw);
130
131 scalar Un = U_ & nw;
132 vector Ut = U_ - Un*nw;
133
134 if (Un > 0)
135 {
136 U_ -= (1.0 + td.cloud().e())*Un*nw;
137 }
138
139 U_ -= td.cloud().mu()*Ut;
140}
141
142
143void Foam::solidParticle::hitPatch

Callers 1

DSMCParcel.CFile · 0.50

Calls 6

meshFunction · 0.85
faceTriMethod · 0.80
eMethod · 0.80
magClass · 0.50
normalMethod · 0.45
muMethod · 0.45

Tested by

no test coverage detected