|
[Sponsors] |
February 26, 2018, 15:19 |
How to set Uy and Uz to zero
|
#1 |
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,675
Rep Power: 66 |
If it matters, I'm using OF 1.7 and 2.4
Currently I am using mapFields to map the entire velocity vector field from one case to another. But I would like to use mapFields to map only Ux from an existing case and leaev Uy and Uz alone. For my purpose I actually do want to set Uy and Uz to zero. Alternatively, I could map the vector U using mapFields and then overwrite Uy and Uz with zeros (using setFields for example). Do these utilities support manipulating only components of vector fields? What would be the syntax? edit* I found a solution using funkySetFields. Code:
funkySetFields -field U -expression 'vector(U.x,0,0)' But it would be nice if someone has the solution using mapFields or setFields |
|
March 4, 2018, 15:02 |
|
#2 | |
Senior Member
Canakkale Dardanelspor
Join Date: Aug 2012
Posts: 135
Rep Power: 13 |
Quote:
|
||
|
|