CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   Assigning a variable value to each cell in mesh... (https://www.cfd-online.com/Forums/openfoam-programming-development/163208-assigning-variable-value-each-cell-mesh.html)

AJAY BHANDARI November 25, 2015 04:35

Assigning a variable value to each cell in mesh...
 
Hi all,

I am new to openFoam. I have been working in porousSimpleFoam. I have developed a porous media model basically a rectangular mesh with approx 15000 mesh elements. Using SetFields i assigned zones in it having different properties. Now i have two variables defined as permeability and porosity whose value i want to assign to each element in the mesh. Can anybody tell me how to do this where to make changes and how???

Any help will be appreciated. Any more information required about this plz let me know...

Regards
Ajay bhandari..


All times are GMT -4. The time now is 18:22.