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

Error while compiling a sinusoidal pressure wave inlet condition.

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 12, 2024, 12:03
Default Error while compiling a sinusoidal pressure wave inlet condition.
  #1
New Member
 
Rajendra Kumar
Join Date: Feb 2016
Posts: 9
Rep Power: 10
rajendra kumar is on a distinguished road
I am getting the following error when I try to run a solver (dbnsFoam), where I have modified the inlet pressure condition to be a sinusoidal function using codeFixedValue. Can someone tell me what this error is about and how to resolve it. I used make libso compilation for dynamic code folder also.


/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2112 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : _6e1fca0e-20220610 OPENFOAM=2112 patch=220610 version=2112
Arch : "LSB;label=32;scalar=64"
Exec : dbnsFoam
Date : Dec 12 2024
Time : 16:58:33
Host : IMTsimul-jb3
PID : 1768
I/O : uncollated
Case : /home/rajendra/tut/forwardStep
nProcs : 1
trapFpe: Floating point exception trapping enabled (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 5, maxFileModificationPolls 20)
allowSystemOperations : Allowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh for time = 0

Transient analysis detected

pseudoTime: max iterations = 50, tolerance = 1e-05, relTol = 0.001

Local timestepping selected

Reading thermophysical properties

Selecting thermodynamics package
{
type hePsiThermo;
mixture pureMixture;
transport const;
thermo hConst;
equationOfState perfectGas;
specie specie;
energy sensibleInternalEnergy;
}

Using dynamicCode for patch inlet on field p at line 18 in "/home/rajendra/tut/forwardStep/0/p.boundaryField.inlet"
Could not load "/home/rajendra/tut/forwardStep/dynamicCode/platforms/linux64GccDPInt32Opt/lib/libinlet_d1bd48bc3d61125a92466b70ac0a55c3bbefc552. so"
/home/rajendra/tut/forwardStep/dynamicCode/platforms/linux64GccDPInt32Opt/lib/libinlet_d1bd48bc3d61125a92466b70ac0a55c3bbefc552. so: cannot open shared object file: No such file or directory
Invoking wmake libso /home/rajendra/tut/forwardStep/dynamicCode/inlet
wmake libso /home/rajendra/tut/forwardStep/dynamicCode/inlet
Ctoo: fixedValueFvPatchFieldTemplate.C
/home/rajendra/tut/forwardStep/0/p.boundaryField.inlet: In member function ‘virtual void Foam::inletFixedValueFvPatchScalarField::updateCoe ffs()’:
/home/rajendra/tut/forwardStep/0/p.boundaryField.inlet:32:66: error: invalid user-defined conversion from ‘Foam::tmp<Foam::Field<double> >’ to ‘Foam::Field<double>&’ [-fpermissive]
In file included from /usr/lib/openfoam/openfoam2112/src/OpenFOAM/lnInclude/refPtr.H:46:0,
from /usr/lib/openfoam/openfoam2112/src/OpenFOAM/lnInclude/PtrListI.H:30,
from /usr/lib/openfoam/openfoam2112/src/OpenFOAM/lnInclude/PtrList.H:231,
from /usr/lib/openfoam/openfoam2112/src/OpenFOAM/lnInclude/List.C:32,
from /usr/lib/openfoam/openfoam2112/src/OpenFOAM/lnInclude/List.H:403,
from /usr/lib/openfoam/openfoam2112/src/OpenFOAM/lnInclude/wordList.H:50,
from /usr/lib/openfoam/openfoam2112/src/OpenFOAM/lnInclude/patchIdentifier.H:42,
from /usr/lib/openfoam/openfoam2112/src/OpenFOAM/lnInclude/polyPatch.H:45,
from /usr/lib/openfoam/openfoam2112/src/finiteVolume/lnInclude/fvPatch.H:42,
from /usr/lib/openfoam/openfoam2112/src/finiteVolume/lnInclude/fvPatchField.H:50,
from /usr/lib/openfoam/openfoam2112/src/finiteVolume/lnInclude/fixedValueFvPatchField.H:59,
from /usr/lib/openfoam/openfoam2112/src/finiteVolume/lnInclude/fixedValueFvPatchFields.H:31,
from fixedValueFvPatchFieldTemplate.H:40,
from fixedValueFvPatchFieldTemplate.C:29:
/usr/lib/openfoam/openfoam2112/src/OpenFOAM/lnInclude/tmp.H:270:9: note: candidate is: Foam::tmp<T>:perator const T&() const [with T = Foam::Field<double>] <near match>
operator const T&() const { return cref(); }
^~~~~~~~
/usr/lib/openfoam/openfoam2112/src/OpenFOAM/lnInclude/tmp.H:270:9: note: no known conversion from ‘const Foam::Field<double>&’ to ‘Foam::Field<double>&’
/home/rajendra/tut/forwardStep/0/p.boundaryField.inlet:32:67: error: conversion from ‘const Foam::Field<double>’ to ‘Foam::Field<double>&’ discards qualifiers [-fpermissive]
/home/rajendra/tut/forwardStep/0/p.boundaryField.inlet:41:31: error: lvalue required as left operand of assignment
/usr/lib/openfoam/openfoam2112/wmake/rules/General/transform:34: recipe for target 'Make/linux64GccDPInt32Opt/fixedValueFvPatchFieldTemplate.o' failed
make: *** [Make/linux64GccDPInt32Opt/fixedValueFvPatchFieldTemplate.o] Error 1


--> FOAM FATAL IO ERROR: (openfoam-2112 patch=220610)
Failed wmake "dynamicCode/inlet/platforms/linux64GccDPInt32Opt/lib/libinlet_d1bd48bc3d61125a92466b70ac0a55c3bbefc552. so"


file: 0/p.boundaryField.inlet at line 18 to 21.

From void Foam::codedBase::createLibrary(Foam::dynamicCode&, const Foam::dynamicCodeContext&) const
in file db/dynamicLibrary/codedBase/codedBase.C at line 240.

FOAM exiting
__________________
Regards,
Rajendra
rajendra kumar 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
Total pressure Inlet vs opening pres. and Dirn jins9158 CFX 0 March 7, 2022 20:23
Pressure Inlet Boundary Condition for gas-solid fluidized bed m.uzair Fluent Multiphase 0 January 18, 2018 07:08
Time dependant pressure boundary condition yosuke1984 OpenFOAM Verification & Validation 3 May 6, 2015 07:16
Pressure Inlet Boundary Condition Prasad FLUENT 6 April 9, 2013 22:32
How to set up the inlet boundary condition for a low pressure case? beastieboys6 FLUENT 3 April 10, 2012 23:46


All times are GMT -4. The time now is 21:00.