Skip to content

Commit

Permalink
Merge pull request #1908 from xtalax/varcard
Browse files Browse the repository at this point in the history
Wildcard Arguments `@variables u(..)` documented
  • Loading branch information
ChrisRackauckas committed Oct 27, 2022
2 parents 79d6d89 + 3b8e647 commit 8f78440
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/src/basics/ContextualVariables.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,17 @@ All modeling projects have some form of parameters. `@parameters` marks a variab
as being the parameter of some system, which allows automatic detection algorithms
to ignore such variables when attempting to find the states of a system.

## Wildcard Variable Arguments

```julia
@variables u(..)
```

It is possible to define a dependent variable which is an open function as above,
for which its arguments must be specified each time it is used. This is useful with
PDEs for example, where one may need to use `u(t, x)` in the equations, but will
need to be able to write `u(t, 0.0)` to define a boundary condition at `x = 0`.

## Variable metadata [Experimental/TODO]

In many engineering systems some variables act like "flows" while others do not.
Expand Down

0 comments on commit 8f78440

Please sign in to comment.