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 Members List Search Today's Posts Mark Forums Read

Like Tree9Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 5, 2019, 12:16
Default
  #21
Senior Member
 
Colli, Alejandro
Join Date: Jan 2014
Location: Santa Fe, Argentina
Posts: 108
Rep Power: 8
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, 09:36
Default
  #22
Member
 
cyss38's Avatar
 
Cyrille Bonamy
Join Date: Mar 2015
Location: Grenoble, France
Posts: 62
Rep Power: 7
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 likes this.
cyss38 is offline   Reply With Quote

Old   July 3, 2020, 07:02
Default
  #23
Senior Member
 
Santiago Lopez Castano
Join Date: Nov 2012
Posts: 282
Rep Power: 10
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

Reply

Tags
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 05:39
CFD post cannot load results-Error appeared? mariam.sara ANSYS 9 September 17, 2018 15:23
[Workbench] Current result file may not contain requested result data zhizhuo ANSYS Meshing & Geometry 0 December 13, 2017 04:18
Simulation won't show turbulence pete_87 OpenFOAM Running, Solving & CFD 4 June 25, 2014 11:35
Geometry show in Result Display ShFlow FLOW-3D 3 January 11, 2009 20:51


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