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.
Questions tagged [fluid-dynamics]
146 questions
1
vote
1 answer
Instantiation of equation
I am trying to model a pump system. The system consists of a controller, two ON/OFF valves, and a swept volume acting as a chamber. The controller is responsible for the state of the valves as well as filling the volume and pumping it.
When…

data99
- 59
- 7
1
vote
0 answers
What solver should I use for an ordinary non-linear differential equation of a first order and second degree with 3 variables on matlab?
In a fluid dynamics problem I am asked to plot the relative of a water drop falling in air with respect to time.
The relative velocity is a component of the velocity in the x,y,and z directions, I tried searching for a possible solution for this…

Abdulrahman Omar
- 11
- 1
1
vote
2 answers
Volume of liquid drained from pipe at different locations
This might be more of an algorithm question, but I'm writing it in Python.
I have a set of data on a pipeline that gains and loses altitude as it progresses. My data is two columns, the measure along the pipeline, and the elevation at that measure.…

Clive
- 79
- 1
- 5
1
vote
0 answers
Draw a truncated-cone-based vortex in matplotlib
I am trying to make a rudimentary model for the a coronal hole in my mathematics thesis. I am looking to create a plot where the radial direction of the cylinder increases with proportionally with the height and then I would like to add twists in…

K-Q
- 133
- 8
1
vote
1 answer
plotting streamlines with python
I am trying to plot streamlines and velocity potential for basic potential flows (uniform, source/sink, vortex, etc.)
I am just starting out with python and so I'm a little confused. I am following this guide..
I can plot the streamlines for the…

Devin Crossman
- 7,454
- 11
- 64
- 102
1
vote
1 answer
Potential flow, define theta in matlab
I have made this matlab script for a potential flow around a cylinder and I would like to add a point source. See the definition of point source in picture. How can you define theta in matlab? And plot this its streamlines Psi?
clear
% make…

ursmooth
- 311
- 1
- 4
- 12
1
vote
0 answers
WEBGL Fluid simulation
I am trying to get a fluid simulation to work using WebGL using http://meatfighter.com/fluiddynamics/GPU_Gems_Chapter_38.pdf as a resource. I have implemented everything but I feel like there are multiple things that aren't working correctly. I…

Luple
- 481
- 3
- 21
1
vote
0 answers
Discrete cosine transform to differentiate real symmetric function
I'd like to differentiate a real, periodic function on (0,2*pi) which is also symmetric about x=pi using a discrete Fourier transform. I have written a Python code which does this using a FFT/IFFT but this does not take into account the symmetry of…

EDK
- 63
- 5
1
vote
0 answers
total variation of a pressure field with support on the elements of a complex structure
I am trying to develop a mathematical method to calculate the
pressure field on offshore structures.
We are given the resultant force on the structure F, and a pressure
profile model pi = p0 dot(ni,nF) that our solution should follow.…

Carlos Monteserin
- 53
- 5
1
vote
0 answers
How do I create a simple model for gas diffusion (tile based fluid dynamics)
I'm toying with a 2d tile based game where you need to deal with maintaining air pressure in the planetary base you are constructing, and want to see if I can make a simple system for the dispersal of gas in a closed vacuum. For each tick of the…

revesvans
- 11
- 2
1
vote
0 answers
How to create/generate fluid water like js animation
I saw a few examples people are doing background fluid like a water.
For example this websites background: https://spotify-valentines.com/
or this hover effects between divs: http://waaark.com/
It seems to be done on canvas but the code is very…

OvidijusR
- 158
- 2
- 12
1
vote
0 answers
Error Messages by using Modelica.Fluid Library for controlled heat storage
Dear Modelica Users and Developers,
I am using the Standard Modelica.Fluid library to model a simple heat transfer problem with storages. After several unsuccessfull trials to set up a simple model I now tried to modify the examples until I am able…

user6439226
- 11
- 3
1
vote
1 answer
Why did I get a different result-plot between the two solutions?
>
Hi,
I'm using a sample problem to learn the comsol.
I would like to let my case problem (left)
3D plot, be the same as the tutorial plot (right).
My problem is that, instead of the right figure plot (that shows the resin-red color traveling from…

panos deemac
- 101
- 1
- 12
1
vote
1 answer
How to model mechanical stops to hydraulic cylinders in Modelica?
I was wondering how a mechanical stop can be modeled most efficiently.
I do a hydraulic simulation with a controlled hydraulic cylinder in OpenModelica. For the hydraulic cylinder I use the sweptVolume model from the Modelica Standard Library.
What…

Matthias Mayr
- 11
- 1
1
vote
0 answers
Fluid simulation in Matlab
I have a (vertical) cylinder in Matlab, built using the patch command. For every 'level' of the cylinder I have a different radius, so that the 3D plot displays something like this:
Also, I used a sequence of images to simulate the movement of the…

Vittorio
- 11
- 3