CFD Online Logo CFD Online URL
Home > Forums > Visualization & Post-Processing Software > ParaView

[OpenFOAM] How to correctly show the result of #codeStream# internalField?

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

Like Tree16Likes

LinkBack Thread Tools Search this Thread Display Modes
Old   September 5, 2019, 13:16
Senior Member
Join Date: Jan 2014
Location: Argentina
Posts: 121
Rep Power: 10
ancolli is on a distinguished road
I am getting the following Error by running it in OpenFOAM-dev

error: ‘Foam::vectorField {aka class Foam::Field<Foam::Vector<double> >}’ has no member named ‘writeEntry’
/opt/openfoam-dev/wmake/rules/General/transform:25: recipe for target 'Make/linux64GccDPInt32Opt/codeStreamTemplate.o' failed
make: *** [Make/linux64GccDPInt32Opt/codeStreamTemplate.o] Error 1
but in OpenFOAM-6 is working well.
ancolli is offline   Reply With Quote

Old   April 2, 2020, 10:36
cyss38's Avatar
Cyrille Bonamy
Join Date: Mar 2015
Location: Grenoble, France
Posts: 83
Rep Power: 9
cyss38 is on a distinguished road
You must replace the line where writeEntry is used.

An example :

// version and Old (<= 6)
 alpha_a.writeEntry("", os);
 // New version (>=7)
writeEntry(os, "", alpha_a);
ancolli, allanZHONG and Siebo like this.
cyss38 is offline   Reply With Quote

Old   July 3, 2020, 08:02
Senior Member
Santiago Lopez Castano
Join Date: Nov 2012
Posts: 351
Rep Power: 14
Santiago is on a distinguished road
Originally Posted by Ali Amarloo View Post
I have the same problem
It seems that by "scalar t = this->db().time().value(); " we can access time just for codedFixedvalue
Does anybody know how can I access time (of simulation) in "codeStream"?
change 'this->' by 'd.'
Santiago is offline   Reply With Quote

Old   May 12, 2022, 08:53
New Member
Join Date: Jul 2017
Posts: 14
Rep Power: 7
kooki_13 is on a distinguished road

I did so, but it does not work and I get the same error:

#codeStream:66:39: error: invalid use of ‘this’ in non-member function

Do you have any Idea?
kooki_13 is offline   Reply With Quote

Old   July 14, 2022, 05:26
Senior Member
chandra shekhar pant
Join Date: Oct 2010
Posts: 198
Rep Power: 14
chandra shekhar pant is on a distinguished road
Yes, I am getting the same error. Have you figured this out, any help ?
chandra shekhar pant is offline   Reply With Quote


codestream, openfoam, parafoam

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Difference of the max function result with full field, internalField and boundaryFiel cyss38 OpenFOAM Programming & Development 1 October 2, 2018 06:39
CFD post cannot load results-Error appeared? mariam.sara ANSYS 9 September 17, 2018 16:23
[Workbench] Current result file may not contain requested result data zhizhuo ANSYS Meshing & Geometry 0 December 13, 2017 05:18
Simulation won't show turbulence pete_87 OpenFOAM Running, Solving & CFD 4 June 25, 2014 12:35
Geometry show in Result Display ShFlow FLOW-3D 3 January 11, 2009 21:51

All times are GMT -4. The time now is 07:04.