|
[Sponsors] |
January 16, 2012, 16:58 |
Data Transfer
|
#1 |
Member
Join Date: Jan 2010
Posts: 44
Rep Power: 16 |
I passed a multi-dimension matrix kk(N,M) from Fortran side to a volScalarField, ks, defined at OpenFoam side as,
PtrList<volScalarField> ks(Nq); const int Nq=10; for (int i=0;i<Nq;i++) { ks.set(i,new volScalarField ( IOobject ( "ks", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::NO_WRITE ), km ) ); }; volScalarField km ( IOobject ( "km", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::NO_WRITE ), mesh, dimensionedScalar("zero", dimless/dimLength, 0.0) ); The outputs of data exhibit that the values for ks are the same as those for kk. But min(ks[i]) is always ZERO, even max(ks[i]) is fine. What's wrong with this problem and how to fix it? |
|
January 16, 2012, 18:04 |
|
#2 | |
Member
Join Date: Jan 2010
Posts: 44
Rep Power: 16 |
Quote:
How can solve this problem? |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Writing/output of simple data into an ASCII-File | matthi | OpenFOAM Programming & Development | 24 | January 8, 2019 14:28 |
how to pickup the mesh data and vector data | oga_shin | OpenFOAM | 2 | October 28, 2011 00:42 |
[OpenFOAM] Cell Data to Point Data Issues | mcintoshjamie | ParaView | 2 | November 19, 2009 04:55 |
Saving particle (DPM) data to file? | Philip | FLUENT | 2 | June 12, 2006 02:41 |
Data transfer | H. P. LIU | Main CFD Forum | 5 | May 19, 2003 11:47 |