CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Runtime using of patchIntegrate Untiity

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By hk318i

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 24, 2015, 11:54
Exclamation Runtime using of patchIntegrate Untiity
  #1
Senior Member
 
harshawardhank
Join Date: Mar 2014
Posts: 209
Rep Power: 13
harsha_kulkarni is on a distinguished road
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
harsha_kulkarni is offline   Reply With Quote

Old   August 24, 2015, 14:30
Default
  #2
Senior Member
 
Hassan Kassem
Join Date: May 2010
Location: Germany
Posts: 242
Rep Power: 18
hk318i is on a distinguished road
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 likes this.
hk318i is offline   Reply With Quote

Old   August 24, 2015, 15:19
Default
  #3
Senior Member
 
harshawardhank
Join Date: Mar 2014
Posts: 209
Rep Power: 13
harsha_kulkarni is on a distinguished road
should I redirect it's value to next time step????
harsha_kulkarni is offline   Reply With Quote

Old   August 24, 2015, 15:21
Default
  #4
Senior Member
 
Hassan Kassem
Join Date: May 2010
Location: Germany
Posts: 242
Rep Power: 18
hk318i is on a distinguished road
What do you mean by redirect?
__________________
@HIKassem | HassanKassem.me
hk318i is offline   Reply With Quote

Old   August 24, 2015, 15:25
Default
  #5
Senior Member
 
harshawardhank
Join Date: Mar 2014
Posts: 209
Rep Power: 13
harsha_kulkarni is on a distinguished road
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
harsha_kulkarni is offline   Reply With Quote

Old   August 24, 2015, 15:53
Default
  #6
Senior Member
 
Hassan Kassem
Join Date: May 2010
Location: Germany
Posts: 242
Rep Power: 18
hk318i is on a distinguished road
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.
__________________
@HIKassem | HassanKassem.me
hk318i is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 20:28.