# Solve Ax=b

 User Name Remember Me Password
 Register Blogs Members List Search Today's Posts Mark Forums Read

 LinkBack Thread Tools Search this Thread Display Modes
 August 8, 2015, 05:19 Solve Ax=b #1 New Member   Join Date: Aug 2015 Posts: 4 Rep Power: 11 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 ?

 August 10, 2015, 04:44 #2 New Member   Join Date: Aug 2015 Posts: 4 Rep Power: 11 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.

 August 10, 2015, 09:13 #3 Senior Member   T. Chourushi Join Date: Jul 2009 Posts: 321 Blog Entries: 1 Rep Power: 18 Dear Rutger, Have a look to the eigen value solver given in Tensor.C file. I think this will help you. - Best Luck!

 August 13, 2015, 07:26 #4 New Member   Join Date: Aug 2015 Posts: 4 Rep Power: 11 Thanks, I will have a look at it.

 Tags equation, fvmatrix, linear, solve, volscalarfield

 Thread Tools Search this Thread Search this Thread: Advanced Search Display Modes Linear Mode

 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 OffTrackbacks are Off Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post michaelsmit OpenFOAM Running, Solving & CFD 4 March 24, 2011 05:35 Ramsey FLUENT 1 February 16, 2011 13:16 matteoL OpenFOAM Running, Solving & CFD 0 November 18, 2009 06:58 ezsoal OpenFOAM 0 October 27, 2009 09:13 Ron Main CFD Forum 2 January 28, 2006 02:14

All times are GMT -4. The time now is 13:41.

 Contact Us - CFD Online - Privacy Statement - Top