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

dimensionedInternalField() in openFoam6

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By olesen

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 6, 2021, 12:17
Default dimensionedInternalField() in openFoam6
  #1
New Member
 
Marco Pancaldi
Join Date: Mar 2021
Location: Italy
Posts: 4
Rep Power: 5
Panca is on a distinguished road
Hi everyone, I'm trying to convert a program from openFom 3 to 6.
I don't find the function dimensionedInternalField() (https://cpp.openfoam.org/v3/a00528.html), but I find the function Internal() (https://cpp.openfoam.org/v6/classFoa...1Internal.html).
I don't understand what's the difference between the two, can I simply use Internal() instead demensionedInternalField()?
Panca is offline   Reply With Quote

Old   July 6, 2021, 12:25
Default
  #2
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,686
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
Internal is the Dimensioned part (was renamed). Primitive is the same thing without dimensions.

https://www.openfoam.com/documentati...d.html#details

Not sure why you would target openfoam-6 though.
olesen is offline   Reply With Quote

Old   December 16, 2021, 18:26
Default Update?
  #3
New Member
 
Jones
Join Date: Dec 2021
Posts: 2
Rep Power: 0
wyldjones is on a distinguished road
Hello Panca and olesen,

Were you able to resolve this issue? I am in the middle of updating and compiling an old solver with the current version of OF as well and am running into the same issue: the class has no member that is named "dimensionedInternalField" or "Internal". More specifically when I changed the reference inside to "Internal":

Code:
derivedFvPatchFields/solidWallHeatFluxTemperature/solidWallHeatFluxTemperatureFvPatchScalarField.C: In member function ‘virtual void Foam::solidWallHeatFluxTemperatureFvPatchScalarField::updateCoeffs()’:
derivedFvPatchFields/solidWallHeatFluxTemperature/solidWallHeatFluxTemperatureFvPatchScalarField.C:180:22: error: ‘class Foam::solidWallHeatFluxTemperatureFvPatchScalarField’ has no member named ‘Internal’
  180 |             << this->Internal().name() << " :"
      |                      ^~~~~~~~
I am currently trying to follow the path up the file hierarchy in order to see where the original member is first defined but I thought I'd ask here seeing as this problem is similar to mine.

On a more general note, is there a type of changelog that I may be able to look through in order to see where in OF version history a change was made and what the change was? I assume I will be encountering many bugs of this type (variable name and file placement changes?) as I update the code. Also appreciate any tips you may have as I am still learning.

Thank you for your time.
wyldjones is offline   Reply With Quote

Old   December 20, 2021, 15:40
Default
  #4
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,686
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
For more recent code changes, there is the upgrade guide:
https://develop.openfoam.com/Develop...pgrade/upgrade

here:
https://develop.openfoam.com/Develop...internal-field
wyldjones likes this.
olesen is offline   Reply With Quote

Old   December 21, 2021, 18:11
Default
  #5
New Member
 
Jones
Join Date: Dec 2021
Posts: 2
Rep Power: 0
wyldjones is on a distinguished road
Changing the member name to "internalField" worked for me! Onto the next bug... The upgrade guide will be a useful reference.

Thanks for your help Mark.
wyldjones is offline   Reply With Quote

Old   October 3, 2022, 13:59
Default
  #6
New Member
 
Nishant Gaikwad
Join Date: Sep 2022
Posts: 1
Rep Power: 0
nishant1 is on a distinguished road
Hello Jones I came across same problem but in createfields.H file whenever i replace "dimensionedInterField" by "internalField" it's not working . Pleas help me.
nishant1 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
[ImmersedBoundary] Immerse Boundary Method on Openfoam6 iigorfleury OpenFOAM Community Contributions 2 May 6, 2021 02:06
[OpenFOAM.org] blockMesh issue on openfoam6 startup - ubuntu 16.04 bjdarrer OpenFOAM Installation 7 August 25, 2020 19:15
[OpenFOAM.org] Offline installation of OpenFOAM6 on windows 10 m5m5kh OpenFOAM Installation 3 February 22, 2019 09:23
[OpenFOAM.org] E: can't find package openfoam6 marf OpenFOAM Installation 1 November 30, 2018 19:25
[OpenFOAM.org] Failed to install openfoam6 on Ubuntu 18.04.1 Gary OpenFOAM Installation 3 October 20, 2018 15:19


All times are GMT -4. The time now is 18:50.