-
-
Notifications
You must be signed in to change notification settings - Fork 129
Closed
Labels
Description
When running the Edit: I should have done a perpendicular-flap/solid-openfoam case with OpenFOAM v2506, I cannot build the included solidDisplacementFoamForce code:wclean first.
wmake libso (solidDisplacementFoamForce)
ln: ./lnInclude
make: *** No rule to make target '/usr/lib/openfoam/openfoam2506/src/OpenFOAM/lnInclude/Scalar.H', needed by 'Make/linux64GccDPInt32Opt/solidDisplacementFoamForceFvPatchVectorField.C.dep'. Stop.
With v2412, it builds:
~/repos/precice/tutorials/perpendicular-flap/solid-openfoam/solidDisplacementFoamForce [develop]$ wmake
ln: ./lnInclude
Making dependencies: solidDisplacementFoamForceFvPatchVectorField.C
g++ -std=c++17 -m64 -pthread -DOPENFOAM=2412 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -Wno-unknown-pragmas -O3 -DNoRepository -ftemplate-depth-100 -DOPENFOAMESIORFOUNDATION -DOPENFOAMESI -I/usr/lib/openfoam/openfoam2412/src/finiteVolume/lnInclude -I/usr/lib/openfoam/openfoam2412/src/meshTools/lnInclude -iquote. -IlnInclude -I/usr/lib/openfoam/openfoam2412/src/OpenFOAM/lnInclude -I/usr/lib/openfoam/openfoam2412/src/OSspecific/POSIX/lnInclude -fPIC -c solidDisplacementFoamForceFvPatchVectorField.C -o Make/linux64GccDPInt32Opt/solidDisplacementFoamForceFvPatchVectorField.o
g++ -std=c++17 -m64 -pthread -DOPENFOAM=2412 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -Wno-unknown-pragmas -O3 -DNoRepository -ftemplate-depth-100 -DOPENFOAMESIORFOUNDATION -DOPENFOAMESI -I/usr/lib/openfoam/openfoam2412/src/finiteVolume/lnInclude -I/usr/lib/openfoam/openfoam2412/src/meshTools/lnInclude -iquote. -IlnInclude -I/usr/lib/openfoam/openfoam2412/src/OpenFOAM/lnInclude -I/usr/lib/openfoam/openfoam2412/src/OSspecific/POSIX/lnInclude -fPIC -shared -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPInt32Opt/solidDisplacementFoamForceFvPatchVectorField.o -L/usr/lib/openfoam/openfoam2412/platforms/linux64GccDPInt32Opt/lib \
-lfiniteVolume -lmeshTools -o /home/gc/OpenFOAM/gc-v2412/platforms/linux64GccDPInt32Opt/lib/libsolidDisplacementFoamForce.so
but it is not found:
--> FOAM FATAL IO ERROR: (openfoam-2412 patch=250528)
Unknown patchField type solidDisplacementFoamForce for patch type patch
Valid patchField types :
97
(
SRFFreestreamVelocity
SRFVelocity
SRFWallVelocity
acousticWaveTransmissive
activeBaffleVelocity
activePressureForceBaffleVelocity
advective
calculated
codedFixedValue
codedMixed
coupledVelocity
cyclic
cyclicACMI
cyclicAMI
cyclicSlip
cylindricalInletVelocity
directionMixed
empty
exprFixedValue
exprMixed
extrapolatedCalculated
fixedGradient
fixedInternalValue
fixedJump
fixedJumpAMI
fixedMean
fixedMeanOutletInlet
fixedNormalInletOutletVelocity
fixedNormalSlip
fixedProfile
fixedShearStress
fixedValue
flowRateInletVelocity
flowRateOutletVelocity
fluxCorrectedVelocity
freestream
freestreamVelocity
inletOutlet
interstitialInletVelocity
kqRWallFunction
mapped
mappedField
mappedFixedInternalValue
mappedFixedPushedInternalValue
mappedFlowRate
mappedMixed
mappedMixedField
mappedVelocityFlux
matchedFlowRateOutletVelocity
mixed
movingWallVelocity
noSlip
nonuniformTransformCyclic
outletInlet
outletMappedUniformInlet
outletPhaseMeanVelocity
partialSlip
permeableAlphaPressureInletOutletVelocity
pressureDirectedInletOutletVelocity
pressureDirectedInletVelocity
pressureInletOutletParSlipVelocity
pressureInletOutletVelocity
pressureInletUniformVelocity
pressureInletVelocity
pressureNormalInletOutletVelocity
pressurePIDControlInletVelocity
processor
processorCyclic
rotatingPressureInletOutletVelocity
rotatingWallVelocity
scaledFixedValue
sliced
slip
supersonicFreestream
surfaceNormalFixedValue
swirlFanVelocity
swirlFlowRateInletVelocity
swirlInletVelocity
symmetry
symmetryPlane
timeVaryingMappedFixedValue
tractionDisplacement
translatingWallVelocity
turbulentDFSEMInlet
turbulentDigitalFilterInlet
turbulentInlet
uniformFixedGradient
uniformFixedValue
uniformInletOutlet
uniformJump
uniformJumpAMI
uniformMixed
uniformNormalFixedValue
variableHeightFlowRateInletVelocity
waveTransmissive
wedge
zeroGradient
)
file: 0/D/boundaryField/interface at line 18 to 20.
From static Foam::tmp<Foam::fvPatchField<Type> > Foam::fvPatchField<Type>::New(const Foam::fvPatch&, const Foam::DimensionedField<Type, Foam::volMesh>&, const Foam::dictionary&) [with Type = Foam::Vector<double>]
in file ./src/finiteVolume/lnInclude/fvPatchFieldNew.C at line 124.
FOAM exiting
This is because there are two libs keywords in the system/controlDict, and the second overwrites the first. Fix: libs ("libpreciceAdapterFunctionObject.so" "libsolidDisplacementFoamForce.so");.