![]() |
Creating a symmTensorField from a scalarField
Greetings,
I'm implementing a boundary condition for a symmTensor variable. I calculate a scalarField, and then want to apply it to the diagonal components of the symmTensorField. The fields are turbulent intensity and reynolds stress, though that really isn't important. The relevant (updateCoeffs) part of the code is as follows... Code:
Many thanks, and apologies for reposting this. No-one replied to the last post I made, and I've had some time to re-formulate the question, hopefully a little more clearly. |
Did you already try something like this:
Code:
symmTensorField stress(value,0,0,value,0,value);Code:
symmTensor I(1,0,0,1,0,1); |
The second of those works. Thank you very much.
|
| All times are GMT -4. The time now is 21:11. |