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

How to extract Differential Equations Matrix Coeff

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 3, 2012, 08:13
Post How to extract Differential Equations Matrix Coeff
  #1
New Member
 
Samuel Rodriguez Bernabeu
Join Date: Mar 2012
Location: Leon, Spain
Posts: 3
Rep Power: 14
srodrb is on a distinguished road
Hello Foamers!

I'm pretty new in OpenFoam world, but not in CFD. I've spent 3-4 months working with OP so I have the generals although my field are mathematics, not aerodynamics.

I'm working on differential equations systems acceleration using hybrid methods (CPU-GPU) for my thesis.

My question is:

How can I get an output of OP with the coefficients matrix (the matrix which OpenFoam solves later)?

Thank you.

PD: - I will publish the results and the source under GNU license.
- Sorry about my english
srodrb is offline   Reply With Quote

Old   July 6, 2012, 08:46
Default
  #2
Senior Member
 
Steven van Haren
Join Date: Aug 2010
Location: The Netherlands
Posts: 149
Rep Power: 16
stevenvanharen is on a distinguished road
Did you look here?

src » finiteVolume » fvMatrices » fvMatrix

There are a lot of options for output I think.
stevenvanharen is offline   Reply With Quote

Old   July 31, 2012, 07:22
Default
  #3
New Member
 
Samuel Rodriguez Bernabeu
Join Date: Mar 2012
Location: Leon, Spain
Posts: 3
Rep Power: 14
srodrb is on a distinguished road
Thanks for your help.

I'm still trying to find the way. This link helped me, so perhaps it could be useful for someone.

http://188.40.164.115/wordpress/?p=39#comment-44
srodrb is offline   Reply With Quote

Old   August 1, 2012, 16:27
Default
  #4
Senior Member
 
santiagomarquezd's Avatar
 
Santiago Marquez Damian
Join Date: Aug 2009
Location: Santa Fe, Santa Fe, Argentina
Posts: 452
Rep Power: 24
santiagomarquezd will become famous soon enough
Samuel, if you want to extract these values at debugging time and many other debug hacks you have gdbOF

http://openfoamwiki.net/index.php/Contrib_gdbOF

Regards
__________________
Santiago MÁRQUEZ DAMIÁN, Ph.D.
Research Scientist
Research Center for Computational Methods (CIMEC) - CONICET/UNL
Tel: 54-342-4511594 Int. 7032
Colectora Ruta Nac. 168 / Paraje El Pozo
(3000) Santa Fe - Argentina.
http://www.cimec.org.ar
santiagomarquezd is offline   Reply With Quote

Old   October 30, 2012, 04:14
Default Coeff. Matrix. It's correct?
  #5
New Member
 
Samuel Rodriguez Bernabeu
Join Date: Mar 2012
Location: Leon, Spain
Posts: 3
Rep Power: 14
srodrb is on a distinguished road
Hello again!

I've been working with other stuff for some time so I've come back with OpenFOAM.

I've write out the matrix coefficients in a file for the cavity (2D) tutorial solved with icoFoam.



Note that coeff. [1][1] is on the left bottom

My question is, it is correct the addressing? Are there additional terms out of diagonals? (Wiki' figure is different from mine but I'm not sure if that would be extendible for 2D cases or only for 3D ones... )




I'm reading some post of addressing... Thank you in advance.
srodrb is offline   Reply With Quote

Old   August 12, 2022, 10:59
Default
  #6
New Member
 
Join Date: Aug 2022
Posts: 19
Rep Power: 4
shizuka is on a distinguished road
I see it's an old post, all the links are not available after 10 years...

is there anyone happen to have some new links to this question? Thank you in advance.
shizuka is offline   Reply With Quote

Old   August 12, 2022, 13:19
Default
  #7
Senior Member
 
Domenico Lahaye
Join Date: Dec 2013
Posts: 798
Blog Entries: 1
Rep Power: 17
dlahaye is on a distinguished road
This link https://openfoamwiki.net/index.php/Contrib_gdbOF
still works. Let us know how it goes. Good luck.
dlahaye is offline   Reply With Quote

Old   August 13, 2022, 05:51
Default
  #8
New Member
 
Join Date: Aug 2022
Posts: 19
Rep Power: 4
shizuka is on a distinguished road
Hi dlahaye, you are right, i overlooked this link on #4, thank you!
shizuka is offline   Reply With Quote

Reply

Tags
matrix, openfoam


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
Force can not converge colopolo CFX 13 October 4, 2011 23:03
differential equations cosine CFX 1 May 31, 2010 08:22
OpenFOAM version 1.6 details lakeat OpenFOAM Running, Solving & CFD 42 August 26, 2009 22:47
Error: Could'nt allocate fine level coeff matrix Khan FLUENT 1 July 7, 2006 02:44
free " ordinary differential equations solver" ztdep Main CFD Forum 2 March 21, 2006 02:58


All times are GMT -4. The time now is 22:39.