Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update deal.II scripts #166

Merged
merged 9 commits into from
Mar 23, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
81 changes: 0 additions & 81 deletions perpendicular-flap/solid-dealii/nonlinear_elasticity.prm

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -14,29 +14,28 @@ subsection Time
end

subsection Discretization
# Time integration scheme
# 0 = forward, 1 = backward
set theta = 0.5

# Polynomial degree of the FE system
set Polynomial degree = 4
end

subsection System properties
# mu (shear modulus)
set mu = 1538462
# Poisson's ratio
set Poisson's ratio = 0.3

# lambda
set lambda = 2307692
# Shear modulus
set Shear modulus = 1538462

# density
# Density
set rho = 3000

# body forces x,y,z
# Body forces x,y,z
set body forces = 0.0,0.0,0.0
end

subsection Linear solver
subsection Solver
# Structural model to be used: linear or neo-Hookean
davidscn marked this conversation as resolved.
Show resolved Hide resolved
set Model = linear

# Linear solver iterations (multiples of the system matrix size)
set Max iteration multiplier = 1
davidscn marked this conversation as resolved.
Show resolved Hide resolved

Expand All @@ -45,6 +44,15 @@ subsection Linear solver

davidscn marked this conversation as resolved.
Show resolved Hide resolved
# Linear solver: CG or Direct
set Solver type = Direct

# Number of Newton-Raphson iterations allowed
set Max iterations Newton-Raphson = 10
davidscn marked this conversation as resolved.
Show resolved Hide resolved

# Displacement error tolerance
set Tolerance displacement = 1.0e-6

# Force residual tolerance
set Tolerance force = 1.0e-9
end
davidscn marked this conversation as resolved.
Show resolved Hide resolved

subsection precice configuration
Expand Down
18 changes: 1 addition & 17 deletions perpendicular-flap/solid-dealii/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,5 @@ cd ${0%/*} || exit 1 # Run from this directory
# in another terminal.
# These scripts present how the two participants would be started manually.

# 1 for true, 0 for false
nonlinear=0
if [ "$1" = "-nonlinear" ]; then
nonlinear=1
fi
./elasticity parameters.prm
davidscn marked this conversation as resolved.
Show resolved Hide resolved

linear=0
if [ "$1" = "-linear" ]; then
linear=1
fi

if [ $linear -eq 1 ]; then
./linear_elasticity linear_elasticity.prm
elif [ $nonlinear -eq 1 ]; then
./nonlinear_elasticity nonlinear_elasticity.prm
else
echo "No solver type specified. Please specify -linear or -nonlinear as solver type"
fi