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

Function constrainDirection

src/meshTools/meshTools/meshTools.C:670–684  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

668
669
670void Foam::meshTools::constrainDirection
671(
672 const polyMesh& mesh,
673 const Vector<label>& dirs,
674 vector& d
675)
676{
677 for (direction cmpt=0; cmpt<vector::nComponents; cmpt++)
678 {
679 if (dirs[cmpt] == -1)
680 {
681 d[cmpt] = 0.0;
682 }
683 }
684}
685
686
687void Foam::meshTools::constrainDirection

Callers 5

KinematicParcel.CFile · 0.85
InjectionModel.CFile · 0.85
DSMCParcel.CFile · 0.85
addFunction · 0.85

Calls 1

forAllFunction · 0.50

Tested by

no test coverage detected