Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
ogs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Dmitri Naumov
ogs
Commits
160cf572
Commit
160cf572
authored
8 years ago
by
Christoph Lehmann
Browse files
Options
Downloads
Patches
Plain Diff
[NL] improved docu
parent
71dcb2e4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
NumLib/Extrapolation/ExtrapolatableElementCollection.h
+30
-17
30 additions, 17 deletions
NumLib/Extrapolation/ExtrapolatableElementCollection.h
with
30 additions
and
17 deletions
NumLib/Extrapolation/ExtrapolatableElementCollection.h
+
30
−
17
View file @
160cf572
...
@@ -14,8 +14,12 @@
...
@@ -14,8 +14,12 @@
namespace
NumLib
namespace
NumLib
{
{
//! Adaptor to get information needed by an Extrapolator from an "arbitrary"
/*! Adaptor to get information needed by an Extrapolator from an "arbitrary"
//! collection of elements (e.g., local assemblers).
* collection of elements (e.g., local assemblers).
*
* This is an interface class; suitable implementations have to be provided for
* concrete collections of extrapolatable elements.
*/
class
ExtrapolatableElementCollection
class
ExtrapolatableElementCollection
{
{
public:
public:
...
@@ -24,8 +28,27 @@ public:
...
@@ -24,8 +28,27 @@ public:
virtual
Eigen
::
Map
<
const
Eigen
::
RowVectorXd
>
getShapeMatrix
(
virtual
Eigen
::
Map
<
const
Eigen
::
RowVectorXd
>
getShapeMatrix
(
std
::
size_t
const
id
,
unsigned
const
integration_point
)
const
=
0
;
std
::
size_t
const
id
,
unsigned
const
integration_point
)
const
=
0
;
//! Returns integration point values of some property of the element with
/*! Returns integration point values of some property of a specific element.
//! the given \c id.
*
* \param id ID of the element of which the property is queried.
* \param cache Can be used to compute a property on-the-fly.
*
* \remark
* \parblock
* Since this method returns a reference, integration point values can not
* be computed locally and just returned.
*
* Instead, the vector \c cache can be used to store some derived quantities
* that should be used as integration point values. They can be written to
* the \c cache and a reference to the \c cache can then be returned by the
* implementation of this method. Ordinary integration point values can be
* returned directly (if they are stored in the local assembler), and the
* \c cache can be left untouched.
*
* For usage examples see the processes already implemented or the unit test
* in TestExtrapolation.cpp
* \endparblock
*/
virtual
std
::
vector
<
double
>
const
&
getIntegrationPointValues
(
virtual
std
::
vector
<
double
>
const
&
getIntegrationPointValues
(
std
::
size_t
const
id
,
std
::
vector
<
double
>&
cache
)
const
=
0
;
std
::
size_t
const
id
,
std
::
vector
<
double
>&
cache
)
const
=
0
;
...
@@ -50,22 +73,12 @@ public:
...
@@ -50,22 +73,12 @@ public:
"from Extrapolatable."
);
"from Extrapolatable."
);
/*! A method providing integration point values of some property.
/*! A method providing integration point values of some property.
*
* \remark
* \parblock
* The vector \c cache can be used to store some derived quantities that
* should be used as integration point values. They can be written to the
* \c cache and a reference to the \c cache can then be returned by the
* implementation of this method.
* Ordinary integration point values can be returned directly (if they are
* stored in the local assembler), and the \c cache can be left untouched.
*
* For usage examples see the processes already implemented or the unit test
* in TestExtrapolation.cpp
* \endparblock
*
*
* The method must return reference to a vector containing the integration
* The method must return reference to a vector containing the integration
* point values.
* point values.
*
* For further information about the \c cache parameter see
* ExtrapolatableElementCollection::getIntegrationPointValues().
*/
*/
using
IntegrationPointValuesMethod
=
std
::
vector
<
double
>
const
&
(
using
IntegrationPointValuesMethod
=
std
::
vector
<
double
>
const
&
(
LocalAssembler
::*
)(
std
::
vector
<
double
>&
cache
)
const
;
LocalAssembler
::*
)(
std
::
vector
<
double
>&
cache
)
const
;
...
...
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