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

spatial Boundary condition, cartesian to cylindrical, groovyBC

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By tomf

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 31, 2018, 15:43
Default spatial Boundary condition, cartesian to cylindrical, groovyBC
  #1
New Member
 
Carlos
Join Date: May 2017
Posts: 16
Rep Power: 8
Ricardo1992 is on a distinguished road
Hello all,

I am new to OpenFoam, I hope that you may help me. I have run a 3D free-jet

I created the mesh as two concentric cylinders (please see attached figure), where the left-side of the interior cylinder is the boundary condition for the velocity. This configuration runs well but I want to modify my mesh.

My group uses another code which only works with a structured mesh. I need to compare both codes.

I want to set up a boundary condition using an "if statement" to transfer the cartesian coordinate to a cylindrical . The way that I implemented it on other code is shown in the attached image (python). Basically, if the radius is smaller than a value, the velocity profile will be set up to that equation .

The velocity depends on time, I implemented that boundary condition using a groovyBC ( I am using the version 2.3.1.)

Any suggestion how can I implement the spatial boundary condition ?








using two cylinder
Attached Images
File Type: jpg Screen Shot 2018-05-29 at 20.54.33.jpg (164.9 KB, 23 views)
File Type: jpg Screen Shot 2018-05-31 at 20.36.42.jpg (57.9 KB, 15 views)
Ricardo1992 is offline   Reply With Quote

Old   May 31, 2018, 23:32
Default
  #2
Senior Member
 
Taher Chegini
Join Date: Nov 2014
Location: Houston, Texas
Posts: 125
Rep Power: 12
Taataa is on a distinguished road
You can either use codedFixedValue to construct it on the fly or make one from scratch following instruction here.
Taataa is offline   Reply With Quote

Old   June 1, 2018, 03:02
Default
  #3
Senior Member
 
Tom Fahner
Join Date: Mar 2009
Location: Breda, Netherlands
Posts: 634
Rep Power: 32
tomf will become famous soon enoughtomf will become famous soon enough
Send a message via MSN to tomf Send a message via Skype™ to tomf
Hi,

As long as you are using groovyBC, why not try using the examples, the circulatingSplash example seems to include some of the functionality you may want to use.

Regards,
Tom
Linmunn likes this.
tomf is offline   Reply With Quote

Reply

Tags
boundaries condition


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
Wind turbine simulation Saturn CFX 58 July 3, 2020 01:13
Centrifugal fan j0hnny CFX 13 October 1, 2019 13:55
My radial inflow turbine Abo Anas CFX 27 May 11, 2018 01:44
inlet velocity boundary condition murali CFX 5 August 3, 2012 08:56
RPM in Wind Turbine Pankaj CFX 9 November 23, 2009 04:05


All times are GMT -4. The time now is 06:50.