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

Array transfer

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 15, 2012, 20:45
Question Array transfer
  #1
Member
 
Join Date: Jan 2010
Posts: 44
Rep Power: 16
Argen is on a distinguished road
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?
Argen is offline   Reply With Quote

Reply


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
problems after decomposing for running alessio.nz OpenFOAM 7 March 5, 2021 04:49
mass transfer in ANSYS thipps ANSYS 1 August 29, 2013 11:05
Convective / Conductive Heat Transfer in Hypersonic flows enigma Main CFD Forum 2 November 1, 2009 22:53
Convective Heat Transfer - Heat Exchanger Mark CFX 6 November 15, 2004 15:55
additional variable mass transfer in CFX5.6 john CFX 1 February 14, 2004 00:30


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