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
2
votes
2 answers
xunit how N to N double almost equal
My code is
public void Compare_CoolProp_with_CoreMediumDensity() {
Water coreWater = new Water(Pressure.FromPascals(101325), Temperature.FromKelvins(300));
GetCoolPropOriginal asd = new GetCoolPropOriginal();
GetCoolProp…

ORHAN TOPDAĞ
- 157
- 1
- 1
- 11
2
votes
0 answers
Strange Fluid Simulation oscillations in Unity
I am trying to implement a fluid surface simulation using the paper Fast Hydraulic Erosion Simulation and Visualization on GPU as a template to simulate water. However, I get artifacts like this:
The code for my update function is below, I have…

Brandon Fung
- 27
- 1
- 7
2
votes
1 answer
Find Normal and Tangential components of motion in box2d/matter.js
I'm trying to recreate a fluid-drag model as seen in
paragraph 2.2.1 of this paper. A working version can be seen in this this youtube movie (where I found the paper).
In the paper they state that they calculate the normal and tangential forces of…

Swen Mulderij
- 886
- 2
- 8
- 18
2
votes
1 answer
Make a multi-part "fluid body" act as one single body
I am using Phaser.js and its p2 physics in order to simulate what "fluid bodies". You can see in this example that a kind of fluid body is created (credits to John Watson). The only possible interaction is with mouse movement.
I have noticed some…

DigitalEvolution
- 345
- 2
- 5
- 16
2
votes
0 answers
Flow field around cylinder in Matlab
I'm pretty new to different plots in Matlab and I'm trying to write a code that will show the flow field around a cylinder in Matlab. I'm at the very start and first of all I want to just make the circle in a rectangular domain (cylinder should not…

user3460758
- 957
- 7
- 15
- 25
2
votes
0 answers
Linear solver implementation
I came across the following implementation of a linear solver, which is used to implement Jos Stam's stable fluids method:
/**
* Iterative linear system solver using the Gauss-sidel
* relaxation technique. Room for much improvement here...
…

Brandon
- 1,336
- 3
- 10
- 38
2
votes
0 answers
Normal Blur for Screen Space Fluid Rendering
I'm trying to achieve screen space fluid rendering, but I've run into a few issues with blurring.
From what I understand, I'm supposed to be blurring the normal map using Bilateral Filter so that the lighting does not act as if it was bouncing off…

Matt
- 175
- 2
- 12
2
votes
3 answers
Modelica: Program a static solver to converge to a solution during the simulation. CFD example
Generic question:
I work on Modelica with OpenModelica. I would like to program my own solver in Modelica to converge to a solution because I think OpenModelica can't solve my problem. Is it possible?
Specific case:
I developed a model of a…

Roland
- 135
- 1
- 6
2
votes
1 answer
Spritekit Simulating fluid currents
Is there an easy way to simulate currents within a scene? I know they offer gravity, mass, density, drag and other attributes within spritekit, but what I am not seeing, is how would I simulate a current affecting objects on the scene?
IE say I…

Speckpgh
- 3,332
- 1
- 28
- 46
2
votes
1 answer
How to create Fluid motion in android
i need to render Fluid inside a bottle and when the device is rotated

Sourav
- 607
- 8
- 9
2
votes
0 answers
How GAMG Preconditioner in OpenFOAM really works?
I use OpenFOAM for CFD simulations. A very popular preconditioner is GAMG which needs a low number of iterations per a time step in SIMPLE or PISO solvers that are used to simulate the fluid flow.
I would like to understand how GAMG prepares the…

luksmir
- 3,104
- 5
- 22
- 38
1
vote
4 answers
Beginners guide to own CFD code? 2D Euler Equation
Do you know a good and especially easy guide to code one's own Computational Fluid Dynamics solver, for the 2D Euler equations?
I just would like to understand what commercial software like Fluent is doing. And when it's easy enough I would like to…

Andreas Hornig
- 2,439
- 5
- 28
- 36
1
vote
0 answers
Getting unexpected values for Characteristic Lyapunov Exponents in Python - What could be going wrong with my implementation of Benettin algorithm?
I wrote a code to calculate the Characteristic Lyapunov Exponents in Python for a Lorenz system. I for sure did something wrong because the CLEs are way off but I cannot figure out what.
I am using the Benettin et al. algorithm.
I start by randomly…

M409
- 11
- 2
1
vote
1 answer
Fluid simulation tutorial in javascript, values never initialized?
I am looking at this snippet in a fluid simulation tutorial.
I have searched for where those values are initialised and it seems they are never written to? There is a line that initialises the array this.s.
this.s = new…

Makogan
- 8,208
- 7
- 44
- 112
1
vote
0 answers
Solving system of nonlinear equations numerically in python
I want to solve the following problem numerically and first defined it as a function:
def F(x, na=1, nb=2, L=6, A=0.09, V=0.54, dh=0.03, k=10**-2, dB=0.005, fB=38, ur=0.39, rhoW=998, rhoG=1.2, g=9.81, pu=10**5, myW = 10**-3):
#variables
…

Nikolas
- 11
- 1