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/)
-   -   Calculating source term in selected cells (https://www.cfd-online.com/Forums/openfoam-programming-development/101279-calculating-source-term-selected-cells.html)

ggoggodak85 April 30, 2012 06:18

Calculating source term in selected cells
 
I'm trying to calculate coriolis and centrifugal force as source term in SimpleFoam.

when I run wmake, it works!

But coriolis and centrifugal force is applied to all cells.

How can I calculate source term for selected cells?
I already have cellzones and zone name.

I'm waiting for good advice.

Regards

houwy April 22, 2014 23:13

Quote:

Originally Posted by ggoggodak85 (Post 358442)
I'm trying to calculate coriolis and centrifugal force as source term in SimpleFoam.

when I run wmake, it works!

But coriolis and centrifugal force is applied to all cells.

How can I calculate source term for selected cells?
I already have cellzones and zone name.

I'm waiting for good advice.

Regards

Hi! I also want to solve this problem,too. Have you solved it? Can you give me some help? Thanks!

cfd seeker November 29, 2018 07:33

Quote:

Originally Posted by houwy (Post 487591)
Hi! I also want to solve this problem,too. Have you solved it? Can you give me some help? Thanks!

Hi,

can you please tell me how you implemented Coriolis force and the centrifugal force as source terms?

mAlletto November 29, 2018 08:56

Quote:

Originally Posted by ggoggodak85 (Post 358442)
I'm trying to calculate coriolis and centrifugal force as source term in SimpleFoam.

when I run wmake, it works!

But coriolis and centrifugal force is applied to all cells.

How can I calculate source term for selected cells?
I already have cellzones and zone name.

I'm waiting for good advice.

Regards

You can define your source term by using fvOption. The source term is then switched on in a given cell set.


All times are GMT -4. The time now is 13:38.