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
0c4778a5
Commit
0c4778a5
authored
11 years ago
by
Oliver Sander
Committed by
sander
11 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add/fix boundary conditions for the wrinkling/shearing example
[[Imported from SVN: r9545]]
parent
576df606
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cosserat-continuum.cc
+10
-1
10 additions, 1 deletion
cosserat-continuum.cc
cosserat-continuum.parset
+38
-38
38 additions, 38 deletions
cosserat-continuum.parset
with
48 additions
and
39 deletions
cosserat-continuum.cc
+
10
−
1
View file @
0c4778a5
...
...
@@ -45,6 +45,7 @@ const int blocksize = TargetSpace::TangentVector::dimension;
using
namespace
Dune
;
#if 0
// Dirichlet boundary data for the shear/wrinkling example
void dirichletValues(const FieldVector<double,dim>& in, FieldVector<double,3>& out,
double homotopy)
{
...
...
@@ -52,7 +53,8 @@ void dirichletValues(const FieldVector<double,dim>& in, FieldVector<double,3>& o
for (int i=0; i<dim; i++)
out[i] = in[i];
out[1] += homotopy;
if (out[1] > 1-1e-3)
out[0] += homotopy;
}
#endif
void
dirichletValues
(
const
FieldVector
<
double
,
dim
>&
in
,
FieldVector
<
double
,
3
>&
out
,
...
...
@@ -179,6 +181,13 @@ int main (int argc, char *argv[]) try
if (vIt->geometry().corner(0)[0] > upper[0]-1e-3 )
neumannNodes[grid->leafIndexSet().index(*vIt)][0] = true;
#endif
#if 0 // Boundary conditions for the shearing/wrinkling example
if (vIt->geometry().corner(0)[1] < 1e-3 or vIt->geometry().corner(0)[1] > upper[1]-1e-3 ) {
// Only translation dofs are Dirichlet
for (int j=0; j<3; j++)
dirichletNodes[grid->leafIndexSet().index(*vIt)][j] = true;
}
#endif
#if 0 // Boundary conditions for the twisted-strip example
if (vIt->geometry().corner(0)[0] < lower[0]+1e-3 or vIt->geometry().corner(0)[0] > upper[0]-1e-3 ) {
// Only translation dofs are Dirichlet
...
...
This diff is collapsed.
Click to expand it.
cosserat-continuum.parset
+
38
−
38
View file @
0c4778a5
# Number of grid levels
numLevels =
1
numLevels =
3
# Number of homotopy steps for the Dirichlet boundary conditions
numHomotopySteps = 1
...
...
@@ -42,50 +42,23 @@ instrumented = 0
############################
# Parameters for the twisted 10x1 strip
#[materialParameters]
#
## shell thickness
#thickness = 0.05
#
## Lame parameters
## corresponds to E = 1e6, nu=0.3
#mu = 3.8462e+05
#lambda = 2.7149e+05
#
## Cosserat couple modulus
#mu_c = 0
##mu_c = 3.8462e+05
#
## Length scale parameter
#L_c = 0.1
#
## Curvature exponent
#q = 2
#
## Shear correction factor
#kappa = 1
#
#[]
# For the Wriggers L-shape example
Parameters for the twisted 10x1 strip
[materialParameters]
# shell thickness
thickness = 0.
6
thickness = 0.
05
# Lame parameters
# corresponds to E =
71240 N/mm^2
, nu=0.3
1
mu =
2.7191
e+0
4
lambda =
4.4364
e+0
4
# corresponds to E =
1e6
, nu=0.3
mu =
3.8462
e+0
5
lambda =
2.7149
e+0
5
# Cosserat couple modulus
mu_c = 0
#mu_c =
2.7191
e+0
4
#mu_c =
3.8462
e+0
5
# Length scale parameter
L_c =
1
0
L_c = 0
.0002
# Curvature exponent
q = 2
...
...
@@ -95,15 +68,42 @@ kappa = 1
[]
## For the Wriggers L-shape example
#[materialParameters]
#
## shell thickness
#thickness = 0.6
#
## Lame parameters
## corresponds to E = 71240 N/mm^2, nu=0.31
#mu = 2.7191e+04
#lambda = 4.4364e+04
#
## Cosserat couple modulus
#mu_c = 0
##mu_c = 2.7191e+04
#
## Length scale parameter
#L_c = 10
#
## Curvature exponent
#q = 2
#
## Shear correction factor
#kappa = 1
#
#[]
### Neumann values, if needed
neumannValues = -1e3 0 0
structuredGrid =
fals
e
structuredGrid =
tru
e
lower = 0 0
upper =
10
1
elements =
10
1
upper =
5
1
elements =
5
1
# Wriggers L-shape
path = /home/sander/data/shells/wriggers_L_shape/
...
...
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