Questions tagged [fluid-dynamics]

In physics, fluid dynamics is a subdiscipline of fluid mechanics that deals with fluid flow—the natural science of fluids (liquids and gases) in motion.

146 questions
0
votes
0 answers

Fluid Computation in Python - Available Options

I have a project to simulate the pressure exchange between multiple connected volumes with valves. In the picture above you can see that each tank has a Pressure, Volume, and Temperature. There are valves between each of the volumes that can be…
0
votes
1 answer

Finding the Stokes Number of a Microcarrier Particle

I'm trying to model the flow and suspension of microcarriers (particles that are used as surfaces for cells to attach to and grow on) in a CFD application. I know some basic characteristics of the particles (they're called "Cytodex", about 180 µm…
DP.
  • 581
  • 4
  • 15
0
votes
0 answers

Venting time of a Pressurized tank

I am trying to calculate venting time of a pressurized tank filled with saturated water at 800 PSIG. The vent from the tank is a 2 inch line 12 ft long which goes into 6 inch line 10 ft long and then it goes into 8 inch line 150 ft long. These…
0
votes
2 answers

Solving natural convection equations (heat and flow) with the shooting method

TL;DR I've been implementing a python program to solve numerically equations for natural convection based on a particular similarity variable using runge-kutta 4 and the shooting method. However I don't get the right solutions when I plot it. Did I…
0
votes
1 answer

python is giving me too many indices for array

In my function cylinder stream function I am getting an output of (-V_inf*y[i,j]-(C_s/(2*pi))*log(sqrt((x[i,j]-S_1[0])**2+(y[i,j]-S_1[1])**2)) IndexError: too many indices for array can someone help fix this issue? import sympy as s import…
joseph
  • 1
  • 1
0
votes
0 answers

i am having probably an issue in the stream function

my code below is supposed to plot the stream function around a body where i decided to put vortices all over the body to indent it in addition to the uniform flow to the stream function .For a simple stream function i am able to get a plot but for…
0
votes
1 answer

Smoothed Particle Hydrodynamics: Weird clustering of particles. Is that normal?

I implemented a rather simple SPH simulation using a cubic-spline-kernel and a simple non-iterative pressure solver as described in this PDF in equation 9. I followed algorithm 1 of that paper (including gravity). The resulting particle behaviour is…
Lenny
  • 71
  • 6
0
votes
1 answer

Is MULES the right choice for modified transport equation? [OpenFOAM]

I want to solve the following modified transport equation for the calculation of sensitivities: Within interFoam, I implemented the following code right after solving alphaEqn.H (along with initial fields dAlpha and dU, calculation of dPhi and…
till Kadabra
  • 478
  • 9
  • 21
0
votes
1 answer

Python Heat Distribution Plotting

i have been trying to simulate a flow distribution in a space but couldn't figure out how to properly do it in python using matplotlib,seaborn,plotly etc. I have 3 variables X : 0 to 0.4 ( meshed to 142 pieces ) Y : 0 to 0.45 ( meshed to 17767…
Tolga Oguz
  • 142
  • 1
  • 14
0
votes
1 answer

Can NN predict the pressure by velocity instead of solving the Poisson equation?

In imcompressible CFD code based on Chorin's projection method, the velocity is divided into 2 parts: $\Delta u=\Delta u^*+\Delta u' $, where $\Delta u^*=\nu \nabla^2 v+f$. In classic method, pressure #p# would be solved by a Poisson equation, then…
Nothingts
  • 21
  • 2
0
votes
1 answer

How do I use quiver in Python for polar?

Firstly, yes I have read previous threads and documentation about this issue, for example How to make a quiver plot in polar coordinates. This didn't help me all the way. Let me show you what I am working with and then some code. This is a…
0
votes
1 answer

Nonlinear differential equation, how do I solve this numerically in MATLAB?

I have been working on a project where I need to find a solution to the given nonlinear differential equation, see figure below: Now, I have tried using matlabs built-in function bvp4c, but the syntax is difficult and I don't know if the results…
0
votes
2 answers

Why does a decrease in cross-sectional area increase the pressure

When the cross section of the flow tube decreases, the flow speed increases, and therefore the pressure decreases. can someone explain to me why this is true, i would think that as the cross section decreases the pressure would also increase .
Катя
  • 21
  • 1
  • 1
  • 7
0
votes
1 answer

Computational Fluid Dynamics and C++

I started to work on my graduation project and it’s about CFD and searching algorithms. My goal is creating 3d models randomly and with data from my own CFD program, optimizing them automatically using searching algorithms for creating an optimized…
0
votes
1 answer

About symbolic MATLAB

What is wrong with the following code? clear all syms x y a ; u=2*x*y; v=a^2+x^2-y^2; diff=diff(u,'x',1)+diff(v,'y',1); if diff==0 disp('Liquid motion is possible.') disp('Stream function exists.') else disp('Liquid motion is not…