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

question about pointScalarField.

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

Reply
 
LinkBack Thread Tools Display Modes
Old   December 16, 2012, 01:51
Default question about pointScalarField.
  #1
Member
 
yijin Mao
Join Date: May 2010
Location: Columbia, MO
Posts: 45
Rep Power: 7
alundilong is on a distinguished road
volScalarField can do this work successfully.
//- pesudo code
volScalarField T;
Info << T.boundaryField()[patchID][i] << endl;

but, for pointScalarField, it failed
volScalarField T;
fvMesh bMesh(mesh);
volPointInterpolation pT(bMesh);
pointScalarField ppT(pT.interpolate(T)());

Info << ppT.boundaryField()[patchID][i] << endl;

I wonder why it failed. why OpenFOAM don't make pointScalarField has the same feature that volScalarField has.

Any suggestion is welcome!
alundilong is offline   Reply With Quote

Old   December 16, 2012, 16:37
Default
  #2
Senior Member
 
Lieven
Join Date: Dec 2011
Location: Mol, Belgium
Posts: 295
Rep Power: 13
Lieven will become famous soon enough
Can you post the error you get so we can see what's going wrong exactly?

Regards,


L
Lieven is offline   Reply With Quote

Old   December 16, 2012, 20:39
Default
  #3
Member
 
yijin Mao
Join Date: May 2010
Location: Columbia, MO
Posts: 45
Rep Power: 7
alundilong is on a distinguished road
Quote:
Originally Posted by Lieven View Post
Can you post the error you get so we can see what's going wrong exactly?

Regards,


L
such as,

error: invalid types <unresolved overloaded function type>[int] for array subscript

It seems pointScalarField does not support this feature, but for volScalarField work fine.
alundilong 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
Question Re Engineering Data Source imnull ANSYS 0 March 5, 2012 14:51
Writing scalarField values into a pointScalarField Arnoldinho OpenFOAM Programming & Development 5 October 13, 2011 12:21
internal field question - PitzDaily Case atareen64 OpenFOAM Running, Solving & CFD 2 January 26, 2011 16:26
const_cast and pointScalarField myheroisalex OpenFOAM 2 January 21, 2010 11:56
Poisson Solver question Suresh Main CFD Forum 3 August 12, 2005 04:37


All times are GMT -4. The time now is 01:59.