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

Array transfer

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

Reply
 
LinkBack Thread Tools Display Modes
Old   January 15, 2012, 21:45
Question Array transfer
  #1
Member
 
Join Date: Jan 2010
Posts: 44
Rep Power: 7
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

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
mass transfer in ANSYS thipps ANSYS 1 August 29, 2013 11:05
problems after decomposing for running alessio.nz OpenFOAM 5 April 20, 2011 08:44
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


All times are GMT -4. The time now is 20:29.