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
3426919c
Commit
3426919c
authored
Oct 14, 2016
by
Philippose
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Porting to OpenFOAM-v1606+ ... change in the eigenvector API
parent
fbad999d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
meshLibrary/utilities/helperClasses/geometry/quadricFitting/quadricFittingI.H
...s/helperClasses/geometry/quadricFitting/quadricFittingI.H
+1
-1
meshLibrary/utilities/smoothers/geometry/meshOptimizer/tetMeshOptimisation/tetMeshOptimisation.C
...y/meshOptimizer/tetMeshOptimisation/tetMeshOptimisation.C
+3
-3
meshLibrary/utilities/triSurfaceTools/triSurface2DCheck/triSurface2DCheck.C
...ies/triSurfaceTools/triSurface2DCheck/triSurface2DCheck.C
+2
-2
No files found.
meshLibrary/utilities/helperClasses/geometry/quadricFitting/quadricFittingI.H
View file @
3426919c
...
@@ -52,7 +52,7 @@ void quadricFitting::calculateNormalVector()
...
@@ -52,7 +52,7 @@ 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
normal_
=
eigenVector
(
mat
,
ev
[
0
]
);
normal_
=
eigenVector
s
(
mat
,
ev
).
x
(
);
}
}
void
quadricFitting
::
calculateCoordinateSystem
()
void
quadricFitting
::
calculateCoordinateSystem
()
...
...
meshLibrary/utilities/smoothers/geometry/meshOptimizer/tetMeshOptimisation/tetMeshOptimisation.C
View file @
3426919c
...
@@ -495,16 +495,16 @@ void tetMeshOptimisation::optimiseBoundaryVolumeOptimizer
...
@@ -495,16 +495,16 @@ 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
vector
normal
=
eigenVector
(
nt
,
ev
[
2
]
);
vector
normal
=
eigenVector
s
(
nt
,
ev
).
z
(
);
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
vector
normal1
=
eigenVector
(
nt
,
ev
[
1
]
);
vector
normal1
=
eigenVector
s
(
nt
,
ev
).
y
(
);
normal1
/=
(
mag
(
normal1
)
+
VSMALL
);
normal1
/=
(
mag
(
normal1
)
+
VSMALL
);
vector
normal2
=
eigenVector
(
nt
,
ev
[
2
]
);
vector
normal2
=
eigenVector
s
(
nt
,
ev
).
z
(
);
normal2
/=
(
mag
(
normal2
)
+
VSMALL
);
normal2
/=
(
mag
(
normal2
)
+
VSMALL
);
vector
eVec
=
normal1
^
normal2
;
vector
eVec
=
normal1
^
normal2
;
...
...
meshLibrary/utilities/triSurfaceTools/triSurface2DCheck/triSurface2DCheck.C
View file @
3426919c
...
@@ -88,8 +88,8 @@ bool triSurface2DCheck::is2DSurface() const
...
@@ -88,8 +88,8 @@ bool triSurface2DCheck::is2DSurface() const
//- eigenVectors spanning the plane
//- eigenVectors spanning the plane
const
vector
n
const
vector
n
(
(
eigenVector
(
covarianceMatrix_
,
eigenVal
[
1
]
)
^
eigenVector
s
(
covarianceMatrix_
,
eigenVal
).
y
(
)
^
eigenVector
(
covarianceMatrix_
,
eigenVal
[
2
]
)
eigenVector
s
(
covarianceMatrix_
,
eigenVal
).
z
(
)
);
);
//- 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
...
...
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