assign values to selected cells
Does anyone have the experience to set values to selected cells.
How to check the x y z coordinates of the grid points and store their ID in an array? With the ID, I may then set the values of them by direct assignment? |
check the Allrun-script in the tutorial
tutorials/multiphase/interFoam/ras/damBreak what you're after is probably setFields and the setFieldsDict |
Quote:
|
sounds like you should use topoSet and setsToZones to create a cell-selection then.
and you can use the code option in functionObjects to do whatever you want with that selection here's my controlDict for doing some averaging over certain cell-selections (and to calculate total pressure drop) that should get you started Code:
Code:
actions |
Quote:
|
All times are GMT -4. The time now is 00:37. |