CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   momentum source (https://www.cfd-online.com/Forums/openfoam/84029-momentum-source.html)

vinnithepooh January 18, 2011 11:44

momentum source
 
dear all,

has anyone worked on giving momentum source in rhoPorousSimpleFoam?
could somebody give me a hint as how to proceed.

thanks in advance.

nakul January 20, 2011 05:01

Hi,

I haven't added a source term before but you may just define the "source" field in createfields.h file locate in the source code of this solver that you would find in "applications" folder.

Also you may add your source term to momentum equation in the C file located in the source code folder of this solver. Then you may specify relevant solvers to solve for this sorce term in fvSolution.

You may find the exact procedure if you thoroughly search this forum.


All times are GMT -4. The time now is 08:33.