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

move an object in chtMultiregionFoam

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By LongGe

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 5, 2023, 02:35
Smile move an object in chtMultiregionFoam
  #1
Senior Member
 
Desh
Join Date: Mar 2021
Location: Sydney
Posts: 118
Rep Power: 5
dasith0001 is on a distinguished road
Hi Foamers,

I've worked a bit with chtMultiRegionFoam but I have no experience on 'moving objects'.

I have a very simple case, a solid component submerged in a fluid.

Now, I have two questions;

Q1 - Can I move this object, say to only in z-direction in this fluid domain. if yes, what would be the closest tutorial I should be looking at ?

Q2 - Can I make this object disappear at a time and replace the void with the fluid ? If yes, could you direct me to a starting point.

What would be the easy thing to do between Q1 and Q2 if these are possible at all.

I would highly appreciate your suggestions.
Thank you
dasith0001 is offline   Reply With Quote

Old   June 5, 2023, 04:42
Default
  #2
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,236
Rep Power: 29
Yann will become famous soon enoughYann will become famous soon enough
Hello,

As far as I know, chtMultiRegionFoam does not support dynamic meshes so I don't think it's possible to move an object with this solver.

Regards,
Yann
Yann is offline   Reply With Quote

Old   June 5, 2023, 20:05
Red face
  #3
Senior Member
 
Desh
Join Date: Mar 2021
Location: Sydney
Posts: 118
Rep Power: 5
dasith0001 is on a distinguished road
Hi Yann,

Thank you for your reply, that's what I was being afraid of. I think you are right, https://bugs.openfoam.org/view.php?id=3499

Any ideas to work around this ?

Cheers,
Dasith
dasith0001 is offline   Reply With Quote

Old   June 7, 2023, 02:27
Default
  #4
Member
 
Tatsuya Shimizu
Join Date: Jul 2012
Posts: 42
Rep Power: 14
LongGe is on a distinguished road
chtMultiRegionFoam does not support dymamicMesh. However, you can Q1 you want by coupling buoyantPimpleFoam and solidFoam which supports dynamicMesh. A sample is in tutorials/multiphase/compressibleInterFoam/laminar/waterCooler. However, I believe you can do simple motions like a solid rotating rigidly, but if the solid is a complex motion, you would have a hard time setting it up. Also, it is unknown whether a heat flux at the fluid-solid interface can be calculated correctly when the solid is in motion.

Note that the sample case given here is a case where the solid is stationary, and you would need to rewrite a solid side dictionaries to move.


Finally, I have used this technique to do cooling analysis of rotating solids.
dasith0001 and cfdberkeley like this.
__________________
Our Work: https://www.idaj.co.jp/product/ennovacfd/openfoam_gui/
Powered by Ennova : https://ennova-cfd.com/
Ennova's Channel Partners : http://www.wolfdynamics.com/
LongGe is offline   Reply With Quote

Old   June 7, 2023, 23:59
Default
  #5
Senior Member
 
Desh
Join Date: Mar 2021
Location: Sydney
Posts: 118
Rep Power: 5
dasith0001 is on a distinguished road
Hi Tatsuya,

Thank you for the input, I will have a look into it

Dasith
dasith0001 is offline   Reply With Quote

Old   June 8, 2023, 00:24
Default
  #6
Member
 
Tatsuya Shimizu
Join Date: Jul 2012
Posts: 42
Rep Power: 14
LongGe is on a distinguished road
Hello Dasith

This movie is a coupled analysis of VOF + rotating solids. I hope it will be helpful.
https://drive.google.com/file/d/1y4m...U_mDGFVtO/view

LongGe
__________________
Our Work: https://www.idaj.co.jp/product/ennovacfd/openfoam_gui/
Powered by Ennova : https://ennova-cfd.com/
Ennova's Channel Partners : http://www.wolfdynamics.com/
LongGe is offline   Reply With Quote

Old   July 10, 2023, 22:34
Default
  #7
Senior Member
 
Desh
Join Date: Mar 2021
Location: Sydney
Posts: 118
Rep Power: 5
dasith0001 is on a distinguished road
Hi foarmers,

Thank you for all the inputs.

I found the easiest way to block and release a flow in a channel.
I am simply using ''explicitPorositySource'' in the fluid region with high resistance values of D when I want to block the flow and vice versa when I want the flow to go freely.

Problem now is the solver becomes so unstable (crashes ) when I suddenly change the 'D' value from 1e20 to 0. Any ideas resolving the issue?

Thank you
Dasith
dasith0001 is offline   Reply With Quote

Old   July 10, 2023, 22:51
Default
  #8
Member
 
Tatsuya Shimizu
Join Date: Jul 2012
Posts: 42
Rep Power: 14
LongGe is on a distinguished road
Hello

How about "ACMI patch scaling"?
https://www.openfoam.com/news/main-n...s-acmi-scaling
__________________
Our Work: https://www.idaj.co.jp/product/ennovacfd/openfoam_gui/
Powered by Ennova : https://ennova-cfd.com/
Ennova's Channel Partners : http://www.wolfdynamics.com/
LongGe is offline   Reply With Quote

Old   July 12, 2023, 21:12
Default
  #9
Senior Member
 
Desh
Join Date: Mar 2021
Location: Sydney
Posts: 118
Rep Power: 5
dasith0001 is on a distinguished road
Quote:
Originally Posted by LongGe View Post
Hello

How about "ACMI patch scaling"?
https://www.openfoam.com/news/main-n...s-acmi-scaling
Thank you for your quick reply, but I am not sure if it is available in chtMultiRegionFoam. After some wrestling I thought got it running but it gives this error

PHP Code:
--> FOAM FATAL IO ERROR:
Unknown patchField type cyclicACMI for patch type genericPatch

Valid patchField types are 
:

113
(
MarshakRadiation
MarshakRadiationFixedTemperature
advective
calculated
codedFixedValue
codedMixed
compressible
::alphatJayatillekeWallFunction
compressible
::alphatWallFunction
compressible
::thermalBaffle1D<eConstSolidThermoPhysics>
compressible::thermalBaffle1D<ePowerSolidThermoPhysics>
compressible::turbulentTemperatureCoupledBaffleMixed
compressible
::turbulentTemperatureRadCoupledMixed
convectiveHeatTransfer
cyclic
cyclicAMI
cyclicSlip
directionMixed
empty
energyJump
energyJumpAMI
entrainmentPressure
epsilonWallFunction
externalCoupled
externalCoupledTemperature
externalWallHeatFluxTemperature
extrapolatedCalculated
fWallFunction
fanPressure 
Any ideas ? I can attached the case file if it helps
Thanks
dasith0001 is offline   Reply With Quote

Reply

Tags
chtmultiregionfoam, moving body


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
[General] Drawing a cylindrical object for viewing in Paraview jeosol ParaView 1 May 23, 2017 04:08
Calculation diverges, Liquid behavior around a rotating object toru OpenFOAM Running, Solving & CFD 0 December 1, 2016 11:54
[foam-extend.org] Error compiling OpenFOAM-1.6-ext Canesin OpenFOAM Installation 137 January 20, 2016 15:56
How to define 2 grids to move the inner object? lepetitmort ANSYS Meshing & Geometry 5 July 1, 2011 16:58
OpenFOAM141dev linking error on IBM AIX 52 matthias OpenFOAM Installation 24 April 28, 2008 16:49


All times are GMT -4. The time now is 12:44.