CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM

Where can I find the matrix that's created ...

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

Reply
 
LinkBack Thread Tools Display Modes
Old   April 3, 2011, 13:26
Default Where can I find the matrix that's created ...
  #1
New Member
 
John Spiropoulos
Join Date: Oct 2009
Location: Stuttgart
Posts: 4
Rep Power: 8
Spiro is on a distinguished road
by the discretisation of each problem?
I need to make some mathematics about refining/rescaling the mesh. Can anyone help me?
thanks in advance
Spiro is offline   Reply With Quote

Old   April 3, 2011, 14:47
Default
  #2
Senior Member
 
chegdan's Avatar
 
Daniel P. Combest
Join Date: Mar 2009
Location: St. Louis, USA
Posts: 581
Rep Power: 20
chegdan will become famous soon enoughchegdan will become famous soon enough
Quote:
Originally Posted by Spiro View Post
by the discretisation of each problem?
I need to make some mathematics about refining/rescaling the mesh. Can anyone help me?
thanks in advance
For refining the mesh, what about start looking at the code for the utility refineMesh? You might also look at the createMesh.H file or even the functionality of the interFoam solver. I know that there was (or I think there was) some functionality that refined the mesh at the interface. And , you could always look into the moving mesh source. I'm not an expert, but I would start there if I were trying to solve the problem. Good Luck.

Dan
chegdan is offline   Reply With Quote

Old   April 3, 2011, 17:56
Default
  #3
New Member
 
John Spiropoulos
Join Date: Oct 2009
Location: Stuttgart
Posts: 4
Rep Power: 8
Spiro is on a distinguished road
my problem (ok ONE of my problems) is that i can FORTRAN but I m the absolute dummy in C. I just want to create coef. matrices for one single problem (with different scalings) and then feed my own fortran program with these matrices for further investigation. Is this possible? Are these matrices not stored at all after an openfoam run?
Spiro is offline   Reply With Quote

Old   April 3, 2011, 18:22
Default
  #4
Senior Member
 
chegdan's Avatar
 
Daniel P. Combest
Join Date: Mar 2009
Location: St. Louis, USA
Posts: 581
Rep Power: 20
chegdan will become famous soon enoughchegdan will become famous soon enough
Quote:
Originally Posted by Spiro View Post
my problem (ok ONE of my problems) is that i can FORTRAN but I m the absolute dummy in C. I just want to create coef. matrices for one single problem (with different scalings) and then feed my own fortran program with these matrices for further investigation. Is this possible? Are these matrices not stored at all after an openfoam run?
Sure. I have successfully passed the ldu coefficient matrix (along with x and source b) that OpenFOAM defines to a CUDA linear system solver. One needs to define an extern function, have a container that both languages understand, and pass the info. Its easier for CUDA, since it has compatibility with C++. Im not sure about FORTRAN. There are numerous posts on the forum about connecting some fortran code to OF. There are also numerous posts on the structure of the ldu matrix.

Dan
chegdan is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Looking for SUBOFF model but i can't find it. Heewon Lee Main CFD Forum 6 September 9, 2014 08:55
Ways to find Mass transfer coefficient using CFD? tuks_123 CFX 10 April 15, 2011 11:20
Find X,Y,Z Location of maxVal (CFX-Post) andygir CFX 7 December 23, 2010 11:09
How to find the product of A+ matrix and A- matrix arjun shanker Main CFD Forum 0 November 12, 2010 23:12
Cant find UDF commands Ronnfors FLUENT 2 September 29, 2009 05:57


All times are GMT -4. The time now is 09:32.