Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [fluid-dynamics]

The study of the properties of fluids and gases in motion

2
votes
1answer
84 views

Computational Fluid Dynamics: Question on a third-order accurate finite difference approximation

According to this paper the following finite difference approximation is third-order accurate: $$\frac{d\rho_j}{dx}\approx\frac{2-\eta}{3}\frac{\rho_{j+1/2}-\rho_{j-1/2}}{\Delta x}+\frac{1+\eta}{3}\...
1
vote
0answers
56 views

Vortex Lattice Method: better basis than horse-shoe vortex?

I read several introductory texts about potential flow and vortex lattice method. Basically, it is fitting of some velocity field described by conditions on velocity at some control points using basis ...
5
votes
3answers
262 views

How can I make sure the flow is divergence-free when I use moving mesh?

I am using projection method and P2/P1 finite element method to solve the incompressible Navier-Stokes equations while the mesh is constantly adapted as the body moves (edge swapping, splitting and ...
1
vote
0answers
79 views

Computational approaches to analyse numerical solutions

I apologise beforehand if the question isn't well defined or is too broad, I'm just having some difficulty finding the information I need. I also apologise if this should have been asked on stack ...
7
votes
1answer
146 views

Pressure definition/convergence issues for the Incompressible Navier-Stokes when using a stabilized P1-P1 finite element formulation

I believe this might be a recurring topic, but i have not found a post that directly related to this issue. I come from a finite volume background and my experience is more with predictor-corrector ...
7
votes
4answers
192 views

In Matlab, how can I be consistent with units?

I am modeling some aerodynamics equations and am using meters / centimeters, kilograms, and seconds. I've heard that, "matlab doesn't know units". So, how can I make sure that it does? Just ...
1
vote
0answers
51 views

Detecting stability in solutions to coupled nonlinear equations in aerodynamics,

I'm studying a quasi-steady force model (published in a fluid dynamics journal) that consists of coupled, nonlinear ODEs that describe unsteady aerodynamics -- recently, my advisor and I have found ...
0
votes
2answers
220 views

How to represent CFD result when I use grid-centered FVM?

My variables are stored at the center of the cells. How can I transfer these values to grid points? If I calculate the algebraic average value there may be a shock.
1
vote
0answers
40 views

CFD Mass exchange across a reactive front

I have a CFD solver at hand which can deal with 2 phases and so far is able to exchange momentum and energy across the interface, where both phases meet. How this is done is well documented in the ...
1
vote
0answers
95 views

Definition of CFL number in Arbitrary Lagrangian-Eulerian framework

In an Eulerian frame of reference, the CFL number is defined as $$\sigma=\frac{u \Delta t}{\Delta x}$$ with $u$ the magnitude of the fluid velocity. A restriction such as $\sigma<1$ for time ...
1
vote
1answer
162 views

Robust/Tested Solver for incompressible 2D Euler (Fluid dynamics) Equation

I am trying to locate suitable computational algorithms for a optimization problem that requires repeated solution of transient 2D incompressible Euler equation on a 2D domain (say rectangular). My ...
0
votes
0answers
76 views

Reconstruction of cells information when given mesh in polyMesh format

The polyMesh format used in OpenFOAM is an intelligent format for which 'cells' file, i.e. the file giving list of nodes that make a cell, is not needed. The way to reconstruct geometry data such as ...
1
vote
1answer
72 views

Are there generic formulations of Riemann solvers?

I have been following Toro's book on Riemann solvers to implement a finite-volume scheme for computational fluid dynamics. The Riemann solvers presented in the book seem to be fairly tightly coupled ...
1
vote
0answers
218 views

Solution to 1D consolidation problem python implementation

A solution to the 1D consolidation problem is given by $$\frac{\partial}{\partial t} p = c_{v} \frac{\partial^{2}}{\partial y^{2}} p$$ where $p$ is the pore water pressure, $c_v$ is the ...
5
votes
3answers
1k views

Galerkin method: Test functions vs. Basis functions

I'm a novice to finite element and I'm finding quite hard to find the actual difference between Test function(s) and Basis function(s). I would be glad if somone could explain me that and point out ...
0
votes
2answers
224 views

Boundary conditions for streamlines in enclosed flow

I am trying to solve Lid driven square cavity flow problem of Stokes equation using finite element method. I have boundary conditions for velocity as zeros on every boundary but u=1 on top boundary. ...
1
vote
3answers
539 views

Pressure boundary condition in lid driven cavity using finite element method

Thank you all 1.) I am trying to solve lid driven cavity problem for an incompressible Stokes and Navier Stokes equations using general "Mixed" finite element method. dirchlet boundary conditions are ...
1
vote
0answers
47 views

Extrapolating to non-fluid cells (for Shallow Water Equations), for a shore/beach?

The water height $h$ and 2d velocity field $(u,w)$ are "extrapolated to non-fluid-cells, i.e., setting $h$ equal to the value in the nearest fluid cell." [Bridson] I'm using finite differences. ...
1
vote
3answers
127 views

Numerical Calculation of the Fluid Stress Tensor

I have been looking into simple ways of calculating numerically the total fluid stress tensor $ \pi_{ij}$ if the flow field is known in every $ x,y,z $ point. Applying the fluid stress equation (see ...
0
votes
1answer
144 views

Turbulent energy spectrum from isotropic turbulence field in a box (bis)

I'm trying to reproduce the work in computing turbulent energy spectrum from isotropic turbulence flow field in a box but I have a hard time understanding James' answer about the binning part. Would ...
2
votes
1answer
123 views

Order of accuracy in a combined scheme

I am trying to use a combination of JST and ROE scheme for the RANS solution of an aerodynamic problem. I notice that the ROE scheme performs poorly in terms of the convergence in the drag counts for ...
1
vote
0answers
35 views

How to implement boundary conditions in arbitrary geometries, in MD\Lagrangian FD simulations

Let's say I have a random arbitrary geometry, like this one https://ibb.co/dG8fUa (something I just made up). I make one of these in 3D in SolidWorks. I have molecules/particles coming in through the ...
1
vote
3answers
190 views

Best way to track parameters and results, in your experience (i.e. how do you do it)?

Computational Science has many more parameters than my previous programming, and I'm finding it difficult to keep track. What's the best way to track them? editing source, commenting-out. Good for ...
3
votes
1answer
142 views

Reasons to choose LES in stead of RANS models? (turbulence)

In oceanography, is there any particular reason why choosing large eddy simulations in stead of RANS (regardless of the type of flow)? In both cases, 2d simulations would be used (shallow water model)....
1
vote
0answers
211 views

1d turbulent energy spectra in homogenuous direction (non-isotropic)

I am trying to compute the one-dimensional energy spectra for my channel-flow simulation. I have already written a post-processing script to achieve this, however I need to validate my code before ...
1
vote
0answers
43 views

Perfect filtering of high frequencies in 2D FFT (Multidimensional 2/3 Rule)

Let $u_n$ be an array containing discrete values of the function $u(x,y)$. Performing a 2D FFT to this array we obtain $\hat{u_n}$ representing the values of $\hat{u}(k_x,k_y)$. I would like to ...
4
votes
1answer
173 views

Resources for solving fluid-structure interaction problems

I would like to get started solving Fluid-Structure interaction problems. I already have some experience with Finite Elements, including my own MATLAB and Julia software packages for developing ...
0
votes
2answers
125 views

If a numerical solution remains constant for different grid sizes, what does it mean?

I'm testing a finite volume scheme, Godunov type solver, using a problem with analytical solution. I'm not able to reproduce the solution, which includes source terms. I tried with different mesh ...
1
vote
0answers
224 views

Physics of explosions: just vorticity?

eg 1 2. Is it just vorticity? What's actually happening? (Similar: steam engines, volcanoes, clouds). examples are grid-based, using "vorticity confinement" in Phoenix FD. EDIT Some techniques: "...
1
vote
0answers
44 views

Simulation of 2D impulse response using finite volume

Finite volume methods can be used to simulate the acustic wave equation (linearized Euler equations) in complex domains. I have developed a FV and a Discontinuous Galerkin code for 2D acoustic ...
3
votes
2answers
337 views

In practice, what are the most useful ways to visualize 2d fluid flow, to tell what is happening in the simulation? Esp for verification and debugging

My simulation creates a 2d grid of vectors and scalars (EDIT of velocity, depth etc), at 60 frames per second. Is it correct? It looks sort of right... but who knows? How can I tell what's happening - ...
1
vote
0answers
45 views

How is the Gastner-Newman equation implemented to create value-by-area cartograms?

There is a paper called "Density-equalizing map projections: Diffusion-based algorithm and applications" by Michael T. Gastner and M. E. J. Newman, which explains their algorithm (which is based in ...
2
votes
2answers
276 views

Can we simulate compressible flows by simple direct explicit calculation, without solving systems of linear equations (such as Poisson eq)?

Is this is plausible at all? It seems the most obvious/naive approach, so there's probably good reasons why it's not used - what are they? Viscosity is not important. Starting with inviscid Navier ...
1
vote
0answers
41 views

How do we implement Parameter free generalised Moment limiter in 1D Case in Discontinuous Galerkin methods?

I am referring to this paper:- "A Parameter-Free Generalized Moment Limiter for High- Order Methods on Unstructured Grids " by Michael Yang and Z.J. Wang. http://dept.ku.edu/~cfdku/papers/AIAA-2009-...
4
votes
1answer
270 views

Can we simulate incompressible flows using the (slight) density changes to give pressure?

A common approach says an incompressible flow has velocity divergence of 0; use this to solve for pressure in the Navier Stokes momentum equation. Or, using the Helmholtz Decomposition "project" the ...
4
votes
2answers
190 views

Preconditioner for the GMRES method in the Uzawa algorithm

I'm trying to solve \begin{equation}\left\{ \begin{split} \frac{\partial u}{\partial t}+(u\cdot\nabla)u-\nu\Delta u+\frac1\rho\nabla p&=f\;\;\;\text{in }\Lambda\\ u&=0\;\;\;\text{on }\partial\...
2
votes
1answer
83 views

Deposition model in laminar flow

I have a chamber full with a fluid flowing horizontally in laminar regime from one side to the other. It carries a suspension with concentration $c$. This suspension also falls to the bottom of the ...
1
vote
0answers
152 views

Outflow boundary condition - second derivative of velocity

Consider a fluid flow simulation in a pipe. At the outflow, instead of explicitly imposing a boundary condition, I linearly extrapolate information from the interior (for velocity components). This ...
1
vote
0answers
237 views

How to perform Taylor series expansion consisting of cell averaged derivatives in a computational element?

I have encountered the term cell "Cell averaged derivatives" and "Taylor series expansion using cell averaged derivatives about centroid" in the context of polynomial representation in any cell (...
0
votes
3answers
2k views

What is the difference between MATLAB and FORTRAN?

In our university some Ph.D students for computational methods prefer FORTRAN over MATLAB. I can't understand why? What is the difference between them when are used in computational methods like ...
4
votes
0answers
171 views

Rhie--Chow interpolation on PDE level

The Rhie--Chow [1] interpolation seems to be a standard tool in the Finite-Volume discretization of incompressible flows. It is commonly defined on the discrete level [2]. In the lecture notes [3] --...
6
votes
2answers
432 views

Reference request for computational fluid dynamics

I have good background of finite element methods and continuum mechanics and I am familiar with fluid mechanics. My aim is to understand the required theory and to write my own simple codes using ...
1
vote
4answers
268 views

Mass transport in porous media

My goal is to numerically solve the convection-diffusion equation of the form: $$\frac{\partial C}{\partial t} = \nabla (D \nabla C) - \nabla (v C)$$ $C$ is concentration and $D$ is the diffusivity ...
1
vote
0answers
83 views

How do we derive the elemental equation for Discontinuous Galerkin method using Centered Numerical Flux?

If we take a 1st order polynomial approximation in each cell, we can find the (2x2) -mass matrix, differentiation matrix, and flux matrix through the integration of Lagrange polynomials. However, I ...
1
vote
0answers
71 views

Modelling fracture flow in stress field in COMSOL [closed]

I am new to COMSOL and I want to model fluid flow in stress field. As starting point I want a simple 2D box having a fracture from right to left while pressure gradient vertically. I want to know the ...
4
votes
1answer
166 views

Is it possible to solve Euler equation numerically without using any flux limiter (in DG scheme)?

I have recently learned about Discontinuous Galerkin method to solve differential equations and I was trying to implement it to solve Euler equation. For now, consider the standard Sod Shock Tube Case....
2
votes
1answer
50 views

Can 3rd order TVD admit perfect shift for Upwind 1D Advection equation?

I recently coded a 1 stage and 3 stage optimal TVD-RK explicit scheme using eqn 3.3 here http://www.ams.org/journals/mcom/1998-67-221/S0025-5718-98-00913-2/ on the equation Ux+Uy=0, where x and y ...
4
votes
4answers
1k views

Practical coding resources for new CFD practicioners

There seem to be many books and papers that explain various CFD methods in great detail, but unfortunately I have not been able to find many good resources of such methods implemented in codes such as ...
1
vote
2answers
73 views

Avoid component mixing in eulerian simulation of plastic deformation of solid

Just for my interest I'm thinking how to make some cheap-and-dirty simulation of processes such as: penetration of metal plate by projectile explosion of shaped charge (for example https://www....
4
votes
1answer
152 views

Numerical computation of the velocity in the steady Navier-Stokes equation

I've asked this question on Math.SE too. Let $d\in\left\{1,\ldots,4\right\}$ $\Lambda\subseteq\mathbb R^d$ be bounded, nonempty and open and $\partial\Lambda$ be Lipschitz $V:=\left\{u\in H_0^1(\...