|
[Sponsors] |
Innitial condition velocity for 3D test loop with no inlets or outlests |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 7, 2024, 12:29 |
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 |
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. |
|
June 10, 2024, 05:38 |
|
#2 | |
Senior Member
|
Quote:
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). |
||
June 10, 2024, 11:49 |
|
#3 |
New Member
Ederson Jaime
Join Date: Jun 2024
Posts: 3
Rep Power: 2 |
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. |
|
June 10, 2024, 12:17 |
|
#4 |
Senior Member
|
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. |
|
June 13, 2024, 08:45 |
|
#5 |
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,747
Rep Power: 66 |
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 |
|
Tags |
openfoam, swak4foam |
Thread Tools | Search this Thread |
Display Modes | |
|
|
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 |