How to cell field values to cells in setFields
Dear members
I want to know how to set the field values to cells using setFields. I used cellToCell in setFields. but it gives me errors. Thanking You rgds Upuli |
I do not understand what you want to achieve / you specify to little information. It always helps to post what exactly you tried to clarify your problem.
This is an example of a setFieldDict that I am using to initiate a spherical bubble in interFoam: Code:
/*--------------------------------*- C++ -*----------------------------------*\ |
Thank you very much for your prompt reply. I want to define some field values for one cell in my geometry(box). I think cellToCell in setFields will do that. But I do not how to use it(which parameters are required in defining the cell)
Thanks |
And how do you wish to select that one cell? The answer will depend on that.
Some other ideas: 1) Use boxToCell with a tiny box around the cell you wish to select. 2) Create a set based on the cell indices and then use cellToCell*** 3) funkySetFields can use an arbitrary expression to select cells. ***cellToCell says (${FOAM_SRC}/meshTools/sets/cellSources/cellToCell): Code:
27 Description Code:
76 setName_(dict.lookup("set")) |
All times are GMT -4. The time now is 09:13. |