Skip to content

Commit

Permalink
Merge pull request #27392 from farscape-project/coupleable
Browse files Browse the repository at this point in the history
Add methods for array vars to the Coupleable API docs
  • Loading branch information
GiudGiud authored Apr 17, 2024
2 parents 99bccf1 + 419d9c5 commit 5ea0409
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 9 deletions.
11 changes: 11 additions & 0 deletions framework/doc/content/source/interfaces/Coupleable.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,17 @@ The following tables summarize the methods it provides.

---

| Methods for array field variables | Description |
| :--- | :--- |
`coupledArrayValue`‡ | Value of a coupled array variable at q-points
`coupledArrayGradient`‡ | Gradient of a coupled array variable at q-points
`coupledArrayDot`† | Time derivative of a coupled array variable at q-points
`coupledArrayDotDot`† | Second time derivative of a coupled array variable at q-points
`coupledArrayDotDu` | Derivative with regards to the variable of the time derivative of a coupled array variable at q-points
`coupledArrayGradientDot` | Time derivative of the gradient of a coupled array variable at q-points

---

| Methods for vector field variables | Description |
| :--- | :--- |
`coupledVectorValue`‡§ | Value of a coupled vector variable at q-points
Expand Down
18 changes: 9 additions & 9 deletions framework/include/interfaces/Coupleable.h
Original file line number Diff line number Diff line change
Expand Up @@ -480,8 +480,8 @@ class Coupleable

/**
* Returns value of a coupled array variable
* @param var_name Name of coupled vector variable
* @param comp Component number for vector of coupled vector variables
* @param var_name Name of coupled array variable
* @param comp Component number for vector of coupled array variables
* @return Reference to a ArrayVariableValue for the coupled vector variable
* @see ArrayKernel::_u
*/
Expand Down Expand Up @@ -589,9 +589,9 @@ class Coupleable
unsigned int comp = 0) const;

/**
* Returns an old value from previous time step of a coupled array variable
* @param var_name Name of coupled variable
* @param comp Component number for vector of coupled variables
* Returns an old value from previous time step of a coupled array variable
* @param var_name Name of coupled array variable
* @param comp Component number for vector of coupled array variables
* @return Reference to a ArrayVariableValue containing the old value of the coupled variable
* @see ArrayKernel::_u_old
*/
Expand All @@ -600,8 +600,8 @@ class Coupleable

/**
* Returns an old value from two time steps previous of a coupled array variable
* @param var_name Name of coupled variable
* @param comp Component number for vector of coupled variables
* @param var_name Name of coupled array variable
* @param comp Component number for vector of coupled array variables
* @return Reference to a ArrayVariableValue containing the older value of the coupled variable
* @see ArrayKernel::_u_older
*/
Expand Down Expand Up @@ -1137,8 +1137,8 @@ class Coupleable

/**
* Time derivative of a coupled array variable with respect to the coefficients
* @param var_name Name of coupled vector variable
* @param comp Component number for vector of coupled vector variables
* @param var_name Name of coupled array variable
* @param comp Component number for vector of coupled array variables
* @return Reference to a ArrayVariableValue containing the time derivative of the coupled
* variable
*/
Expand Down

0 comments on commit 5ea0409

Please sign in to comment.