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

Solve Ax=b

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 8, 2015, 06:19
Default Solve Ax=b
  #1
New Member
 
Join Date: Aug 2015
Posts: 4
Rep Power: 11
Rutger is on a distinguished road
Hi,

I searched the forum but couldn't find a similar problem respectively an answer.
I'm running a simulation that stores its results in a volScalarField b ∈ R^n and a volVectorField A ∈ R^{nxn}.
The mathematically relation between them is A*x = b, which I want to solve for x. In another project I used a solver from the Eigen libary but now I want to calculate it in OpenFOAM.

It is possible to solve this linear equation or do I need to use a fvMatrix type for A ?
Rutger is offline   Reply With Quote

Old   August 10, 2015, 05:44
Default
  #2
New Member
 
Join Date: Aug 2015
Posts: 4
Rep Power: 11
Rutger is on a distinguished road
For everyone with the same problem:

The example in application/test/Matrix/Test-Matrix.C helped a lot. Now I'm copying the values from the vol*Field to the corresponding datatypes and solve the system.
Rutger is offline   Reply With Quote

Old   August 10, 2015, 10:13
Default
  #3
Senior Member
 
T. Chourushi
Join Date: Jul 2009
Posts: 321
Blog Entries: 1
Rep Power: 18
Tushar@cfd is on a distinguished road
Dear Rutger,

Have a look to the eigen value solver given in Tensor.C file. I think this will help you.

-
Best Luck!
Tushar@cfd is offline   Reply With Quote

Old   August 13, 2015, 08:26
Default
  #4
New Member
 
Join Date: Aug 2015
Posts: 4
Rep Power: 11
Rutger is on a distinguished road
Thanks, I will have a look at it.
Rutger is offline   Reply With Quote

Reply

Tags
equation, fvmatrix, linear, solve, volscalarfield


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
solve equation michaelsmit OpenFOAM Running, Solving & CFD 4 March 24, 2011 06:35
Solve Flow or VOF simultaneously ? Ramsey FLUENT 1 February 16, 2011 14:16
Linearized NS euqations: how to solve them?(problem with Matrix operations..) matteoL OpenFOAM Running, Solving & CFD 0 November 18, 2009 07:58
Using Compressible Solver (sonicFoam) to solve subsonic flows ezsoal OpenFOAM 0 October 27, 2009 10:13
MAC method solve for pressure at boundry Ron Main CFD Forum 2 January 28, 2006 03:14


All times are GMT -4. The time now is 16:23.