Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
integration-cfmesh
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Community
integration-cfmesh
Commits
4f46fdff
Commit
4f46fdff
authored
Apr 17, 2017
by
Franjo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Backward compatibility with other distributions
parent
3426919c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
33 additions
and
1 deletion
+33
-1
meshLibrary/Make/options
meshLibrary/Make/options
+5
-1
meshLibrary/utilities/helperClasses/geometry/quadricFitting/quadricFittingI.H
...s/helperClasses/geometry/quadricFitting/quadricFittingI.H
+4
-0
meshLibrary/utilities/smoothers/geometry/meshOptimizer/tetMeshOptimisation/tetMeshOptimisation.C
...y/meshOptimizer/tetMeshOptimisation/tetMeshOptimisation.C
+16
-0
meshLibrary/utilities/triSurfaceTools/triSurface2DCheck/triSurface2DCheck.C
...ies/triSurfaceTools/triSurface2DCheck/triSurface2DCheck.C
+8
-0
No files found.
meshLibrary/Make/options
View file @
4f46fdff
...
@@ -6,7 +6,7 @@ endif
...
@@ -6,7 +6,7 @@ endif
ifeq (OpenFOAM,$(findstring OpenFOAM,$(WM_PROJECT)))
ifeq (OpenFOAM,$(findstring OpenFOAM,$(WM_PROJECT)))
ifeq (Int,$(findstring Int,$(WM_LABEL_OPTION)))
ifeq (Int,$(findstring Int,$(WM_LABEL_OPTION)))
CFMESH_MACROS = -DNoSizeType
CFMESH_MACROS = -DNoSizeType
LIBS =
LIBS =
else
else
CFMESH_MACROS =
CFMESH_MACROS =
...
@@ -14,6 +14,10 @@ ifeq (OpenFOAM,$(findstring OpenFOAM,$(WM_PROJECT)))
...
@@ -14,6 +14,10 @@ ifeq (OpenFOAM,$(findstring OpenFOAM,$(WM_PROJECT)))
endif
endif
endif
endif
ifeq (v, $(findstring v, $(WM_PROJECT_VERSION)))
CFMESH_MACROS += -DOpenCFDSpecific
endif
ifeq ($(WM_PROJECT), foam)
ifeq ($(WM_PROJECT), foam)
VER := $(shell expr `echo $(WM_PROJECT_VERSION)` \>= 3.2)
VER := $(shell expr `echo $(WM_PROJECT_VERSION)` \>= 3.2)
ifeq ($(VER), 1)
ifeq ($(VER), 1)
...
...
meshLibrary/utilities/helperClasses/geometry/quadricFitting/quadricFittingI.H
View file @
4f46fdff
...
@@ -52,7 +52,11 @@ void quadricFitting::calculateNormalVector()
...
@@ -52,7 +52,11 @@ void quadricFitting::calculateNormalVector()
//- estimate the normal as the eigenvector associated
//- estimate the normal as the eigenvector associated
//- to the smallest eigenvalue
//- to the smallest eigenvalue
# ifdef OpenCFDSpecific
normal_
=
eigenVectors
(
mat
,
ev
).
x
();
normal_
=
eigenVectors
(
mat
,
ev
).
x
();
# else
normal_
=
eigenVector
(
mat
,
ev
[
0
]);
# endif
}
}
void
quadricFitting
::
calculateCoordinateSystem
()
void
quadricFitting
::
calculateCoordinateSystem
()
...
...
meshLibrary/utilities/smoothers/geometry/meshOptimizer/tetMeshOptimisation/tetMeshOptimisation.C
View file @
4f46fdff
...
@@ -495,16 +495,32 @@ void tetMeshOptimisation::optimiseBoundaryVolumeOptimizer
...
@@ -495,16 +495,32 @@ void tetMeshOptimisation::optimiseBoundaryVolumeOptimizer
if
(
mag
(
ev
[
2
])
>
(
mag
(
ev
[
1
])
+
mag
(
ev
[
0
]))
)
if
(
mag
(
ev
[
2
])
>
(
mag
(
ev
[
1
])
+
mag
(
ev
[
0
]))
)
{
{
//- ordinary surface vertex
//- ordinary surface vertex
# ifdef OpenCFDSpecific
vector
normal
=
eigenVectors
(
nt
,
ev
).
z
();
vector
normal
=
eigenVectors
(
nt
,
ev
).
z
();
# else
vector
normal
=
eigenVector
(
nt
,
ev
[
2
]);
# endif
normal
/=
(
mag
(
normal
)
+
VSMALL
);
normal
/=
(
mag
(
normal
)
+
VSMALL
);
disp
-=
(
disp
&
normal
)
*
normal
;
disp
-=
(
disp
&
normal
)
*
normal
;
}
}
else
if
(
mag
(
ev
[
1
])
>
0
.
5
*
(
mag
(
ev
[
2
])
+
mag
(
ev
[
0
]))
)
else
if
(
mag
(
ev
[
1
])
>
0
.
5
*
(
mag
(
ev
[
2
])
+
mag
(
ev
[
0
]))
)
{
{
//- this vertex is on an edge
//- this vertex is on an edge
# ifdef OpenCFDSpecific
vector
normal1
=
eigenVectors
(
nt
,
ev
).
y
();
vector
normal1
=
eigenVectors
(
nt
,
ev
).
y
();
# else
vector
normal1
=
eigenVector
(
nt
,
ev
[
1
]);
# endif
normal1
/=
(
mag
(
normal1
)
+
VSMALL
);
normal1
/=
(
mag
(
normal1
)
+
VSMALL
);
# ifdef OpenCFDSpecific
vector
normal2
=
eigenVectors
(
nt
,
ev
).
z
();
vector
normal2
=
eigenVectors
(
nt
,
ev
).
z
();
# else
vector
normal2
=
eigenVector
(
nt
,
ev
[
2
]);
# endif
normal2
/=
(
mag
(
normal2
)
+
VSMALL
);
normal2
/=
(
mag
(
normal2
)
+
VSMALL
);
vector
eVec
=
normal1
^
normal2
;
vector
eVec
=
normal1
^
normal2
;
...
...
meshLibrary/utilities/triSurfaceTools/triSurface2DCheck/triSurface2DCheck.C
View file @
4f46fdff
...
@@ -86,11 +86,19 @@ bool triSurface2DCheck::is2DSurface() const
...
@@ -86,11 +86,19 @@ bool triSurface2DCheck::is2DSurface() const
//- calculate the plane normal as a cross prduct of the two
//- calculate the plane normal as a cross prduct of the two
//- eigenVectors spanning the plane
//- eigenVectors spanning the plane
# ifdef OpenCFDSpecific
const
vector
n
const
vector
n
(
(
eigenVectors
(
covarianceMatrix_
,
eigenVal
).
y
()
^
eigenVectors
(
covarianceMatrix_
,
eigenVal
).
y
()
^
eigenVectors
(
covarianceMatrix_
,
eigenVal
).
z
()
eigenVectors
(
covarianceMatrix_
,
eigenVal
).
z
()
);
);
# else
const
vector
n
(
eigenVector
(
covarianceMatrix_
,
eigenVal
[
1
])
^
eigenVector
(
covarianceMatrix_
,
eigenVal
[
2
])
);
# endif
//- check if the plane is in the x-y plane of the coordinate system
//- check if the plane is in the x-y plane of the coordinate system
if
(
mag
(
n
.
x
())
>
SMALL
||
mag
(
n
.
y
())
>
SMALL
)
if
(
mag
(
n
.
x
())
>
SMALL
||
mag
(
n
.
y
())
>
SMALL
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment