January 23, 2018, 15:39
|
|
#21
|
Senior Member
Join Date: Oct 2017
Location: United States
Posts: 233
Rep Power: 10
|
Quote:
Originally Posted by villet
This may look a bit tricky, but you can get the y-coordinate (scalarField) at cell center like this:
mesh.C().component(vector::Y)
or
mesh.C().component(1)
so use it in the place of "y" in your equation. Basically "mesh.C()" is a vector field of cell center coordinates. I'm sure after this it's easier to look for more examples.
Ville
|
what if I want to use command mesh.C() in other source files? I tried it but the compiler keeps telling me that I have to declare mesh first. So how am I gonna access mesh in other source file and declare it?
|
|
|