CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Visualization & Post-Processing Software > ParaView

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

Register Blogs Community New Posts Updated Threads Search

Like Tree19Likes

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

Code:
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
Default
  #22
Member
 
cyss38's Avatar
 
Cyrille Bonamy
Join Date: Mar 2015
Location: Grenoble, France
Posts: 86
Rep Power: 11
cyss38 is on a distinguished road
You must replace the line where writeEntry is used.

An example :

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

Old   July 3, 2020, 08:02
Default
  #23
Senior Member
 
Santiago Lopez Castano
Join Date: Nov 2012
Posts: 354
Rep Power: 16
Santiago is on a distinguished road
Quote:
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
Default
  #24
New Member
 
Join Date: Jul 2017
Posts: 14
Rep Power: 9
kooki_13 is on a distinguished road
Hi,


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
Default
  #25
Senior Member
 
chandra shekhar pant
Join Date: Oct 2010
Posts: 220
Rep Power: 17
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

Reply

Tags
codestream, openfoam, parafoam


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 08:07.