|October 1, 2012, 06:34||
Reading input matrix in a solver
Join Date: Aug 2012
Posts: 2Rep Power: 0
Hi! I would like to get input from a case file (we could call this file someProperties located in constant dir). The information to be read should be scalars in a 10x19 matrix. How could this be performed in OF (1.6-ext and simpleFoam, if it matters).
Should the matrix be declared as:
and if so, how do I read the someProperties file to get the values into "myMatrix"?
Best regards, tsimon.
|October 1, 2012, 08:33||
Join Date: Mar 2012
Location: Munich, Germany
Posts: 67Rep Power: 6
you can define matrices this way:
With matrix[i][j] you can grab the elements. Now you have to find a nice way to read your elements from files. This depends on your data.
|Thread||Thread Starter||Forum||Replies||Last Post|
|problem when converting mesh (made by ICEM) using fluentMeshToFoam||Forrest_Lei||OpenFOAM||11||October 16, 2009 06:28|
|Matrix solver||Yang||Main CFD Forum||5||May 13, 2006 22:20|
|solver input file||ioana||CFX||1||March 2, 2004 20:01|
|compressible two phase flow in CFX4.4||youngan||CFX||0||July 1, 2003 23:32|
|solver for linear system with large sparse matrix||Yangang Bao||Main CFD Forum||1||October 25, 1999 04:22|