Skip to content
Open
Changes from all commits
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
41 changes: 41 additions & 0 deletions source/user/manual/model/mass.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
.. _mass:

mass Command
************

This command is used to set the mass at a node.

.. function:: mass $nodeTag [ndf $massValues]

.. csv-table::
:header: "Argument", "Type", "Description"
:widths: 10, 10, 40

$nodeTag, |integer|, unique tag identifying node
$massValues, |listFloat|, optional **ndf** nodal mass values corresponding to each DOF


.. admonition:: Example:

The following examples demonstrate the commands in a script to add two nodes to domain in which the last model command specified an **ndm** of **2** and a **ndf** of 3. The two nodes to be added have node tags **3** and **4**. Node **3** is located at coordinates (168.0, 144.0) and node **4** at location (168.0,144.0). Node **4** is assigned a mass of (10.0, 10.0, 0.).

1. **Tcl Code**

.. code-block:: tcl

node 3 168.0 0.0
node 4 168.0 144.0

mass 4 10.0 10.0 0.0

2. **Python Code**

.. code-block:: python

node(3, 168.0, 0.0)
node(4, 168.0, 144.0)

mass(4, *[10.0, 10.0, 0.0])


Code Developed by: |fmk|
Loading