|
[Sponsors] |
July 6, 2021, 12:17 |
dimensionedInternalField() in openFoam6
|
#1 |
New Member
Marco Pancaldi
Join Date: Mar 2021
Location: Italy
Posts: 4
Rep Power: 5 |
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()? |
|
July 6, 2021, 12:25 |
|
#2 |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,686
Rep Power: 40 |
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. |
|
December 16, 2021, 18:26 |
Update?
|
#3 |
New Member
Jones
Join Date: Dec 2021
Posts: 2
Rep Power: 0 |
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() << " :" | ^~~~~~~~ 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. |
|
December 20, 2021, 15:40 |
|
#4 |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,686
Rep Power: 40 |
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 |
|
December 21, 2021, 18:11 |
|
#5 |
New Member
Jones
Join Date: Dec 2021
Posts: 2
Rep Power: 0 |
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. |
|
October 3, 2022, 13:59 |
|
#6 |
New Member
Nishant Gaikwad
Join Date: Sep 2022
Posts: 1
Rep Power: 0 |
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.
|
|
|
|
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 |