Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gmsh
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
Model registry
Operate
Environments
Monitor
Incidents
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Larry Price
gmsh
Commits
3c48849c
Commit
3c48849c
authored
12 years ago
by
Tristan Carrier Baudouin
Browse files
Options
Downloads
Patches
Plain Diff
centerline field
parent
bf69d4e1
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Mesh/simple3D.cpp
+34
-0
34 additions, 0 deletions
Mesh/simple3D.cpp
Mesh/simple3D.h
+1
-0
1 addition, 0 deletions
Mesh/simple3D.h
with
35 additions
and
0 deletions
Mesh/simple3D.cpp
+
34
−
0
View file @
3c48849c
...
@@ -495,6 +495,40 @@ Metric Filler::get_metric(double x,double y,double z){
...
@@ -495,6 +495,40 @@ Metric Filler::get_metric(double x,double y,double z){
return
m
;
return
m
;
}
}
Metric
Filler
::
get_metric
(
double
x
,
double
y
,
double
z
,
GEntity
*
ge
){
Metric
m
;
SMetric3
temp
;
SVector3
v1
,
v2
,
v3
;
Field
*
field
;
FieldManager
*
manager
;
v1
=
SVector3
(
1.0
,
0.0
,
0.0
);
v2
=
SVector3
(
0.0
,
1.0
,
0.0
);
v3
=
SVector3
(
0.0
,
0.0
,
1.0
);
manager
=
ge
->
model
()
->
getFields
();
if
(
manager
->
getBackgroundField
()
>
0
){
field
=
manager
->
get
(
manager
->
getBackgroundField
());
if
(
field
){
(
*
field
)(
x
,
y
,
z
,
temp
,
ge
);
}
}
m
.
set_m11
(
v1
.
x
());
m
.
set_m21
(
v1
.
y
());
m
.
set_m31
(
v1
.
z
());
m
.
set_m12
(
v2
.
x
());
m
.
set_m22
(
v2
.
y
());
m
.
set_m32
(
v2
.
z
());
m
.
set_m13
(
v3
.
x
());
m
.
set_m23
(
v3
.
y
());
m
.
set_m33
(
v3
.
z
());
return
m
;
}
double
Filler
::
get_size
(
double
x
,
double
y
,
double
z
){
double
Filler
::
get_size
(
double
x
,
double
y
,
double
z
){
return
Size_field
::
search
(
x
,
y
,
z
);
return
Size_field
::
search
(
x
,
y
,
z
);
}
}
...
...
This diff is collapsed.
Click to expand it.
Mesh/simple3D.h
+
1
−
0
View file @
3c48849c
...
@@ -18,6 +18,7 @@ class Filler{
...
@@ -18,6 +18,7 @@ class Filler{
private:
private:
static
std
::
vector
<
MVertex
*>
new_vertices
;
static
std
::
vector
<
MVertex
*>
new_vertices
;
Metric
get_metric
(
double
,
double
,
double
);
Metric
get_metric
(
double
,
double
,
double
);
Metric
get_metric
(
double
,
double
,
double
,
GEntity
*
);
double
get_size
(
double
,
double
,
double
);
double
get_size
(
double
,
double
,
double
);
double
get_size
(
double
,
double
,
double
,
GEntity
*
);
double
get_size
(
double
,
double
,
double
,
GEntity
*
);
bool
inside_domain
(
MElementOctree
*
,
double
,
double
,
double
);
bool
inside_domain
(
MElementOctree
*
,
double
,
double
,
double
);
...
...
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