Skip to content

Instantly share code, notes, and snippets.

@dschwen
Last active April 6, 2017 16:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dschwen/10c91443e1d88dcc5ed3fba050aa05f8 to your computer and use it in GitHub Desktop.
Save dschwen/10c91443e1d88dcc5ed3fba050aa05f8 to your computer and use it in GitHub Desktop.
[AuxKernels]
[./strain_yy_block2]
type = RankTwoAux
block = 2
execute_on = TIMESTEP_END
index_i = 1
index_j = 1
rank_two_tensor = total_strain
variable = strain_yy
[../]
[./stress_xx_block2]
type = RankTwoAux
block = 2
execute_on = TIMESTEP_END
index_i = 0
index_j = 0
rank_two_tensor = stress
variable = stress_xx
[../]
[]
[AuxVariables]
[./strain_yy]
blocks = '1 2'
family = MONOMIAL
order = CONSTANT
[../]
[./stress_xx]
blocks = '1 2'
family = MONOMIAL
order = CONSTANT
[../]
[]
[Kernels]
[./TM_block20]
type = StressDivergenceTensors
block = 2
component = 0
displacements = 'disp_x disp_y'
use_displaced_mesh = true
variable = disp_x
[../]
[./TM_block21]
type = StressDivergenceTensors
block = 2
component = 1
displacements = 'disp_x disp_y'
use_displaced_mesh = true
variable = disp_y
[../]
[]
[Materials]
[./block2_strain]
type = ComputeFiniteStrain
block = 2
displacements = 'disp_x disp_y'
[../]
[]
[Variables]
[./disp_x]
blocks = '1 2'
[../]
[./disp_y]
blocks = '1 2'
[../]
[]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment