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

Help solving "c dot inv(A)" after solving the field variable (Ax=b)

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 11, 2014, 08:57
Default Help solving "c dot inv(A)" after solving the field variable (Ax=b)
  #1
Member
 
Logan Page
Join Date: Sep 2010
Posts: 38
Rep Power: 15
Logan Page is on a distinguished road
I need help trying to solve "c dot inv(A)" after having solved for the field variable (Ax=b)

The simplyfied OpenFoam pseudo-code is:
Code:
    // create volScalarField's for governing equations
    // create volScalarField c

    fvMatrix Eqn
    (
        // governing equations - discretize
    );
    Eqn.relax();
    Eqn.solve();  // Ax=b
    
    // volScalarField phi = c & inv(A);
    // I'm at a loss on how to compute this.
x --> [1 x m] volScalarField
A --> [m x m] lduMatrix
b --> [1 x m] volScalarField --> I assume accessed with "Eqn.source();"

inv(A) = inv(L) & inv(D) & inv(U)
phi = c & ( inv(L) & inv(D) & inv(U) )

Any help on how to implement this in OpenFoam would be appreciated
Logan Page is offline   Reply With Quote

Reply

Tags
ax=b, fvmatrix, ldumatrix, solver

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
buoyantSimpleFoam and watertank Tobi OpenFOAM Running, Solving & CFD 100 December 18, 2022 09:15
conjugate heat transfer in OpenFOAM skuznet OpenFOAM Running, Solving & CFD 99 March 16, 2017 06:07
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 07:20
Upgraded from Karmic Koala 9.10 to Lucid Lynx10.04.3 bookie56 OpenFOAM Installation 8 August 13, 2011 05:03
Orifice Plate with a fully developed flow - Problems with convergence jonmec OpenFOAM Running, Solving & CFD 3 July 28, 2011 06:24


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