CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

Innitial condition velocity for 3D test loop with no inlets or outlests

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 7, 2024, 12:29
Default Innitial condition velocity for 3D test loop with no inlets or outlests
  #1
New Member
 
Ederson Jaime
Join Date: Jun 2024
Posts: 3
Rep Power: 2
edersonj1995 is on a distinguished road
Hello everyone,

I am fairly new to CFD and I am working on a simulation that has a rather unique geometry with no inlets or outlets. The only way to create flow inside this test loop to flow is through natural convection with a heat source and sink.

My goal with the initial velocity is to start the simulation as if the natural convection had already created a somewhat steady-state flow, meaning that the velocity would could not be described in a simple XYZ fashion. I have been trying to use swak4Foam to create a custom condition but have not had any success there. I am using OpenFOAM-v2012 and buoyantPimpleFoam to run these simulations.

Any help regarding using swak4Foam or any other method that can yield this initial U case would be very appreciated.

Thank you all for your time.
edersonj1995 is offline   Reply With Quote

Old   June 10, 2024, 05:38
Default
  #2
Senior Member
 
sbaffini's Avatar
 
Paolo Lampitella
Join Date: Mar 2009
Location: Italy
Posts: 2,190
Blog Entries: 29
Rep Power: 39
sbaffini will become famous soon enoughsbaffini will become famous soon enough
Send a message via Skype™ to sbaffini
Quote:
Originally Posted by edersonj1995 View Post
Hello everyone,

I am fairly new to CFD and I am working on a simulation that has a rather unique geometry with no inlets or outlets. The only way to create flow inside this test loop to flow is through natural convection with a heat source and sink.

My goal with the initial velocity is to start the simulation as if the natural convection had already created a somewhat steady-state flow, meaning that the velocity would could not be described in a simple XYZ fashion. I have been trying to use swak4Foam to create a custom condition but have not had any success there. I am using OpenFOAM-v2012 and buoyantPimpleFoam to run these simulations.

Any help regarding using swak4Foam or any other method that can yield this initial U case would be very appreciated.

Thank you all for your time.
Can't help on OF and related issues but, could you elaborate more? Because, as a matter of fact, actually solving the flow field is indeed one of your best shots at this, at least for general commercial solvers (I don't know if OF has specific issues with this kind of flows).

What, instead, you really need to account for in such flows is the fact that the system mass won't change, so your initial density specification will fix it (can't say if OF is broken on that in any way). So, if you use Boussinesq, your constant density will be it, otherwise the suggestion is to proceed with a transient, non constant density, calculation where the initial density field comes from your initial pressure and temperature (if that actually makes sense with any OF solver... hopefully it does).
sbaffini is offline   Reply With Quote

Old   June 10, 2024, 11:49
Default
  #3
New Member
 
Ederson Jaime
Join Date: Jun 2024
Posts: 3
Rep Power: 2
edersonj1995 is on a distinguished road
Thank you, that makes sense for what I should be calculating for. However, my biggest problem is implementing this calculated velocity/equation on the OF solver.

As far as the model itself, I unfortunately cannot go too in-depth on its geometry. Essentially the problem stems from the lack of inlets and outlets to drive flow and an initial condition velocity that is acting in many directions in different parts of the test loop simultaneously. I believe the only way to model this would be with a custom field where I can input these initial velocity conditions. My biggest problem is understanding if that is possible on OF and how I would implement this solution.
edersonj1995 is offline   Reply With Quote

Old   June 10, 2024, 12:17
Default
  #4
Senior Member
 
sbaffini's Avatar
 
Paolo Lampitella
Join Date: Mar 2009
Location: Italy
Posts: 2,190
Blog Entries: 29
Rep Power: 39
sbaffini will become famous soon enoughsbaffini will become famous soon enough
Send a message via Skype™ to sbaffini
Ok, I now probably see better what your concern might be. In these problems the driving force must be thermal, of course.

You either have thermal bcs that will set some kind of motion (i.e., different walls at different temperatures) or some heat source/sink or, eventually, an initial temperarure distribution in case you are interested in its transient to equilibrium.

Excluding the latter case, you don't need to worry about initial conditions.
sbaffini is offline   Reply With Quote

Old   June 13, 2024, 08:45
Default
  #5
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,747
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
It would of course be helpful to actually describe the issue!


funkySetFields and swap4Foam is obsolete. Does it even compile? in v2012? Probably not


Newer foam versions should be using setExprFields, which is setFields with expressions and conditions, which is exactly what funkySetFields allowed you to do before setExprFields became a built-in tool
LuckyTran is offline   Reply With Quote

Reply

Tags
openfoam, swak4foam

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
boudary condition for 2 inlets 2 outlets salomama OpenFOAM 2 August 17, 2018 13:48
Initial velocity condition on a system coupling useless!!! acasas FLUENT 11 April 1, 2015 17:31
critical error during installation of openfoam Fabio88 OpenFOAM Installation 21 June 2, 2010 04:01
OF 1.6 | Ubuntu 9.10 (64bit) | GLIBCXX_3.4.11 not found piprus OpenFOAM Installation 22 February 25, 2010 14:43
Problems in compiling paraview in Suse 10.3 platform chiven OpenFOAM Installation 3 December 1, 2009 08:21


All times are GMT -4. The time now is 17:15.