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

solveing Colebrook equation using Newton in Matlab

I make this script: This part is for creating de variables Re and Ru so, I can replace use another. Next, create the expression so MATLAB can derivate it. Re = 152788; % Reynolds Ru = 4e-05; % roughnesss syms x a b dy =…
AnesG
  • 275
  • 2
  • 17
0
votes
1 answer

Merge colour of zero value points from visualisation field to background colour in Paraview

I use Paraview to visualise flow field. The data is rescaled in the range [-a, a] as the picture shown. In this case, points with non-zero value only occur in the middle and most of points are with zero value. I would like to ask for help how can I…
Yongxin
  • 173
  • 2
  • 9
0
votes
1 answer

Implementing fast numerical calculations in R

I was trying to do an extensive computation in R. Eighteen hours have passed but my RStudio seems to continue to work. I'm not sure if I could have written the script in a different way to make it faster. I was trying to implement a Crank–Nicolson…
ToNoY
  • 1,358
  • 2
  • 22
  • 43
0
votes
2 answers

CSS : How to make two column right fluid left fluid depend on right

I already search and there is no exactly solution for me. I am trying to making Two Columns: Left fluid + Right fluid. Left column is contain input box with 100% width and the left column width is depend on right column width. B is just a text…
pors
  • 191
  • 2
  • 3
  • 15
0
votes
0 answers

3D Node Organization - Compare and/or Sort

I have a huge data set comprised of 3-dimensional nodes (i, j, k) that form a cube in space. Each node has an x, y, z component to model flow thru the cube. I need to organise these nodes efficiently (large data set) by comparing the delta x, y, and…
CSuch
  • 1
  • 1
0
votes
1 answer

Fluid simulation incompressible fluid

In the fluid simulation based on a paper by Stam, fluid is modeled as a grid of densities. The densities "usually take a value between zero and one", but can be greater. Boundaries are implemented essentially as described in the paper: A simple…
qwr
  • 9,525
  • 5
  • 58
  • 102
0
votes
0 answers

Secant method, negative answers

I am trying to write a program to solve for pipe diameter for a pump system I've designed. I've done this on paper and in excel and understand the mechanics of the equations. I would appreciate any guidance. At this point I am compiling but getting…
Jake
  • 13
  • 5
0
votes
2 answers

Secant method solving for pipe diameter

I am trying to write a program to solve for pipe diameter for a pump system I've designed. I've done this on paper and understand the mechanics of the equations. I would appreciate any guidance. EDIT: I have updated the code with some suggestions…
Jake
  • 13
  • 5
0
votes
1 answer

Not getting results for a finer mesh/grid

Is it possible that a particular scheme (MAC in this case) gives accurate results for one grid size but inaccurate/no results for finer grid size or finer mesh? If yes, then how or why?
0
votes
1 answer

Particle Based Viscoelastic Fluid Surface Tension Problems

I've been recently working on a JS program that models this scholarly article. The problem I've been recently having is this: "Surface tension is usually caused by attraction between particles. Inside the fluid, this attraction, cancels out, but…
0
votes
1 answer

2d linear convection in c++ (segmentation fault)

im following Dr. Lorena Barbara's 12 steps to Navier stokes equation (http://lorenabarba.com/blog/cfd-python-12-steps-to-navier-stokes/) structure but I'm not sure how to do the 2d linear convection. I was wondering if anyone here would be familiar…
user2804865
  • 976
  • 2
  • 9
  • 15
0
votes
0 answers

Programming a cylinder in a flow using the VIC method

I am still new in the programming world. I have a small school project where i have to program a flow pass a cylinder using the VIC (Vortex in Cell) method. I already have the program for VIC method but i don't know how to apply it on a…
0
votes
1 answer

Simulation of an object hitting a liquid surface in C++

I'm fairly familiar with basic programming concepts, and most of my programming experience lies in MATLAB. I have some experience with C/C++, but not very much. I want to teach myself C++ through a self-initiated project that I deem to be cool…
Shash
  • 43
  • 5
0
votes
1 answer

Why are Computational Fluid Dynamics Problems Difficult to Solve in Parallel Processing?

I've heard this in distributed computing circles. I'm no mechanical engineer. Can you tell why this is so? And are there any solutions to this? P.S: can I use the Finite Element method as a solution?
0
votes
0 answers

Jacobi Iteration object in fluid c++

I'm writing a program that calculates the velocity of a certain current around an object like for example a square. Now, I use the Jacobi Iteration method and when I run it the results aren't what I'm expecting. I have no idea what I'am doing wrong.…
1 2 3
9
10