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 |
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.
|
should I redirect it's value to next time step????
|
What do you mean by redirect?
|
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 |
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. |