|
[Sponsors] |
January 15, 2012, 21:45 |
Array transfer
|
#1 |
Member
Join Date: Jan 2010
Posts: 44
Rep Power: 16 |
I construct one volScalarField a_ as
a_ ( IOobject ( "a", mesh_.time().timeName(), mesh_, IOobject::NO_READ, IOobject::NO_WRITE ), mesh_, dimensionedScalar("a", dimless/dimLength, 0.0) ), and passArry() as void Foam::XXXX::XXX:assArry(const volScalarField k) { a_=k; forAll(a_.boundaryField(),patchi) { forAll(a_.boundaryField()[patchi],facei) { a_.boundaryField()[patchi][facei]=k.boundaryField()[patchi][facei]; } } } I test all the values (say k=0.005) passed to a_ and found that max(a_)=0.05 while min(a_)=0. Any idea about this weired results? |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
problems after decomposing for running | alessio.nz | OpenFOAM | 7 | March 5, 2021 05:49 |
mass transfer in ANSYS | thipps | ANSYS | 1 | August 29, 2013 12:05 |
Convective / Conductive Heat Transfer in Hypersonic flows | enigma | Main CFD Forum | 2 | November 1, 2009 23:53 |
Convective Heat Transfer - Heat Exchanger | Mark | CFX | 6 | November 15, 2004 16:55 |
additional variable mass transfer in CFX5.6 | john | CFX | 1 | February 14, 2004 01:30 |