Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-common
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package 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
Core Modules
dune-common
Commits
2a30638d
Commit
2a30638d
authored
19 years ago
by
Robert Klöfkorn
Browse files
Options
Downloads
Patches
Plain Diff
world2map method for face introduced. not implemented yet.
[[Imported from SVN: r4226]]
parent
e2ac16d8
Branches
Branches containing commit
Tags
v2.4.0-rc1
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
grid/alu3dgrid/mappings.cc
+1
-0
1 addition, 0 deletions
grid/alu3dgrid/mappings.cc
grid/alu3dgrid/mappings.hh
+3
-0
3 additions, 0 deletions
grid/alu3dgrid/mappings.hh
grid/alu3dgrid/mappings_imp.cc
+13
-10
13 additions, 10 deletions
grid/alu3dgrid/mappings_imp.cc
with
17 additions
and
10 deletions
grid/alu3dgrid/mappings.cc
+
1
−
0
View file @
2a30638d
...
...
@@ -4,6 +4,7 @@
namespace
Dune
{
const
double
TrilinearMapping
::
_epsilon
=
1.0e-8
;
const
double
BilinearSurfaceMapping
::
_epsilon
=
1.0e-8
;
NonConformingFaceMapping
<
tetra
>::
...
...
This diff is collapsed.
Click to expand it.
grid/alu3dgrid/mappings.hh
+
3
−
0
View file @
2a30638d
...
...
@@ -61,6 +61,8 @@ namespace Dune {
double
_b
[
4
][
3
]
;
double
_n
[
3
][
3
]
;
static
const
double
_epsilon
;
public:
//! Constructor creating empty mapping with double , i.e. zero
BilinearSurfaceMapping
(
double
);
...
...
@@ -76,6 +78,7 @@ namespace Dune {
void
map2world
(
const
coord2_t
&
,
coord3_t
&
)
const
;
void
map2world
(
double
x
,
double
y
,
coord3_t
&
)
const
;
void
world2map
(
const
coord3_t
&
,
coord2_t
&
)
const
;
void
normal
(
const
coord2_t
&
,
coord3_t
&
)
const
;
// builds _b and _n, called from the constructors
...
...
This diff is collapsed.
Click to expand it.
grid/alu3dgrid/mappings_imp.cc
+
13
−
10
View file @
2a30638d
...
...
@@ -191,6 +191,7 @@ namespace Dune {
_b
[
3
][
0
]
=
_p3
[
0
]
-
_p2
[
0
]
-
_b
[
1
][
0
]
;
_b
[
3
][
1
]
=
_p3
[
1
]
-
_p2
[
1
]
-
_b
[
1
][
1
]
;
_b
[
3
][
2
]
=
_p3
[
2
]
-
_p2
[
2
]
-
_b
[
1
][
2
]
;
_n
[
0
][
0
]
=
_b
[
1
][
1
]
*
_b
[
2
][
2
]
-
_b
[
1
][
2
]
*
_b
[
2
][
1
]
;
_n
[
0
][
1
]
=
_b
[
1
][
2
]
*
_b
[
2
][
0
]
-
_b
[
1
][
0
]
*
_b
[
2
][
2
]
;
_n
[
0
][
2
]
=
_b
[
1
][
0
]
*
_b
[
2
][
1
]
-
_b
[
1
][
1
]
*
_b
[
2
][
0
]
;
...
...
@@ -217,21 +218,23 @@ namespace Dune {
inline
void
BilinearSurfaceMapping
::
map2world
(
const
coord2_t
&
map
,
coord3_t
&
wld
)
const
{
double
x
=
map
[
0
];
double
y
=
map
[
1
];
map2world
(
map
[
0
],
map
[
1
],
wld
);
}
inline
void
BilinearSurfaceMapping
::
map2world
(
double
x
,
double
y
,
coord3_t
&
w
)
const
{
double
xy
=
x
*
y
;
w
ld
[
0
]
=
_b
[
0
][
0
]
+
x
*
_b
[
1
][
0
]
+
y
*
_b
[
2
][
0
]
+
xy
*
_b
[
3
][
0
]
;
w
ld
[
1
]
=
_b
[
0
][
1
]
+
x
*
_b
[
1
][
1
]
+
y
*
_b
[
2
][
1
]
+
xy
*
_b
[
3
][
1
]
;
w
ld
[
2
]
=
_b
[
0
][
2
]
+
x
*
_b
[
1
][
2
]
+
y
*
_b
[
2
][
2
]
+
xy
*
_b
[
3
][
2
]
;
w
[
0
]
=
_b
[
0
][
0
]
+
x
*
_b
[
1
][
0
]
+
y
*
_b
[
2
][
0
]
+
xy
*
_b
[
3
][
0
]
;
w
[
1
]
=
_b
[
0
][
1
]
+
x
*
_b
[
1
][
1
]
+
y
*
_b
[
2
][
1
]
+
xy
*
_b
[
3
][
1
]
;
w
[
2
]
=
_b
[
0
][
2
]
+
x
*
_b
[
1
][
2
]
+
y
*
_b
[
2
][
2
]
+
xy
*
_b
[
3
][
2
]
;
return
;
}
inline
void
BilinearSurfaceMapping
::
map2world
(
double
x
,
double
y
,
coord3_t
&
w
)
const
{
coord2_t
p
;
p
[
0
]
=
x
;
p
[
1
]
=
y
;
map2world
(
p
,
w
)
;
world2map
(
const
coord3_t
&
wld
,
coord2_t
&
map
)
const
{
assert
(
false
);
// Newton - Iteration zum Invertieren der Abbildung f.
map
[
0
]
=
map
[
1
]
=
0.0
;
return
;
}
...
...
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