Skip to content

Commit

Permalink
Disable normals vectors for non-analytic velocity fields
Browse files Browse the repository at this point in the history
  • Loading branch information
tobre1 committed Feb 13, 2025
1 parent 1af374b commit 024810b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/viennaps/psProcess.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,9 @@ template <typename NumericType, int D> class Process {
advectionKernel.setSaveAdvectionVelocities(advectionParams.velocityOutput);
advectionKernel.setDissipationAlpha(advectionParams.dissipationAlpha);
advectionKernel.setIgnoreVoids(advectionParams.ignoreVoids);
// normals vectors are only necessary for analytical velocity fields
if (model->getVelocityField()->getTranslationFieldOptions() > 0)
advectionKernel.setCalculateNormalVectors(false);

for (auto dom : domain->getLevelSets()) {
meshConverter.insertNextLevelSet(dom);
Expand Down

0 comments on commit 024810b

Please sign in to comment.