|
[Sponsors] |
Can not find my own boundary conditions when running a solver |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
November 4, 2016, 23:36 |
Can not find my own boundary conditions when running a solver
|
#1 |
New Member
Wenkun Zhao
Join Date: Mar 2015
Location: Nanjing, China
Posts: 14
Rep Power: 11 |
Hi foamers,
I have encountered a tricky problem when running the solver. I compiled my own boundary conditions in $(FOAM_USER_LIBBIN), and I found these libXXX.so in that dictionary. To use these boundary conditions, I added libs ("libXXX.so"); in controlDict. But when running the code, the solver still didn't know my boundary conditions. Here's the output massage: Code:
/*---------------------------------------------------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.4.0 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ Build : 2.4.0-dcea1e13ff76 Exec : /WORK/app/OpenFOAM/OpenFOAM-2.4.0/platforms/linux64IccDPOpt/bin/rhoCentralFoam Date : Nov 05 2016 Time : 11:25:20 Host : "cn12532" PID : 20212 Case : /WORK/nuaa_wkzhou_1/RRMtest nProcs : 1 sigFpe : Floating point exception trapping - not supported on this platform fileModificationChecking : Monitoring run-time modified files using timeStampMaster allowSystemOperations : Allowing user-supplied system call operations // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Create time Create mesh for time = 0.001 Reading thermophysical properties Selecting thermodynamics package { type hePsiThermo; mixture pureMixture; transport sutherland; thermo eConst; equationOfState perfectGas; specie specie; energy sensibleInternalEnergy; } --> FOAM FATAL IO ERROR: Unknown patchField type scaledMappedTemperature for patch type mappedPatch Valid patchField types are : 105 ( MarshakRadiation MarshakRadiationFixedTemperature advective calculated codedFixedValue codedMixed compressible::alphatJayatillekeWallFunction compressible::alphatWallFunction compressible::epsilonLowReWallFunction compressible::epsilonWallFunction compressible::fWallFunction compressible::kLowReWallFunction compressible::kqRWallFunction compressible::omegaWallFunction compressible::thermalBaffle1D<hConstSolidThermoPhysics> compressible::thermalBaffle1D<hExponentialSolidThermoPhysics> compressible::turbulentHeatFluxTemperature compressible::turbulentMixingLengthDissipationRateInlet compressible::turbulentMixingLengthFrequencyInlet compressible::turbulentTemperatureCoupledBaffleMixed compressible::turbulentTemperatureRadCoupledMixed compressible::v2WallFunction convectiveHeatTransfer cyclic cyclicACMI cyclicAMI cyclicSlip directionMixed empty energyJump energyJumpAMI externalCoupled externalCoupledTemperature externalWallHeatFluxTemperature fan fanPressure fixedEnergy fixedFluxPressure fixedGradient fixedInternalValue fixedJump fixedJumpAMI fixedMean fixedPressureCompressibleDensity fixedRho fixedUnburntEnthalpy fixedValue freestream freestreamPressure gradientEnergy gradientUnburntEnthalpy greyDiffusiveRadiation greyDiffusiveRadiationViewFactor inletOutlet inletOutletTotalTemperature mapped mappedField mappedFixedInternalValue mappedFixedPushedInternalValue mixed mixedEnergy mixedFixedValueSlip mixedUnburntEnthalpy mutLowReWallFunction mutURoughWallFunction mutUSpaldingWallFunction mutUWallFunction mutkRoughWallFunction mutkWallFunction nonuniformTransformCyclic oscillatingFixedValue outletInlet outletMappedUniformInlet partialSlip phaseHydrostaticPressure prghPressure processor processorCyclic rotatingTotalPressure sliced slip smoluchowskiJumpT symmetry symmetryPlane syringePressure timeVaryingMappedFixedValue totalFlowRateAdvectiveDiffusive totalPressure totalTemperature turbulentInlet turbulentIntensityKineticEnergyInlet uniformDensityHydrostaticPressure uniformFixedGradient uniformFixedValue uniformInletOutlet uniformJump uniformJumpAMI uniformTotalPressure variableHeightFlowRate wallHeatTransfer waveSurfacePressure waveTransmissive wedge wideBandDiffusiveRadiation zeroGradient ) file: /WORK/nuaa_wkzhou_1/RRMtest/0.001/T.boundaryField.inlet from line 7686030 to line 7686040. From function fvPatchField<Type>::New(const fvPatch&, const DimensionedField<Type, volMesh>&, const dictionary&) in file /WORK/app/OpenFOAM/OpenFOAM-2.4.0/src/finiteVolume/lnInclude/fvPatchFieldNew.C at line 143. FOAM exiting yhrun: error: cn12532: task 0: Exited with exit code 1 [nuaa_wkzhou_1@ln1%tianhe2-C RRMtest]$ Code:
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.3.1 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; location "system"; object controlDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // libs ("libscaledMapped.so"); libs ("libSGSModels.so"); application rhoCentralFoam; startFrom latestTime; //startTime 0.0012; stopAt endTime; endTime 1; deltaT 1e-9; // t must equal to deltaT at the very beginning! averagingTime 1; writeControl runTime; Best to all, Eric |
|
November 7, 2016, 04:59 |
|
#2 |
Senior Member
Kevin van As
Join Date: Sep 2014
Location: TU Delft, The Netherlands
Posts: 252
Rep Power: 21 |
Two quick suggestions:
|
|
November 7, 2016, 21:08 |
|
#3 | |
New Member
Wenkun Zhao
Join Date: Mar 2015
Location: Nanjing, China
Posts: 14
Rep Power: 11 |
Quote:
Thank you for your help! I tried the suggestion 1 and it worked. Before doing this, I checked that $FOAM_USER_LIBBIN is in my LD_LIBRARY_PATH variable, so my problem is just the wrong format of libs. Thanks again. |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Wrong flow in ratating domain problem | Sanyo | CFX | 17 | August 15, 2015 07:20 |
Problem with SIMPLEC-like finite volume channel flow boundary conditions | ghobold | Main CFD Forum | 3 | June 15, 2015 12:14 |
Implementation of boundary conditions for FVM | Tom | Main CFD Forum | 7 | August 26, 2014 06:58 |
Error finding variable "THERMX" | sunilpatil | CFX | 8 | April 26, 2013 08:00 |
Concentric tube heat exchanger (Air-Water) | Young | CFX | 5 | October 7, 2008 00:17 |