|
[Sponsors] | |||||
|
|
|
#1 |
|
New Member
Join Date: Aug 2015
Posts: 4
Rep Power: 12 ![]() |
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 ? |
|
|
|
|
|
|
|
|
#2 |
|
New Member
Join Date: Aug 2015
Posts: 4
Rep Power: 12 ![]() |
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. |
|
|
|
|
|
|
|
|
#4 |
|
New Member
Join Date: Aug 2015
Posts: 4
Rep Power: 12 ![]() |
Thanks, I will have a look at it.
|
|
|
|
|
|
![]() |
| Tags |
| equation, fvmatrix, linear, solve, volscalarfield |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
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 |