create volTensorField from volScalarField
Hi does anyone have an idea how to create a volTensorField from volScalarField.
For instance I have volScalarField a and want to create the following volTensorField:
[a , 0 ,0,
a, 0 ,0,
0, 0, a]
How do I program this?
You could always set each value explicitly; e.g.
no I solved it like this:
Where theta is a volScalarField.
So there really is no constructor which can handle volScalarFields as an argument I guess.
P.S. How do I post code like you? Couldn't find how to do it but it looks more nice.
|All times are GMT -4. The time now is 03:22.|