# Calculation of the flow just in x direction in 3D model

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

 July 2, 2015, 10:38 Calculation of the flow just in x direction in 3D model #1 New Member   Azimi Join Date: Apr 2014 Posts: 5 Rep Power: 3 Hi bros How can I set the code or other settings to have a calculation of the fluid flow just in one direction like x. (unidirectional flow) Note that my model is 3D and I have to solve 3 equations: fluid flow, electric field and magnetic field (my model is MHD) I want to solve the electric and magnetic fileds in 3 directions (x,y,z) but the fluid flow just in x direction! Is it possible? Last edited by cavida; July 6, 2015 at 01:52.

 July 2, 2015, 12:02 #2 Member   Saideep Join Date: Apr 2015 Location: INDIA Posts: 50 Rep Power: 2 Hi, I am not sure if i understood your question properly. As you are using a 3D model all your equations and components of interest are computed in all 3 directions. Now, by your inlet boundary condition for fluid velocity{considering this as your fluid flow}, we generally specify the value for velocity of injection as 3D. Here you can specify one direction flow either of x/y/z component. Based on the equation you are solving in space the flow is propagated in 3 directions. It would get complicated if you also want to modify your solver to analyze only 1 direction flow for a 3D case. {I guess also you are damping out the accuracy of your actual solution in such case}. However if you are interested in only one set of results, you can resolve the component of fluid flow using foamCalc utility and extract essential data of interest. Hope this helps; Saideep

 July 2, 2015, 13:39 #3 New Member   Azimi Join Date: Apr 2014 Posts: 5 Rep Power: 3 Thanks for responding dear Saideep In fact I'm going to compare the results of considering 3-directional fluid flow with the results of unidirectional fluid flow, but the other fields must be solved in 3-directional. I think foamCalc just extracts the results of 3D solution and that would not work for my comparison. Last edited by cavida; July 6, 2015 at 01:52.

July 8, 2015, 16:26
#4
New Member

Bruno Blais
Join Date: Sep 2013
Posts: 24
Rep Power: 3
Quote:
 Originally Posted by cavida Hi bros How can I set the code or other settings to have a calculation of the fluid flow just in one direction like x. (unidirectional flow) Note that my model is 3D and I have to solve 3 equations: fluid flow, electric field and magnetic field (my model is MHD) I want to solve the electric and magnetic fileds in 3 directions (x,y,z) but the fluid flow just in x direction! Is it possible?
What you could do, I am not sure is multiply your flow equations by a [1 0 0]^T vector.

So this way for Ux you would have a normal navier stokes equation, but for the rest you would just have ddt=0 and this would lead to a trivial 0=0 solution. This is the easiest way I can think off to disable the other components while maintaining a 3D mesh... Someone else might have a better solution

 Thread Tools Display Modes Linear Mode

 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 OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post JasonG OpenFOAM Running, Solving & CFD 1 September 25, 2014 07:26 volo87 CFX 5 June 14, 2013 17:44 student4326 OpenFOAM 6 February 10, 2012 10:36 Derek Jing FLUENT 0 May 8, 2002 22:32 J Roued Main CFD Forum 13 August 31, 1999 13:32

All times are GMT -4. The time now is 13:07.