Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TurTLE
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
Container registry
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TurTLE
TurTLE
Commits
b872a82e
Commit
b872a82e
authored
4 years ago
by
Cristian Lalescu
Browse files
Options
Downloads
Patches
Plain Diff
adds names for GSL tensor indices
parent
9ab34572
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Pipeline
#84905
passed
4 years ago
Stage: build
Stage: test
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
cpp/particles/particles_utils.hpp
+13
-0
13 additions, 0 deletions
cpp/particles/particles_utils.hpp
cpp/particles/rhs/deformation_tensor_rhs.hpp
+30
-30
30 additions, 30 deletions
cpp/particles/rhs/deformation_tensor_rhs.hpp
with
43 additions
and
30 deletions
cpp/particles/particles_utils.hpp
+
13
−
0
View file @
b872a82e
...
@@ -51,6 +51,7 @@ enum IDX_COMPONENT_3D {
...
@@ -51,6 +51,7 @@ enum IDX_COMPONENT_3D {
};
};
enum
IDX_COMPONENT_DEL_3D
{
enum
IDX_COMPONENT_DEL_3D
{
// Di_j is (derivative with respect to i direction) of (component j)
IDXC_DX_X
=
0
,
IDXC_DX_X
=
0
,
IDXC_DX_Y
=
1
,
IDXC_DX_Y
=
1
,
IDXC_DX_Z
=
2
,
IDXC_DX_Z
=
2
,
...
@@ -62,6 +63,18 @@ enum IDX_COMPONENT_DEL_3D {
...
@@ -62,6 +63,18 @@ enum IDX_COMPONENT_DEL_3D {
IDXC_DZ_Z
=
8
,
IDXC_DZ_Z
=
8
,
};
};
enum
IDX_COMPONENT_GSL_3x3D
{
IDXC_GSL_XX
=
0
,
IDXC_GSL_XY
=
1
,
IDXC_GSL_XZ
=
2
,
IDXC_GSL_YX
=
3
,
IDXC_GSL_YY
=
4
,
IDXC_GSL_YZ
=
5
,
IDXC_GSL_ZX
=
6
,
IDXC_GSL_ZY
=
7
,
IDXC_GSL_ZZ
=
8
,
};
enum
IDX_VARIABLE_3D
{
enum
IDX_VARIABLE_3D
{
IDXV_X
=
2
,
IDXV_X
=
2
,
IDXV_Y
=
1
,
IDXV_Y
=
1
,
...
...
This diff is collapsed.
Click to expand it.
cpp/particles/rhs/deformation_tensor_rhs.hpp
+
30
−
30
View file @
b872a82e
...
@@ -99,36 +99,36 @@ class deformation_tensor_rhs: public abstract_particle_rhs
...
@@ -99,36 +99,36 @@ class deformation_tensor_rhs: public abstract_particle_rhs
result
[
idx15
+
IDXC_Y
]
=
pdata3
[
idx3
+
IDXC_Y
];
result
[
idx15
+
IDXC_Y
]
=
pdata3
[
idx3
+
IDXC_Y
];
result
[
idx15
+
IDXC_Z
]
=
pdata3
[
idx3
+
IDXC_Z
];
result
[
idx15
+
IDXC_Z
]
=
pdata3
[
idx3
+
IDXC_Z
];
// ODE of the deformation tensor: (dt F_{ij}) = F_{kj} (du_i/dk)
// ODE of the deformation tensor: (dt F_{ij}) = F_{kj} (du_i/d
x_
k)
// We save the matrix F_{ij} = dX_i/dx_j in row-major
// We save the matrix F_{ij} = dX_i/dx_j in row-major
// to be compatible with GSL
// to be compatible with GSL
result
[
idx15
+
3
+
0
]
=
pdata9
[
idx9
+
IDXC_DX_X
]
*
current_state
[
idx15
+
3
+
IDXC_DX_X
]
result
[
idx15
+
3
+
IDXC_GSL_XX
]
=
pdata9
[
idx9
+
IDXC_DX_X
]
*
current_state
[
idx15
+
3
+
IDXC_DX_X
]
+
pdata9
[
idx9
+
IDXC_DY_X
]
*
current_state
[
idx15
+
3
+
IDXC_DX_Y
]
+
pdata9
[
idx9
+
IDXC_DY_X
]
*
current_state
[
idx15
+
3
+
IDXC_DX_Y
]
+
pdata9
[
idx9
+
IDXC_DZ_X
]
*
current_state
[
idx15
+
3
+
IDXC_DX_Z
];
+
pdata9
[
idx9
+
IDXC_DZ_X
]
*
current_state
[
idx15
+
3
+
IDXC_DX_Z
];
result
[
idx15
+
3
+
3
]
=
pdata9
[
idx9
+
IDXC_DX_Y
]
*
current_state
[
idx15
+
3
+
IDXC_DX_X
]
result
[
idx15
+
3
+
IDXC_GSL_YX
]
=
pdata9
[
idx9
+
IDXC_DX_Y
]
*
current_state
[
idx15
+
3
+
IDXC_DX_X
]
+
pdata9
[
idx9
+
IDXC_DY_Y
]
*
current_state
[
idx15
+
3
+
IDXC_DX_Y
]
+
pdata9
[
idx9
+
IDXC_DY_Y
]
*
current_state
[
idx15
+
3
+
IDXC_DX_Y
]
+
pdata9
[
idx9
+
IDXC_DZ_Y
]
*
current_state
[
idx15
+
3
+
IDXC_DX_Z
];
+
pdata9
[
idx9
+
IDXC_DZ_Y
]
*
current_state
[
idx15
+
3
+
IDXC_DX_Z
];
result
[
idx15
+
3
+
6
]
=
pdata9
[
idx9
+
IDXC_DX_Z
]
*
current_state
[
idx15
+
3
+
IDXC_DX_X
]
result
[
idx15
+
3
+
IDXC_GSL_ZX
]
=
pdata9
[
idx9
+
IDXC_DX_Z
]
*
current_state
[
idx15
+
3
+
IDXC_DX_X
]
+
pdata9
[
idx9
+
IDXC_DY_Z
]
*
current_state
[
idx15
+
3
+
IDXC_DX_Y
]
+
pdata9
[
idx9
+
IDXC_DY_Z
]
*
current_state
[
idx15
+
3
+
IDXC_DX_Y
]
+
pdata9
[
idx9
+
IDXC_DZ_Z
]
*
current_state
[
idx15
+
3
+
IDXC_DX_Z
];
+
pdata9
[
idx9
+
IDXC_DZ_Z
]
*
current_state
[
idx15
+
3
+
IDXC_DX_Z
];
result
[
idx15
+
3
+
1
]
=
pdata9
[
idx9
+
IDXC_DX_X
]
*
current_state
[
idx15
+
3
+
IDXC_DY_X
]
result
[
idx15
+
3
+
IDXC_GSL_XY
]
=
pdata9
[
idx9
+
IDXC_DX_X
]
*
current_state
[
idx15
+
3
+
IDXC_DY_X
]
+
pdata9
[
idx9
+
IDXC_DY_X
]
*
current_state
[
idx15
+
3
+
IDXC_DY_Y
]
+
pdata9
[
idx9
+
IDXC_DY_X
]
*
current_state
[
idx15
+
3
+
IDXC_DY_Y
]
+
pdata9
[
idx9
+
IDXC_DZ_X
]
*
current_state
[
idx15
+
3
+
IDXC_DY_Z
];
+
pdata9
[
idx9
+
IDXC_DZ_X
]
*
current_state
[
idx15
+
3
+
IDXC_DY_Z
];
result
[
idx15
+
3
+
4
]
=
pdata9
[
idx9
+
IDXC_DX_Y
]
*
current_state
[
idx15
+
3
+
IDXC_DY_X
]
result
[
idx15
+
3
+
IDXC_GSL_YY
]
=
pdata9
[
idx9
+
IDXC_DX_Y
]
*
current_state
[
idx15
+
3
+
IDXC_DY_X
]
+
pdata9
[
idx9
+
IDXC_DY_Y
]
*
current_state
[
idx15
+
3
+
IDXC_DY_Y
]
+
pdata9
[
idx9
+
IDXC_DY_Y
]
*
current_state
[
idx15
+
3
+
IDXC_DY_Y
]
+
pdata9
[
idx9
+
IDXC_DZ_Y
]
*
current_state
[
idx15
+
3
+
IDXC_DY_Z
];
+
pdata9
[
idx9
+
IDXC_DZ_Y
]
*
current_state
[
idx15
+
3
+
IDXC_DY_Z
];
result
[
idx15
+
3
+
7
]
=
pdata9
[
idx9
+
IDXC_DX_Z
]
*
current_state
[
idx15
+
3
+
IDXC_DY_X
]
result
[
idx15
+
3
+
IDXC_GSL_ZY
]
=
pdata9
[
idx9
+
IDXC_DX_Z
]
*
current_state
[
idx15
+
3
+
IDXC_DY_X
]
+
pdata9
[
idx9
+
IDXC_DY_Z
]
*
current_state
[
idx15
+
3
+
IDXC_DY_Y
]
+
pdata9
[
idx9
+
IDXC_DY_Z
]
*
current_state
[
idx15
+
3
+
IDXC_DY_Y
]
+
pdata9
[
idx9
+
IDXC_DZ_Z
]
*
current_state
[
idx15
+
3
+
IDXC_DY_Z
];
+
pdata9
[
idx9
+
IDXC_DZ_Z
]
*
current_state
[
idx15
+
3
+
IDXC_DY_Z
];
result
[
idx15
+
3
+
2
]
=
pdata9
[
idx9
+
IDXC_DX_X
]
*
current_state
[
idx15
+
3
+
IDXC_DZ_X
]
result
[
idx15
+
3
+
IDXC_GSL_XZ
]
=
pdata9
[
idx9
+
IDXC_DX_X
]
*
current_state
[
idx15
+
3
+
IDXC_DZ_X
]
+
pdata9
[
idx9
+
IDXC_DY_X
]
*
current_state
[
idx15
+
3
+
IDXC_DZ_Y
]
+
pdata9
[
idx9
+
IDXC_DY_X
]
*
current_state
[
idx15
+
3
+
IDXC_DZ_Y
]
+
pdata9
[
idx9
+
IDXC_DZ_X
]
*
current_state
[
idx15
+
3
+
IDXC_DZ_Z
];
+
pdata9
[
idx9
+
IDXC_DZ_X
]
*
current_state
[
idx15
+
3
+
IDXC_DZ_Z
];
result
[
idx15
+
3
+
5
]
=
pdata9
[
idx9
+
IDXC_DX_Y
]
*
current_state
[
idx15
+
3
+
IDXC_DZ_X
]
result
[
idx15
+
3
+
IDXC_GSL_YZ
]
=
pdata9
[
idx9
+
IDXC_DX_Y
]
*
current_state
[
idx15
+
3
+
IDXC_DZ_X
]
+
pdata9
[
idx9
+
IDXC_DY_Y
]
*
current_state
[
idx15
+
3
+
IDXC_DZ_Y
]
+
pdata9
[
idx9
+
IDXC_DY_Y
]
*
current_state
[
idx15
+
3
+
IDXC_DZ_Y
]
+
pdata9
[
idx9
+
IDXC_DZ_Y
]
*
current_state
[
idx15
+
3
+
IDXC_DZ_Z
];
+
pdata9
[
idx9
+
IDXC_DZ_Y
]
*
current_state
[
idx15
+
3
+
IDXC_DZ_Z
];
result
[
idx15
+
3
+
8
]
=
pdata9
[
idx9
+
IDXC_DX_Z
]
*
current_state
[
idx15
+
3
+
IDXC_DZ_X
]
result
[
idx15
+
3
+
IDXC_GSL_ZZ
]
=
pdata9
[
idx9
+
IDXC_DX_Z
]
*
current_state
[
idx15
+
3
+
IDXC_DZ_X
]
+
pdata9
[
idx9
+
IDXC_DY_Z
]
*
current_state
[
idx15
+
3
+
IDXC_DZ_Y
]
+
pdata9
[
idx9
+
IDXC_DY_Z
]
*
current_state
[
idx15
+
3
+
IDXC_DZ_Y
]
+
pdata9
[
idx9
+
IDXC_DZ_Z
]
*
current_state
[
idx15
+
3
+
IDXC_DZ_Z
];
+
pdata9
[
idx9
+
IDXC_DZ_Z
]
*
current_state
[
idx15
+
3
+
IDXC_DZ_Z
];
...
...
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