# -*- Python -*- # The settings in this file (axialdisp.cfg) will be read if it is # specified on the command line: # 'pylith axialdisp.cfg' # If this file is given, the settings in this file will override all # others except for parameters specified directly on the command line. # These setting define an implicit problem with Dirichlet (displacement) # boundary conditions extending the rectangular mesh along the x-axis. [pylithapp] # ---------------------------------------------------------------------- # problem # Specify the problem settings. # This is a time-dependent problem so we use that facility. # ---------------------------------------------------------------------- [pylithapp.timedependent] # We want an implicit formulation. formulation = pylith.problems.Implicit # This is a container for a boundary condition specified on six sides # of a rectangular solid domain. bc = pylith.bc.BCSixSides # ---------------------------------------------------------------------- # boundary conditions # Provide information on the boundary conditions. # ---------------------------------------------------------------------- # Boundary conditions to be applied to the negative x-side of the mesh. [pylithapp.timedependent.bc.x_neg] # We are fixing all 3 degrees of freedom. fixed_dof = [0, 1, 2] # The nodes associated with this boundary condition have the name # 'x_neg' in the mesh file. label = x_neg # We are assigning the label 'Dirichlet BC -x face' to the database. db.label = Dirichlet BC -x face # The name of the file containing the spatial database for the BC # specification. db.iohandler.filename = axialdisp.spatialdb # Boundary conditions to be applied to the positive x-side of the mesh. [pylithapp.timedependent.bc.x_pos] # We are fixing all 3 degrees of freedom. fixed_dof = [0, 1, 2] # The nodes associated with this boundary condition have the name # 'x_pos' in the mesh file. label = x_pos # We are assigning the label 'Dirichlet BC +x face' to the database. db.label = Dirichlet BC +x face # The name of the file containing the spatial database for the BC # specification. db.iohandler.filename = axialdisp.spatialdb # ---------------------------------------------------------------------- # output # Give basename for vtk output. # ---------------------------------------------------------------------- [pylithapp.problem.formulation.output.output] filename = axialdisp.vtk