> For the complete documentation index, see [llms.txt](https://tlcfem.gitbook.io/suanpan-manual/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tlcfem.gitbook.io/suanpan-manual/command-collection/define/initial.md).

# initial

The `initial` command can be used to define initial conditions for nodes, material models, etc.

## Syntax

For nodal properties:

```
initial displacement (1) (2) [3...]
initial velocity (1) (2) [3...]
initial acceleration (1) (2) [3...]
# (1) double, magnitude
# (2) int, dof
# [3...] int, node tags
```

For material properties:

```
initial history (1) [2...]
# (1) int, material model tag
# [2...] double, initial history vector
```

## Remarks

Proper initial nodal conditions are important for dynamic analysis. Some time integration algorithms are sensitive to initial conditions. For example, if a standard sinusoidal wave is used as excitation, its initial displacement and acceleration are zeros so nothing needs to be changed. However, its initial velocity shall be unity, if it is not set to unity, the results may oscillate.

Some material models supports user-defined initial history variables. It could be useful when it comes to model for example rolled/annealed metal. Different material models may have different layout of storage of history variables. Please refer to the specific model for details.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://tlcfem.gitbook.io/suanpan-manual/command-collection/define/initial.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
