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/)
-   -   Runtime using of patchIntegrate Untiity (https://www.cfd-online.com/Forums/openfoam-programming-development/158410-runtime-using-patchintegrate-untiity.html)

harsha_kulkarni August 24, 2015 10:54

Runtime using of patchIntegrate Untiity
 
Dear foamer,

I want to use patch Integrate Utility during runtime postprocessing
and redirect it's value for next time step
.How should I use that.

It's urgent

Reply ASAP
Harshawardhan

hk318i August 24, 2015 13:30

If you would like to integrate over a specific patch to get the forces every time step, just use the forces class directly. Have a look at sixDoFRigidBodyMotion, forces library is used directly in it. Also you directly implement the integration in your solver using similar approach to patchIntegrate.

harsha_kulkarni August 24, 2015 14:19

should I redirect it's value to next time step????

hk318i August 24, 2015 14:21

What do you mean by redirect?

harsha_kulkarni August 24, 2015 14:25

Actually I want to make mass balance

so that taking patch Integrate quantity of velocity(volume).

and adding same amount of quantity to another patch in next time step

hk318i August 24, 2015 14:53

Now, I understand what are looking for. The problem is the patchIntegrate is application not library so you cannot use it directly with your solve. However, you can access the BC from the solver and integrate the velocity exactly like patchIntegrate. In this forum there is a thread about how to change BC from solver. For the integration part copy and edit from patcIntegrate.
BUT,
It is not the most elegant and efficient solution. It is better to think about implementing it as BC. Check cyclic BC, it changes information between to coupled patches. It could be good starting point.


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