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

Fortran - Lid-Driven Cavity Boundary Conditions Error when using SIMPLE method

I am studying Numerical Methods for incompressible flows. Part of the tasks is to model the lid-driven cavity problem in 2D using the SIMPLE method. I have been provided with Fortran code that is working and solved. However, is for a channel flow…
Xray25
  • 115
  • 13
0
votes
0 answers

ANSYS Fluent: Blower flow through an oven

I am creating an 2D transient simulation environment in Ansis Fluent for a industrial oven, where a blower have to create air and hit flow inside the oven through a heat exchanger. I can create a pressure inlet and pressure outlet back to back for…
0
votes
0 answers

CFD in C++, Lattice boltzmann method, I dont know what im doing

I'm trying to create my own CFD in C++. I have watched some videos on youtube about the Lattice Boltzmann method, but I cant get my simulations to look like the simulations performed in the videos with lattice Boltzmann implemented in Python. I use…
Christian
  • 1
  • 2
0
votes
0 answers

Create hollow cylinder mesh in OpenFoam (journal bearing simulation)

I need to do the journal bearing simulation on OpenFOAM and I have tried several days even setting up the mesh by myself, however, what I get is the full cylinder, instead of the attached picture. Also appreciate if you can help with how I should…
Farid Huseynov
  • 149
  • 1
  • 11
0
votes
0 answers

Time loop won't start with simpleFoam on openfoam

I started doing my first project after having done some tutorials on openfoam. So I just did a simple Ahmed Body.Blockmesh and Snappyhexmesh are both running, I checked the mesh and it seems fine(even in Paraview). However, when I use simpleFoam,…
maths_mz
  • 1
  • 1
0
votes
1 answer

How can I use the SimpleGenericOrifice of the Modelica Standard Library to impose pressure loss in a pipe?

I would like to model an hydraulic network where I use the Modelica.Fluid.Fittings.SimpleGenericOrifice as a seal so I can impose the pressure loss of a pipe. Using the formula in the documentation, I can calculate the zeta coefficient of the…
maxime3359
  • 75
  • 6
0
votes
0 answers

Persisting medium issue after defining Medium in Open Modelica

In Open Modelica Fluid Environment, I´m seeing the Error "Medium is partial, name lookup is not allowed in partial classes." Which is commonly solved properly defining the media in each element. I followed the related instruction of the post (How to…
Werner
  • 1
0
votes
1 answer

COMSOL: Diffusion in Transport of Diluted Species Produces Unphysical Results

I am simulating Transport of Diluted Species inside a pipe segment in COMSOL Multiphysics. I have specified an initial concentration which produces a concentration distribution around a slice through the pipe at t=0. Moreover, I have a point probe a…
0
votes
1 answer

How to visualize a vtu file in python?

I am using meshio package to extract the information out of a vtu file that represents the 2d version of flow past a cylinder (Von-Karman vortices) at a Reynolds no. of 220 for one time-step. I am able to extract the x and y coordinates in a…
0
votes
1 answer

FiPy Modelling water pumping with FiPy

I am trying to model water pumping with Fipy in a domain where I want to simulate diffusion and advection. Water is extracted from one point, and is discharged in another point. However, I am having issues with regard to the definition of the…
Toni P
  • 47
  • 5
0
votes
1 answer

How to add or delete fluid in LBM(lattice boltzmann method)

LBM focuses on fluid clusters, and uses the macro fluid density and velocity to calculate the equilibrium distribution function, and then uses the evolution equation to achieve system iteration. But if we add the same fluid to the lattice grid…
luckintt
  • 63
  • 6
0
votes
2 answers

(Computational fluid dynamics) Problem with arrays. Why is my C program outputting -1.#IND00

I have a problem with a program i'm writing in C that solves the 1D linear convection equation. Basically i have initialized an two arrays. The first array (u0_array) is an array of ones with the arrays elements set equal to two over the interval or…
0
votes
0 answers

Calculate Divergence of Velocity Field (3D) in Python

I am trying to calculate the divergence of a 3D velocity field in a multi-phase flow setting (with solids immersed in a fluid). If we assume u,v,w to be the three velocity components (each a n x n x n) 3D numpy array, here is the function I have for…
Nikhil
  • 545
  • 1
  • 7
  • 18
0
votes
0 answers

How to save openfoam data as a csv file?

I am working with openfoam and I want to create csv datasets for each iteration I save, for each U and p. For instance, my case converges at 320 iterations and I write to a file every 10 iterations. So, I want to save 30 files (10.csv, 20.csv,…
0
votes
1 answer

Trouble representing terms for the momentum equation using Fipy

How would i go about representing the dyad (tensor product) in the following equation? I can't seem to figure out what terms in Fipy I should be using in general. More specifically the resulting equation: I'm mostly familiar with the transient and…