GiD ProblemTypes for 2D Slope Analysis Input File Generation: Difference between revisions

From OpenSeesWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 52: Line 52:
=== Template File - UWnineQuad2Dup.bas ===
=== Template File - UWnineQuad2Dup.bas ===


This file is a template which is used to create an input file for OpenSees from the mesh, materials, and conditions defined in GiD for a particular problem.  This template defines which information from GiD is needed in the input file and the format that this information should follow.  Lines preceded by a star (*) indicate commands, comments, or variables used by GiD during the process.  Lines without a preceding star are printed verbatim into the resultant input file.  The file systematically creates the input file, working from top to bottom, therefore, the structure of the file corresponds well with the structure of the resultant input file.  This structural similarity can be seen by comparing the UWnineQuad2Dup.bas file with the input file slopeAnalysis2Deff.tcl available in the [[Dynamic 2D Effective Stress Analysis of Slope|Dynamic Effective Stress Analysis of a Slope]] example.


In the template file various loops are created which cycle through the nodes, elements, and materials, excluding or including certain entities using conditions or layers created and assigned in the GiD tool.  The overall process defined in this file is relatively straightforward, and the commands used are well explained in the [http://gid.cimne.upc.es/support/manuals GiD manual], so a detailed discussion is not included in this article. 
Since the nine node quadrilateral elements have three degrees of freedom at the corner nodes and two degrees of freedom at the interior nodes (see the [[Dynamic 2D Effective Stress Analysis of Slope|Dynamic Effective Stress Analysis of a Slope]] example for further information), these two sets of nodes must be separated in some manner.  This is accomplished using the tcl procedures defined in the file UWnineQuad2Dup.tcl, which are called at the top of the template file.  These procedures identify the corner nodes of the elements and then differentiate these nodes in two ways: (1) the nodes are assigned to a condition which designates them as having 3 DOF, and (2) the nodes are assigned to a layer called 'cornerNodes'.  These tcl procedures eliminate the need to manually select each corner node and assign it to the proper layer and condition in the GiD GUI.  Both the condition and the layer assignments are necessary in order to restrict certain loops to only those nodes should be included.  An example of such a restriction is the loop in the template file over 3 DOF nodes with assigned fixities.  Loops can only be restricted according to a single condition at a time, thus, the layer change is necessary for this loop which needs to restrict nodes based on nodal degrees of freedom and assigned point constraints.
'''Note:''' Apparently due to the process used to differentiate the corner nodes from the interior nodes, some or all of the conditions assigned to node number 1 become unassigned.  It is not clear why this occurs or how to prevent it from happening*, but it is important to remember to check the input file to ensure any conditions assigned to node 1 are properly included.  This covers things such as nodal fixities and the equalDOF assignments.  It may be necessary to manually add these conditions to the input file.  The input file should always be checked for correctness and the proper implementation of the analysis set-up, the conditions for node 1 are one of the things that nearly always need to be addressed.  It doesn't appear that this happens for any node besides node 1.
'''*''' If anyone determines why this occurs and/or how to prevent it from happening, please let me know and I will fix and re-post the problem type files.


== Using the UWnineQuad2Dup.gid Problem Type ==
== Using the UWnineQuad2Dup.gid Problem Type ==

Revision as of 23:34, 29 October 2010

Example posted by: Christopher McGann, University of Washington


!!!!!!!THIS PAGE IS UNDER CONSTRUCTION!!!!!!!!!!

This article describes the use of the tool GiD as a pre- and post-processor for a 2D analysis of a soil continua in OpenSees. Two separate procedures are made available for download, one which creates an input file for an effective stress analysis using nine node quadrilateral elements, and one which creates an input file for a total stress analysis using four node quadrilateral elements. Only the former procedure will be described in this article, as the procedure for the four node elements is very similar, but less complex. The nine node element procedure discussed in this article was used to develop the input file for the Dynamic Effective Stress Analysis of a Slope example posted in the practical examples section of this manual.

GiD can be used for many purposes, one of which is as a pre- or post-processor for a finite element package. For pre-processing, the interaction between GiD and a particular outside program is fully customizable via a series of files called a problem type. The files which make up the problem type define things such as which materials can be used, which conditions such as nodal degrees of freedom or fixities can be assigned, and the formatting and syntax of the input file which is generated from the GiD mesh. Further information on pre-processing using GiD, or the use of GiD in general, can be found in the GiD manual.

The files which define the nine node element procedure discussed in this article include:

  • The GiD problem type, UWnineQuad2Dup.gid, which consists of the following individual files:
    • UWnineQuad2Dup.bas, a template file which defines how the OpenSees input file is generated from the GiD input
    • UWnineQuad2Dup.mat, a file which defines materials for use in GiD
    • UWnineQuad2Dup.cnd, a file which defines certain conditions necessary for the analysis for use in GiD
    • UWnineQuad2Dup.bat, a batch file which renames the file output by the procedure as directory_name.tcl
    • UWnineQuad2Dup.tcl, a file containing two tcl procedures necessary to the creation of the input file

The files which define the four node element procedure include:

  • The GiD problem type, UWquad2D.gid, which consists of the following individual files (descriptions correspond to those listed above):
    • UWquad2D.bas
    • UWquad2D.mat
    • UWquad2D.cnd
    • UWquad2D.bat

All of the files mentioned above can be downloaded by clicking here.

The UWnineQuad2Dup.gid Problem Type

The UWnineQuad2Dup.gid problem type can be used in conjunction with GiD to generate an OpenSees input file a dynamic analysis of a 2D soil continua underlain by an elastic half-space. The problem type is set up for nine node quadrilateral elements with an additional pore pressure degree of freedom at the corner node, and uses a Lysmer-Kuhlemeyer (1969) to account for the finite rigidity of the underlying elastic half-space. Each file in the problem type performs a specific task, and together they allow GiD to be used as an effective pre-processor for this type of problem in OpenSees.

It is important to note that using this problem type to create an input file for a particular analysis does not guarantee that the generated input file will function perfectly. It is a useful tool which greatly simplifies the creation of a mesh and the assignment of materials and conditions for 2D problems, but it does not automatically create perfect input files. The user must make sure that the input file was properly generated and must exercise engineering judgment in the creation of the analysis.

Conditions File - UWnineQuad2Dup.cnd

This file defines the conditions which can be applied to the mesh or geometry in GiD. These conditions are then used by the template file, UWnineQuad2Dup.bas, to generate the OpenSees input file from the GiD mesh. The format of the condition file is described in the GiD manual.

Essentially, this file is a list of the conditions that apply to this particular problem. These conditions are used to define the degrees of freedom and the point constraints (fixities) for the nodes, to define the sets of nodes which are tied in equalDOF to create the free-field columns discussed in the slope analysis example, to identify the slave node for the Lysmer-Kuhlemeyer dashpot element, and to specify the locations of nodal masses used to represent the dynamic effects of a body of water. The value assigned to each question in each condition is the default value for this condition. These values can be changed when assigning the conditions in GiD.

Material File - UWnineQuad2Dup.mat

This file specifies the nDMaterials which can be assigned to the elements in the GiD-generated mesh. As with the condition file, the material file is a list of materials using the format discussed in the GiD manual. The materials which are included in the material file correspond with the intentions of this problem type to be used for geotechnical analyses. The available materials for this problem type are:

Each of these materials are supplied with default values which can be changed when assigning them in GiD. There are two tabs for each material type, one for the material parameters (e.g. shear modulus, mass density), and one for the parameters which are assigned in the nine node quadrilateral element (undrained bulk modulus, fluid mass density, horizontal and vertical permeabilities, and body forces). The problem type is set up so each material has a corresponding set of element parameters to allow for the analysis of layered soil profiles.

New materials can be made in GiD using these base materials as templates. For example, in a soil profile in which there are several layers of sand, different versions of the PressureDependMultiYield wich have separate names and sets of parameters can be created and assigned to the individual sand layers.

Template File - UWnineQuad2Dup.bas

This file is a template which is used to create an input file for OpenSees from the mesh, materials, and conditions defined in GiD for a particular problem. This template defines which information from GiD is needed in the input file and the format that this information should follow. Lines preceded by a star (*) indicate commands, comments, or variables used by GiD during the process. Lines without a preceding star are printed verbatim into the resultant input file. The file systematically creates the input file, working from top to bottom, therefore, the structure of the file corresponds well with the structure of the resultant input file. This structural similarity can be seen by comparing the UWnineQuad2Dup.bas file with the input file slopeAnalysis2Deff.tcl available in the Dynamic Effective Stress Analysis of a Slope example.

In the template file various loops are created which cycle through the nodes, elements, and materials, excluding or including certain entities using conditions or layers created and assigned in the GiD tool. The overall process defined in this file is relatively straightforward, and the commands used are well explained in the GiD manual, so a detailed discussion is not included in this article.

Since the nine node quadrilateral elements have three degrees of freedom at the corner nodes and two degrees of freedom at the interior nodes (see the Dynamic Effective Stress Analysis of a Slope example for further information), these two sets of nodes must be separated in some manner. This is accomplished using the tcl procedures defined in the file UWnineQuad2Dup.tcl, which are called at the top of the template file. These procedures identify the corner nodes of the elements and then differentiate these nodes in two ways: (1) the nodes are assigned to a condition which designates them as having 3 DOF, and (2) the nodes are assigned to a layer called 'cornerNodes'. These tcl procedures eliminate the need to manually select each corner node and assign it to the proper layer and condition in the GiD GUI. Both the condition and the layer assignments are necessary in order to restrict certain loops to only those nodes should be included. An example of such a restriction is the loop in the template file over 3 DOF nodes with assigned fixities. Loops can only be restricted according to a single condition at a time, thus, the layer change is necessary for this loop which needs to restrict nodes based on nodal degrees of freedom and assigned point constraints.

Note: Apparently due to the process used to differentiate the corner nodes from the interior nodes, some or all of the conditions assigned to node number 1 become unassigned. It is not clear why this occurs or how to prevent it from happening*, but it is important to remember to check the input file to ensure any conditions assigned to node 1 are properly included. This covers things such as nodal fixities and the equalDOF assignments. It may be necessary to manually add these conditions to the input file. The input file should always be checked for correctness and the proper implementation of the analysis set-up, the conditions for node 1 are one of the things that nearly always need to be addressed. It doesn't appear that this happens for any node besides node 1.

* If anyone determines why this occurs and/or how to prevent it from happening, please let me know and I will fix and re-post the problem type files.

Using the UWnineQuad2Dup.gid Problem Type

The UWquad2D.gid Problem Type