Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-gfe
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
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
Sander, Oliver
dune-gfe
Commits
b1a6228e
Commit
b1a6228e
authored
10 years ago
by
Oliver Sander
Committed by
sander
10 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Allow to set the parameters of the skyrmion energy from the parameter file
[[Imported from SVN: r10014]]
parent
9eabc322
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
dune/gfe/chiralskyrmionenergy.hh
+8
-2
8 additions, 2 deletions
dune/gfe/chiralskyrmionenergy.hh
src/harmonicmaps.cc
+1
-1
1 addition, 1 deletion
src/harmonicmaps.cc
src/harmonicmaps.parset
+10
-1
10 additions, 1 deletion
src/harmonicmaps.parset
with
19 additions
and
4 deletions
dune/gfe/chiralskyrmionenergy.hh
+
8
−
2
View file @
b1a6228e
...
...
@@ -31,6 +31,12 @@ class ChiralSkyrmionEnergy
public
:
ChiralSkyrmionEnergy
(
const
Dune
::
ParameterTree
&
parameters
)
{
h_
=
parameters
.
template
get
<
double
>(
"h"
);
kappa_
=
parameters
.
template
get
<
double
>(
"kappa"
);
}
//! Dimension of a tangent space
enum
{
blocksize
=
TargetSpace
::
TangentVector
::
dimension
};
...
...
@@ -39,8 +45,8 @@ public:
const
LocalFiniteElement
&
localFiniteElement
,
const
std
::
vector
<
TargetSpace
>&
localConfiguration
)
const
;
field_type
h_
=
3
;
field_type
kappa_
=
1
;
field_type
h_
;
field_type
kappa_
;
};
template
<
class
GridView
,
class
LocalFiniteElement
,
class
field_type
>
...
...
This diff is collapsed.
Click to expand it.
src/harmonicmaps.cc
+
1
−
1
View file @
b1a6228e
...
...
@@ -198,7 +198,7 @@ int main (int argc, char *argv[]) try
}
else
if
(
energy
==
"chiral_skyrmion"
)
{
localEnergy
.
reset
(
new
GFE
::
ChiralSkyrmionEnergy
<
GridType
::
LeafGridView
,
FEBasis
::
LocalFiniteElement
,
adouble
>
);
localEnergy
.
reset
(
new
GFE
::
ChiralSkyrmionEnergy
<
GridType
::
LeafGridView
,
FEBasis
::
LocalFiniteElement
,
adouble
>
(
parameterSet
.
sub
(
"energyParameters"
))
);
}
else
DUNE_THROW
(
Exception
,
"Unknown energy type '"
<<
energy
<<
"'"
);
...
...
This diff is collapsed.
Click to expand it.
src/harmonicmaps.parset
+
10
−
1
View file @
b1a6228e
...
...
@@ -54,8 +54,17 @@ energy = chiral_skyrmion
structuredGrid = true
lower = -10 -10
upper = 10
10
upper = 10 10
elements = 100 100
[energyParameters]
h = 1
kappa = 1
[]
# Inverse stereographic projection
initialIterate = "[2*x[0] / (x[0]*x[0]+x[1]*x[1]+1), 2*x[1] / (x[0]*x[0]+x[1]*x[1]+1), (x[0]*x[0]+x[1]*x[1]-1)/ (x[0]*x[0]+x[1]*x[1]+1)]"
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