How can I get a cell's height?
Hi guys,
mesh.C() returns a vector. But I want this vector's height, for example, mesh.C().z()??? Thanks very much. |
mesh.C() returns a vectorField. If you want to get a specific cell's z-component, you still have to get the index of that cell.
|
Quote:
But I get a volScalarFields by mech.C().component(2)? It compiles well...:confused: Code:
volScalarField Gk |
Quote:
|
Quote:
|
Greetings to all!
This is what I usually do when I need to find a piece of code in OpenFOAM, more specifically for this kind: Code:
cd $FOAM_UTILITIES Best regards, Bruno |
All times are GMT -4. The time now is 00:34. |