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

Oscillating cylinderTocell Field with topSetDict in openFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 21, 2018, 03:50
Default Oscillating cylinderTocell Field with topSetDict in openFoam
  #1
Member
 
Ben 017
Join Date: Nov 2017
Posts: 70
Rep Power: 9
Ben UWIHANGANYE is on a distinguished road
Hello Foamers,

I want to ask if there is a way i can code a cylinderTocell field to oscillate.
Indeed, I created cylinderTocell field using topoSetDict, I want to know it can be put in motion.
I have seen in interFoam tutorials, setFieldsDict is used to give a velocity to a boxtocell Field.

Please help me to find out if there is a way this cylinderTocell Field can be moved(oscillating motion).

my ultimate goal is to simulate flow over that cylinder? (stationary and oscillating).
I thought that cylinder will be immersed not body fitted? Does it sound feasible?

I will be happy to hear from you.


Regards!
Attached Images
File Type: png immersed cylinder.png (56.1 KB, 4 views)
File Type: png ibcyl.png (1.4 KB, 3 views)
Ben UWIHANGANYE is offline   Reply With Quote

Old   June 24, 2018, 18:27
Default
  #2
Senior Member
 
Michael Alletto
Join Date: Jun 2018
Location: Bremen
Posts: 616
Rep Power: 16
mAlletto will become famous soon enough
I think if you convect the field F by solving


fvm::ddt(F)
+ fvm::div(phi, F) = 0


it should work.


In principle you should solve a 3D advection equation. The mass flow
phi = fvc::interpolate(U) & mesh.Sf();

U has to be modified each time step to the desired value.
mAlletto is offline   Reply With Quote

Old   June 25, 2018, 02:19
Default
  #3
Member
 
Ben 017
Join Date: Nov 2017
Posts: 70
Rep Power: 9
Ben UWIHANGANYE is on a distinguished road
Quote:
Originally Posted by mAlletto View Post
I think if you convect the field F by solving


fvm::ddt(F)
+ fvm::div(phi, F) = 0


it should work.


In principle you should solve a 3D advection equation. The mass flow
phi = fvc::interpolate(U) & mesh.Sf();


U has to be modified each time step to the desired value.

Hello,
Thank you for reply,
Help me as a beginner of Open Foam, How to model and code such oscillating motion of the Cylinder Field. Which solver to modify and which tutorial should I consult to understand this.

I have attached on this post my case setup that have lead me to that cylindrical shape.

Hope you are going to help

Thank you!
Attached Files
File Type: gz mapcylinder1.tar.gz (4.0 KB, 0 views)
Ben UWIHANGANYE 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
Foam::error::PrintStack almir OpenFOAM Running, Solving & CFD 92 May 21, 2024 08:56
[Other] dynamicTopoFVMesh and pointDisplacement RandomUser OpenFOAM Meshing & Mesh Conversion 6 April 26, 2018 08:30
Floating issue when running openfoam through grasshopper Mark JIN OpenFOAM 1 May 24, 2017 22:04
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 07:20
Problem with rhoSimpleFoam matteo_gautero OpenFOAM Running, Solving & CFD 0 February 28, 2008 07:51


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