Questions tagged [finite-volume]
Referring to the discretization of partial differential equations using Finite Volume Method.
265
questions
4
votes
0
answers
120
views
FVM for non-regular domain with triangular mesh
Setup
The 1D convection-diffusion equation is given by:
\begin{equation}\tag{1}
\frac{\partial u}{\partial t} + v \frac{\partial u}{\partial x} - \mu \frac{\partial^2 u}{\partial x^2} = 0,
\end{...
1
vote
1
answer
82
views
Adding a diffusion term to the MUSCL - Kurganov and Tadmor central scheme
Im currently using a MUSCL scheme with a rusanov flux and Van Leer limiter to simulate the 2d euler equations:
$$ \frac{\partial \rho}{\partial t} + \frac{\partial \rho v_x}{\partial x} + \frac{\...
2
votes
3
answers
200
views
Approximation of derivatives in the finite volume method
I am looking into the finite volume method and I have come to a problem with discritisation. Suppose I am looking at a particular cell(I'm dealing) with cartesian grid. at the points $(X_{i},Y_{j}),(...
2
votes
2
answers
126
views
How is entropy taken into account in a FV solver?
When solving for a given PDE, how is the entropy taken into account? Does the fluxes has another form? Or is the entropy PDE for a given entropy-flux included in the solver?
2
votes
1
answer
84
views
Symmetrization of Laplacian Matrix Operator (finite volumes)
The aim is to construct symmetric Laplacian matrix $L$ for 2D square domain.
I have the following discretization of second derivatives on non-uniform grid (will skip the steps of derivation, any ...
0
votes
0
answers
28
views
Parallel Block-Structured class abstraction for FDM
I’m currently developing a FDM/FVM (using contravariant coordinates) code using Fortran and Co-Arrays (SIMD, in general), and so far I have all sparse matrix (BiCGStab, working on AMG) solvers and ...
0
votes
0
answers
39
views
Refluxing step on Finite difference AMR
Hi I am a computer scientist working on MHD code for astrophysics simulation. We use a finite difference scheme where we first solve the spatial derivatives and with them solve the right hand side and ...
0
votes
0
answers
40
views
How to find volume of a depression in a bone
This is known as an articular pillar. It lies on the outer surface of the bone. We have 3D Slicer openCV, but we are unable to find it as its a little irregular in shape and also its 3D in nature. ...
0
votes
0
answers
56
views
Finite volume method using Chebyshev polynomials
I want to solve the following set of coupled advection-diffusion equations:
$$
\frac{\partial f}{\partial t}=\nabla\cdot(\kappa\nabla f)+\nabla\cdot(\boldsymbol{u}f)+s_f(g),
$$
$$
\frac{\partial g}{\...
3
votes
2
answers
174
views
Non-conservative advective term in a finite volume scheme
I am interested in solving this set of nonlinear couples advection-diffusion equations using a finite volume scheme:
$$
\frac{\partial f(x,y)}{\partial t}=-(\boldsymbol{u}+\nabla\eta)\cdot\nabla f +\...
1
vote
1
answer
142
views
Non-Uniform Grids: Approximation Quality: First Order Finite Difference vs. First Order Finite Volume
Consider the advection/transport equation in 1D with constant velocity $a(x) \equiv 1$
$$u_t(t,x) + u_x(t,x) = 0$$
on a, say, periodic domain.
On uniform grids $$ \{x_i\}_{i = 1, \dots, N}, \quad x_{i ...
1
vote
0
answers
69
views
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 ...
1
vote
0
answers
62
views
Exponential Integrator to solve PDE with Stiff term
I wish to solve an equation like the following,
$$\frac{\partial f}{\partial t}+\frac{\partial}{\partial x}\left(A(x)f\right)=S(x,t)f$$
where $A(x,f)f$ and $S(x,t)f$ are the advection and the source ...
2
votes
1
answer
125
views
Numerical solution of an advection equation, $\frac{\partial P}{\partial t}+\frac{\partial}{\partial x}\left(P^{5/3}\right)=0$, with finite volume
I was trying to solve the following equation numerically,
$$\frac{\partial P}{\partial t}+\frac{\partial}{\partial x}\left(P^{5/3}\right)=0$$
I adopted the Godunov approach for discretising the ...
0
votes
1
answer
153
views
Gmsh Python: Specify mesh regularity conditons
I am using python API of Gmsh to generate a mesh for a rectangular domain. I am really new at this. My code looks like this,
...
1
vote
0
answers
82
views
(Algorithmic) Differentiation capable Finite Volume Software: Generation Jacobian
I am looking for Finite Volume Software that employs a method-of-lines like approach by constructing from the hyperbolic PDE of form
$$\partial_t \boldsymbol u(t,\boldsymbol x) + \nabla \cdot \...
0
votes
0
answers
64
views
Navier Stokes Equation Discretization by upwind scheme
I've been reading this paper regarding the SIMPLER algorithm in CFD and I don't understand exactly how the discretized equation mentioned by the author is arrived at. It says that the convective terms ...
0
votes
0
answers
49
views
Parallel Plate Flow simulation using SIMPLER Alogortithm
I am new to the community and CFD itself and am working on my first CFD program in Scilab based on the SIMPLER algorithm in Scilab i.e. modeling a flow between parallel plates with entrance region. I ...
0
votes
0
answers
61
views
Can I use MOL to solve 2D steady state PDE in terms of r and z spatial coordinates?
recently I need to solve a 2D steady state PDE equation.
It’s not time dependent, and the only two independent variables are z and r direction.
So far for this solution, I was thinking using Method ...
1
vote
1
answer
82
views
How to solve advective equation with source term depending on variable
I have the following equation
$$
\dfrac{\partial s}{\partial t} + \nabla \cdot \left( \vec{v} s\right) = f(s)
$$
Where $f(s)$ is an explicit source term that depends on $s$, e.g., ($\sin(s)\;cos(s)$).
...
2
votes
0
answers
59
views
Centered finite volume scheme for an advective term on an unstructured/irregular/non-uniform grid
Consider the continuity equation
$$\frac{\partial u}{\partial t} + \frac{\partial \Phi}{\partial x} = 0$$
$$\Phi = au + b\frac{\partial u}{\partial x}$$
Suppose I want to solve the above using ...
1
vote
1
answer
65
views
Computing material derivated of tensor quantity
I would like to compute the material derivated of a tensor quantity, in the context of the finite volume method (FVM):
The equation is:
$$
\frac{\mathrm{d} \textbf{T}}{\mathrm{d} t} = \frac{\partial \...
0
votes
1
answer
191
views
Finite volume method for 1D heat equation in 1D
I wish to solve the following using the finite volume method:
$$\frac{\partial u}{\partial t}=\frac{D}{r}\frac{\partial}{\partial r}\left(r\frac{\partial u}{\partial r}\right)+Q(t,r)$$
with the ...
0
votes
1
answer
71
views
How can I correctly determine velocity of a point inside a grid after using mixed finite element method to solve Poisson equation?
I am using the mixed finite element method (MFEM) to solve the Poisson equation:
$$\Delta h = 0,$$where $h$ denotes hydraulic pressure. The MFEM could determine the normal flux rate, $q_n$, through ...
4
votes
2
answers
81
views
Setting up consistency tests in FVM
I am in need of some help to valdate a consistency test with a finite volume method solver.
The idea is the following:
Based on the method of manufactured solutions (MMS) I am supplying the analytical ...
2
votes
1
answer
138
views
Solving a set of mixed conservative/non-conservative equations with the finite volume method
I want to solve this set of 2D advection-diffusion equations of this form in spherical coordinates:
$$
\frac{\partial f}{\partial t}=-\mathbf{u}\cdot\nabla f+\eta\nabla^2f+\eta_1(\mathbf{e}_1\cdot\...
1
vote
0
answers
79
views
TVD slope / flux limiters formulation
Even if the formulation is the same the TVD slope limiter can be applied:
to state reconstruction at the interface, in 1D FV formulation, we reconstruct the $Q^*_{j+1/2}$ and the $Q^*_{j-1/2}$ in the ...
2
votes
1
answer
83
views
The effect of grid size on the total flux when solving Darcy flow with mixed finite element method
I am solving Darcy flow now with mixed finite element method. The Dary flow is
$$\begin{equation}\begin{aligned}k^{-1}\mathbf{q} + \nabla h=0, \text{ in } \Omega\\ %
\nabla\cdot \mathbf{q} = 0, \text{ ...
2
votes
0
answers
73
views
How to assign initial velocity field and handle pressure-velocity coupling in FVM?
I am trying to solve the 2D incompressible Navier-Stokes equations for laminar flow over a backward facing step using the finite volume method.
This is the plot that I generated of a generic mesh ...
0
votes
1
answer
170
views
Implementation of mixed hybrid finite element method
The mixed hybrid finite element method (MHFEM) is based on the mixed finite element method (MFEM). So, I'd recall the implementation of MFEM.
The mixed formulation of Poisson equation reads
$$\begin{...
2
votes
1
answer
417
views
Finite volume method on a nonuniform grid
I would like to ask a question on the implementation of finite volume method on a non-uniform grid in solving Navier-Stokeq equations. I will just post the screenshot of a PhD thesis, where I found ...
2
votes
1
answer
172
views
Elementary matrix of Raviart-Thomas elements
We can use the $RT0$ to solve the Darcy equation, i.e.
$$k^{-1}\mathbf{u}+\nabla p = 0, \text{ in } \Omega,$$
$$-\nabla \cdot \mathbf{u} = 0, \text{ in } \Omega,$$
$$p = p_D \text{ on } \partial\Omega,...
3
votes
2
answers
346
views
Test functions of Raviart-Thomas elements?
The test functions of general finite elements are like interpolation functions (if my understanding is correct). But how about test functions of Raviart-Thomas elements?
Let's raise the $RT0$ element ...
0
votes
2
answers
170
views
Numerical methods for Vlasov's equation
Vlasov equation is pretty straightforward
It would be easy to solve with Fem packages like firedrake, but in my case I have 6d distribution function: it depends on 3d vector of spatial coordinates ...
4
votes
1
answer
377
views
What determines the order of a finite volume scheme?
I often hear that cell centred finite volume is second order accurate but at the same time I come across notions of high order FVM flux schemes. Is there a distinction between the two? If I were to ...
1
vote
2
answers
278
views
Why aren't face integrals for an element calculated in FEM but they show up in FVM?
Consider the Laplace problem:
\begin{align}
-\nabla^2 u = f \qquad \text{in } \Omega \\
u = 0 \qquad \text{on } \Gamma
\end{align}
The weak problem is find $u_h \in V \subset H^1$ such that $\...
3
votes
1
answer
113
views
Discretizing the viscous component in 1 - D Navier stokes compressive flow
I've been working on modelling the NS equations in order to simulate shock waves. The equations are set up on the form:
\begin{equation}
\frac{\partial U}{\partial t} + \frac{\partial F(U)}{\partial x}...
1
vote
1
answer
268
views
QUICK scheme derivation
I am reading about QUICK scheme for calculating the value of unknown variable $\phi$ in finite volume method. Given a locally one dimensional flow, we assume the value of $\phi$ is computed as a 2nd ...
1
vote
0
answers
77
views
How to determine the orientation of convex/concave hexahedra?
I am writing a code that checks the orientation of a list of vertices (along with face connectivity) describing both convex and concave hexahedra. The face connectivity table stores the list of vertex ...
3
votes
1
answer
214
views
Finite Volume on Cubed Sphere
The US weather model uses an uncommon (?) discretization called 'Finite Volume on Cubed Sphere'.
To avoid the singularities that occur at the poles when using lat/lon discretization, they instead ...
0
votes
0
answers
57
views
Discretizing Multi-species Ion Exchange Equations by Finite Volume Method
I'm solving a system of multispecies ion exchange equations (diffusion+drift fluxes) in 1-d spherical domain using finite volume method to obtain the ion concentrations at the next time step. After ...
1
vote
2
answers
315
views
What is the rationale of second-order finite volume discretization?
When it comes to a second-order accurate finite volume discretization of Navier-Stokes equations, which one of the two following rationales is adopted?
1- Second-order accuracy is a direct consequence ...
3
votes
2
answers
650
views
Is mesh orthogonality important for FEM?
While studying mesh quality metrics in literature and software documentation, I've seen discussions about mesh orthogonality in Finite Volume Method (FVM) contexts, but not for Finite Element Method (...
0
votes
1
answer
223
views
How is a wall boundary implemented (using ghost cells) in a simple 2d euler flow solver?
I understand that you must reflect the velocity of the cell across the wall and store that reflected velocity in the ghost cell (which will then be used for flux/residual calculations), but that is ...
0
votes
1
answer
79
views
why is the third flux term in the conservative euler equation positive regardless of the direction of velocity?
The $\rho u^2 + p$ term corresponds to the flux of $x$-momentum through some surface. According to this equation it would give a positive momentum flux if $u$ was positive or negative. This does not ...
0
votes
1
answer
110
views
How are eigenvalues of a cell in the finite volume discretization calculated? (for euler fluid equations)
I am building a program to numerically solve the euler fluid equations based on finite volume discretization and am having trouble on a step where the eigenvalues of a cell need to be calculated ...
0
votes
0
answers
44
views
The physical meaning of conservative mass in diffusion equation
I am working on 1-D mass transient diffusion in a radial domain (spherical object) using finite volume method. My equation reads
$$\frac{\partial C}{\partial t} = D\left[\frac{\partial^2 C}{\partial r^...
6
votes
1
answer
244
views
Projection method FVM poisson part, adding source term
The idea of the method is to decompose the Navier-Stokes equation into the solenoidal and irrotational parts.
$$\frac{\partial u}{\partial t}+u(\nabla \cdot u)=-\frac{1}{\rho}\nabla p+\nabla ^2 u$$
...
0
votes
1
answer
192
views
Discretization of a non-linear ODE using FDM isn't grid indepenent
I am trying to solve the ODE :
$\frac{d^2T}{dx^2} = \omega_1 T+\omega_2 T^2$
+
using different numerical methods. I have tried the following discretizations so far and none of them seem to be grid ...
0
votes
1
answer
234
views
Unstructured mesh preprocessing
For solving PDE with self written code it is needed to preprocess the data from mesh generators. I recently started shifting from cartesian grid to unstructured.
I finished reading up to FVM part of ...