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

question about pointScalarField.

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 16, 2012, 01:51
Default question about pointScalarField.
  #1
Member
 
yijin Mao
Join Date: May 2010
Location: Columbia, MO
Posts: 64
Rep Power: 16
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: Leuven, Belgium
Posts: 299
Rep Power: 22
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: 64
Rep Power: 16
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


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
Writing scalarField values into a pointScalarField Arnoldinho OpenFOAM Programming & Development 6 October 22, 2019 04:38
const_cast and pointScalarField myheroisalex OpenFOAM Programming & Development 3 April 26, 2016 12:02
Question Re Engineering Data Source imnull ANSYS 0 March 5, 2012 14:51
internal field question - PitzDaily Case atareen64 OpenFOAM Running, Solving & CFD 2 January 26, 2011 16:26
Poisson Solver question Suresh Main CFD Forum 3 August 12, 2005 05:37


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