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

Error while compiling a new library for Openfoam

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 13, 2023, 11:20
Default Error while compiling a new boundary condition in library for Openfoam
  #1
New Member
 
Join Date: Jan 2022
Posts: 5
Rep Power: 4
akashshankhdhar7 is on a distinguished road
Hey all
I was trying to compile a Boundary condition in a library. But I am receiving an error as follows:


wmake libso .
wmakeLnInclude: linking include files to ./lnInclude
Making dependency list for source file heatTransferFvPatchScalarField.C
g++ -std=c++14 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -O3 -DNoRepository -ftemplate-depth-100 -I/opt/openfoam10/src/finiteVolume/lnInclude -IlnInclude -I. -I/opt/openfoam10/src/OpenFOAM/lnInclude -I/opt/openfoam10/src/OSspecific/POSIX/lnInclude -fPIC -c heatTransferFvPatchScalarField.C -o Make/linux64GccDPInt32Opt/heatTransferFvPatchScalarField.o
heatTransferFvPatchScalarField.C: In copy constructor ‘Foam::heatTransferFvPatchScalarField::heatTransfe rFvPatchScalarField(const Foam::heatTransferFvPatchScalarField&)’:
heatTransferFvPatchScalarField.C:97:21: error: use of deleted function ‘Foam::fixedGradientFvPatchField<Type>::fixedGradi entFvPatchField(const Foam::fixedGradientFvPatchField<Type>&) [with Type = double]’
97 | Tfluid_(ptf.Tfluid_)
| ^

In file included from /opt/openfoam10/src/finiteVolume/lnInclude/fixedGradientFvPatchFields.H:29,
from heatTransferFvPatchScalarField.H:62,
from heatTransferFvPatchScalarField.C:27:
/opt/openfoam10/src/finiteVolume/lnInclude/fixedGradientFvPatchField.H:123:9: note: declared here
123 | fixedGradientFvPatchField
| ^~~~~~~~~~~~~~~~~~~~~~~~~
heatTransferFvPatchScalarField.C: In member function ‘virtual void Foam::heatTransferFvPatchScalarField::write(Foam:: Ostream&) const’:
heatTransferFvPatchScalarField.C:139:26: error: no matching function for call to ‘writeEntry(const char [6], Foam::Ostream&)’
139 | writeEntry("value", os);
| ^

In file included from /opt/openfoam10/src/OpenFOAM/lnInclude/word.H:42,
from /opt/openfoam10/src/OpenFOAM/lnInclude/wordList.H:41,
from /opt/openfoam10/src/OpenFOAM/lnInclude/patchIdentifier.H:38,
from /opt/openfoam10/src/OpenFOAM/lnInclude/polyPatch.H:42,
from /opt/openfoam10/src/finiteVolume/lnInclude/fvPatch.H:39,
from /opt/openfoam10/src/finiteVolume/lnInclude/fvPatchField.H:47,
from /opt/openfoam10/src/finiteVolume/lnInclude/fixedGradientFvPatchField.H:66,
from /opt/openfoam10/src/finiteVolume/lnInclude/fixedGradientFvPatchFields.H:29,
from heatTransferFvPatchScalarField.H:62,
from heatTransferFvPatchScalarField.C:27:
.
.
.
.
.
.
Can anyone please guide me how to overcome such error?
Thanks in advance.

Last edited by akashshankhdhar7; April 13, 2023 at 12:30.
akashshankhdhar7 is offline   Reply With Quote

Old   April 19, 2023, 12:58
Default
  #2
New Member
 
Join Date: Jan 2022
Posts: 5
Rep Power: 4
akashshankhdhar7 is on a distinguished road
Thanks for you quick response and advice. Followed it and seems to work now!
akashshankhdhar7 is offline   Reply With Quote

Reply

Tags
library compilation, openfoam 10


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
[OpenFOAM.com] Compiling Scotch library error fedez91 OpenFOAM Installation 6 March 2, 2022 23:25
[waves2Foam] stuck in compiling the waves2Foam library for OF-v1712 due to MA41 Ya_Squall2010 OpenFOAM Community Contributions 3 April 16, 2019 08:21
Compiling library and linking it to a solver criolla OpenFOAM 2 July 27, 2016 03:13
Compiling an external Fortran library of thermodynamics and using inside reactingFoam Mehdi3031 OpenFOAM Programming & Development 4 March 18, 2016 18:10
decomposePar is missing a library whk1992 OpenFOAM Pre-Processing 8 March 7, 2015 07:53


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