Assigning a component of a volTensorField a particular value
Hi,
Is there any elegant way to manually assign one component of a volTensorField a particular value? Let's say we have to replace the (1,1) component of the tensor field by zero, how would you elegantly get this done? |
https://www.openfoam.com/documentati...1_1Tensor.html
you can assess the (1,1) via the xx() function. |
Quote:
if T is tensor, you can access its components via: Code:
T.xx(); Code:
T.xx() = 5.0; |
All times are GMT -4. The time now is 14:37. |