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

How to write the Coefficient Matrix in a file

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

Like Tree2Likes
  • 2 Post By manju819

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 8, 2014, 13:09
Default How to write the Coefficient Matrix in a file
  #1
New Member
 
Andrea
Join Date: Sep 2014
Posts: 17
Rep Power: 11
And901 is on a distinguished road
Hi Foamers,

i'm pretty new to OpenFoam and i need to extract the Coefficient Matrix from icoFoam and write it in a file.
If i have understood how icoFoam works the Coefficient Matrix is UEqn.
So is there a command to write it in a file?

Regards

Andrea

And901 is offline   Reply With Quote

Old   October 9, 2014, 11:28
Default How to write the Coefficient Matrix in a file
  #2
Member
 
Manjunath Reddy
Join Date: Jun 2013
Posts: 47
Rep Power: 12
manju819 is on a distinguished road
Hiiiii Andrea,
You can print coefficient matrix on the terminal while solving the U equation using Info<< UEqn.upper() <<endl; , Info<< UEqn.diag() << endl;, Info<< UEqn.lower() << endl;

You can get more information on lower and diag and upper triangular matrices in here

http://openfoamwiki.net/index.php/Op...es_in_OpenFOAM


lxufeishi and AndreaCFD like this.
manju819 is offline   Reply With Quote

Reply

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
[Other] OpenFOAM Installation for navalFoam sachinlb OpenFOAM Community Contributions 22 July 28, 2017 06:26
friction forces icoFoam ofslcm OpenFOAM 3 April 7, 2012 11:57
2.0.x on Mac OSX niklas OpenFOAM Installation 74 March 28, 2012 17:46
pisoFoam compiling error with OF 1.7.1 on MAC OSX Greg Givogue OpenFOAM Programming & Development 3 March 4, 2011 18:18
error while compiling the USER Sub routine CFD user CFX 3 November 25, 2002 16:16


All times are GMT -4. The time now is 04:57.