CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

How to obtain the Jacobian matrix of linearized Navier–Stokes equations

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 10, 2022, 09:32
Default How to obtain the Jacobian matrix of linearized Navier–Stokes equations
  #1
New Member
 
SUN
Join Date: Feb 2022
Posts: 4
Rep Power: 4
mufeng is on a distinguished road
Dear all,
Recently, I am new to the hydrodynamics' linear stability analysis. And I have read a relative literature on linear stability analysis using openFoam(https://www.sciencedirect.com/scienc...00936116300024).
On the framework of openfoam, my question is that how to obtain the Jacobian matrix of the right handside of linearized Navier–Stokes equations as mentioned in equation(6).
All suggestions are appreciated.
Attached Images
File Type: png 1.png (93.6 KB, 18 views)
mufeng is offline   Reply With Quote

Old   March 16, 2022, 15:13
Default
  #2
Senior Member
 
Michael Alletto
Join Date: Jun 2018
Location: Bremen
Posts: 615
Rep Power: 15
mAlletto will become famous soon enough
Have a look at this. https://www.google.com/url?sa=t&sour...7Buj1hHcIWT3Ze.

There you will find the Jacobian matrix of the linear navier stokes equation
mAlletto is offline   Reply With Quote

Old   March 18, 2022, 07:39
Default
  #3
Senior Member
 
Domenico Lahaye
Join Date: Dec 2013
Posts: 722
Blog Entries: 1
Rep Power: 17
dlahaye is on a distinguished road
OpenFoam does *not* apply a Newton iteration to linearize the non-linear convective terms in the momentum equation.

OpenFoam instead employs a successive iteration (fixed point iteration, Picard iteration instead, see wiki for explanation of these terms). See openfoam documentation.

OpenFoam does not compute a Jacobian.

Examples of public domain codes that do maybe compute the Jacobian include Fenics, FireDrake, NGSolve, Gridap, Ferrite, WaterLilly and Trixie.
dlahaye is offline   Reply With Quote

Old   October 16, 2023, 15:43
Default
  #4
Senior Member
 
Sayan Bhattacharjee
Join Date: Mar 2020
Posts: 495
Rep Power: 8
aerosayan is on a distinguished road
Quote:
Originally Posted by mufeng View Post
my question is that how to obtain the Jacobian matrix of the right handside of linearized Navier–Stokes equations
I have also been searching for the same thing, and someone correct me if I'm wrong, but the Jacobian is what linearizes the equations around a certain point.

Regarding how to compute the Jacboian ...

1. Try to find out if any other research paper has already published an analytical form of the Jacobian you're looking for. I have found many for compressible euler flows, and one for navier stokes. Still searching for other research papers ...

2. If you don't find anything, you have to do it yourself. Obviously the NS equations are difficult, So, if ..

U = [rho, u*rho, v*rho, E*rho]

F = convective flux vector in x direction,

G = convective flux vector in y direction,

Computing the Jacobians dF/dU, and dG/dU is obviously a complicated thing .. because it's difficult to understand what even are the Jacobian components dF/d(rho), or dF/d(u*rho)

What I've seen other researchers do though, is reformulate the equations.

If you assume A = rho, B = u*rho, C = v*rho, D = E*rho, you can actually reformulate your flux equations with A,B,C,D ...

As a result, you can now easily compute the Jacobian components as dF/dA, dF/dB, dF/dC etc...

Since the flux equations in F are reformulated in terms of A,B,C,D, you can calculate the partial derivatives with respect to A,B,C,D
aerosayan is offline   Reply With Quote

Reply

Tags
flow instability, icofoam, linearized navier–stokes


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Guide: Writing Equations in LaTeX on the CFD Online Forums pete Site Help, Feedback & Discussions 27 May 19, 2022 03:19
Linearized NS euqations: how to solve them?(problem with Matrix operations..) matteoL OpenFOAM Running, Solving & CFD 0 November 18, 2009 06:58
numerical jacobian, matrix free methods Nikhil Main CFD Forum 1 December 5, 2008 03:51
Linearized Euler Equations a problem with grad ivan_cozza OpenFOAM Running, Solving & CFD 0 October 8, 2008 14:21
errors in curvilinear grid Jacobian matrix DSS Main CFD Forum 11 February 12, 2007 08:44


All times are GMT -4. The time now is 02:55.