|
[Sponsors] |
August 24, 2015, 11:54 |
Runtime using of patchIntegrate Untiity
|
#1 |
Senior Member
harshawardhank
Join Date: Mar 2014
Posts: 209
Rep Power: 13 |
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 |
|
August 24, 2015, 14:30 |
|
#2 |
Senior Member
Hassan Kassem
Join Date: May 2010
Location: Germany
Posts: 242
Rep Power: 18 |
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.
|
|
August 24, 2015, 15:19 |
|
#3 |
Senior Member
harshawardhank
Join Date: Mar 2014
Posts: 209
Rep Power: 13 |
should I redirect it's value to next time step????
|
|
August 24, 2015, 15:21 |
|
#4 |
Senior Member
Hassan Kassem
Join Date: May 2010
Location: Germany
Posts: 242
Rep Power: 18 |
What do you mean by redirect?
|
|
August 24, 2015, 15:25 |
|
#5 |
Senior Member
harshawardhank
Join Date: Mar 2014
Posts: 209
Rep Power: 13 |
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 |
|
August 24, 2015, 15:53 |
|
#6 |
Senior Member
Hassan Kassem
Join Date: May 2010
Location: Germany
Posts: 242
Rep Power: 18 |
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. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Probes/Sensors in runtime | gabitinho | OpenFOAM Post-Processing | 9 | August 14, 2015 13:55 |
Problem in3D model processing | mebinitap | OpenFOAM | 2 | December 12, 2014 05:40 |
Creating a new field from terms of the turbulence model | HaZe | OpenFOAM Programming & Development | 15 | November 24, 2014 14:51 |
Runtime modification of a volScalarField | Scofield | OpenFOAM Programming & Development | 4 | October 1, 2013 09:31 |
runTime out of scope in functionObject | Sune | OpenFOAM Programming & Development | 2 | September 26, 2012 03:11 |