Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
NTRfC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TFD - Institut für Turbomaschinen und Fluid-Dynamik
tools
NTRfC
Commits
c82a7593
Commit
c82a7593
authored
1 year ago
by
many
Browse files
Options
Downloads
Patches
Plain Diff
move import
parent
62d0bec4
No related branches found
No related tags found
No related merge requests found
Pipeline
#11089
failed
1 year ago
Stage: build
Stage: test
Stage: quality
Stage: docs
Stage: deploy
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ntrfc/meshquality/nondimensionals.py
+2
-2
2 additions, 2 deletions
ntrfc/meshquality/nondimensionals.py
with
2 additions
and
2 deletions
ntrfc/meshquality/nondimensionals.py
+
2
−
2
View file @
c82a7593
...
...
@@ -10,6 +10,7 @@ from itertools import combinations
import
numpy
as
np
import
pyvista
as
pv
import
vtk
from
scipy.spatial
import
KDTree
from
ntrfc.math.vectorcalc
import
vecAbs
,
vecAbs_list
,
vecProjection
,
unitvec
...
...
@@ -119,10 +120,10 @@ def calc_dimensionless_gridspacing(volmesh, surfaces, use_velfield, use_rhofield
print
(
"
finding walladjacent cells
"
)
merged_mesh
=
surfacenormals_surface
+
volmesh
merged_mesh
=
merged_mesh
.
ctp
()
# Compute cell-based derivative of a vector field
derivatives
=
compute_scalar_gradient
(
merged_mesh
,
"
U
"
)
derivatives
=
derivatives
.
ctp
()
# Extract the volumetric mesh of the derivative-field
cell_types
=
merged_mesh
.
celltypes
volumetric_cells
=
np
.
where
(
cell_types
==
vtk
.
VTK_HEXAHEDRON
)[
0
]
...
...
@@ -134,7 +135,6 @@ def calc_dimensionless_gridspacing(volmesh, surfaces, use_velfield, use_rhofield
volmesh_walladjacent
=
volmesh
.
extract_cells
(
walladjacentids
)
volmesh_walladjacent
[
"
cellCenters
"
]
=
volmesh_walladjacent
.
cell_centers
().
points
from
scipy.spatial
import
KDTree
facemesh
=
facemesh
.
extract_surface
().
compute_normals
()
# Extract the cell centers of the wall-adjacent cells and the surface cells
volmesh_walladjacent_centers
=
volmesh_walladjacent
.
cell_centers
().
points
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment