CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

How to initialize with different velocity at top and bottom half of domain

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 6, 2024, 22:27
Default How to initialize with different velocity at top and bottom half of domain
  #1
Senior Member
 
TWB
Join Date: Mar 2009
Posts: 414
Rep Power: 19
quarkz is on a distinguished road
Hi, I'm trying to solve a flow past cylinder problem whereby the top and bottom half of the domain have slightly different velocity of 1.2 and 0.8 m/s

For the inlet BC, I separated it into top and bottom inlet and gave 1.2 and 0.8 m/s.

But regarding the domain, how do I initialize it? I read in the forum that an add-on like groovyBC or swak4Foam can do it but in the past, I have problems with installing them.

So what's the easiest way to achieve this? Btw, I'm using v22.06 but 23 and 24 ver are ok too.

Thanks!
quarkz is offline   Reply With Quote

Old   October 7, 2024, 06:03
Default
  #2
New Member
 
Sami Safarini
Join Date: Sep 2021
Posts: 11
Rep Power: 5
samisafarini is on a distinguished road
I think what you need to do is to use the setFields command, have a look at this tutorial https://doc.cfd.direct/openfoam/user-guide-v8/dambreak, i know its for openfoam8 but I think it should work with your version too.



Could you share your model with this forum just to be abit clearer with the requirements?


It would be good to move this thread to openfoam pre-processing.
samisafarini is offline   Reply With Quote

Old   October 10, 2024, 10:20
Default
  #3
Senior Member
 
TWB
Join Date: Mar 2009
Posts: 414
Rep Power: 19
quarkz is on a distinguished road
Hi samisafarini,

Thanks, I think it should work. I managed also to install swakFoam on my own PC and get the solution initialized. I can then move it to the cluster for calculation

Here's the command for swakFoam:

funkySetFields -case cylinder2D_asym_1.2_0.8_fk -time 0 -field U -keepPatches -expression "pos().y <= 0 ? vector (0.8, 0, 0) : vector (1.2, 0, 0)"
quarkz 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
Atmospheric BCs for domain with a single boundary serving as both the inlet & outlet Newtonian OpenFOAM Running, Solving & CFD 0 July 21, 2022 15:07
Difficulty in calculating angular velocity of Savonius turbine simulation alfaruk CFX 14 March 17, 2017 07:08
Pressure instabilities at the bottom of the domain MaryBau OpenFOAM 6 February 19, 2013 17:19
domain imbalance for enrgy equation happy CFX 14 September 6, 2012 02:54
Velocity BC in cyclic 2D domain Ivo OpenFOAM 1 July 30, 2010 12:22


All times are GMT -4. The time now is 08:23.