Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-geometry
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
Model registry
Operate
Environments
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-geometry
Commits
24faf399
Commit
24faf399
authored
3 years ago
by
Carsten Gräser
Browse files
Options
Downloads
Patches
Plain Diff
Implement jacobian() and jacobianInverse() in (Cached)MultiLinearGeometry
parent
bf5e28be
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!193
Extend jacobian interface of geometry classes
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dune/geometry/multilineargeometry.hh
+53
-0
53 additions, 0 deletions
dune/geometry/multilineargeometry.hh
with
53 additions
and
0 deletions
dune/geometry/multilineargeometry.hh
+
53
−
0
View file @
24faf399
...
...
@@ -201,6 +201,12 @@ namespace Dune
//! type of jacobian inverse transposed
class
JacobianInverseTransposed
;
/** \brief Type for the Jacobian matrix */
typedef
FieldMatrix
<
ctype
,
coorddimension
,
mydimension
>
Jacobian
;
/** \brief Type for the inverse Jacobian matrix */
typedef
FieldMatrix
<
ctype
,
mydimension
,
coorddimension
>
JacobianInverse
;
protected:
typedef
Dune
::
ReferenceElements
<
ctype
,
mydimension
>
ReferenceElements
;
...
...
@@ -389,6 +395,29 @@ namespace Dune
return
geometry
.
refElement
();
}
/** \brief Obtain the Jacobian
*
* \param[in] local local coordinate to evaluate Jacobian in
*
* \returns a copy of the transposed of the Jacobian
*/
Jacobian
jacobian
(
const
LocalCoordinate
&
local
)
const
{
return
jacobianTransposed
(
local
).
transposed
();
}
/** \brief Obtain the Jacobian's inverse
*
* The Jacobian's inverse is defined as a pseudo-inverse. If we denote
* the Jacobian by \f$J(x)\f$, the following condition holds:
* \f[J^{-1}(x) J(x) = I.\f]
*/
JacobianInverse
jacobianInverse
(
const
LocalCoordinate
&
local
)
const
{
return
jacobianInverseTransposed
(
local
).
transposed
();
}
protected
:
ReferenceElement
refElement
()
const
...
...
@@ -513,6 +542,8 @@ namespace Dune
typedef
typename
Base
::
JacobianTransposed
JacobianTransposed
;
typedef
typename
Base
::
JacobianInverseTransposed
JacobianInverseTransposed
;
typedef
typename
Base
::
Jacobian
Jacobian
;
typedef
typename
Base
::
JacobianInverse
JacobianInverse
;
template
<
class
CornerStorage
>
CachedMultiLinearGeometry
(
const
ReferenceElement
&
referenceElement
,
const
CornerStorage
&
cornerStorage
)
...
...
@@ -660,6 +691,28 @@ namespace Dune
return
Base
::
jacobianInverseTransposed
(
local
);
}
/** \brief Obtain the Jacobian
*
* \param[in] local local coordinate to evaluate Jacobian in
*
* \returns a copy of the transposed of the Jacobian
*/
Jacobian
jacobian
(
const
LocalCoordinate
&
local
)
const
{
return
jacobianTransposed
(
local
).
transposed
();
}
/** \brief Obtain the Jacobian's inverse
*
* The Jacobian's inverse is defined as a pseudo-inverse. If we denote
* the Jacobian by \f$J(x)\f$, the following condition holds:
* \f[J^{-1}(x) J(x) = I.\f]
*/
JacobianInverse
jacobianInverse
(
const
LocalCoordinate
&
local
)
const
{
return
jacobianInverseTransposed
(
local
).
transposed
();
}
protected
:
using
Base
::
refElement
;
...
...
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