|
[Sponsors] |
Unknown patchField type error with new solver |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 25, 2021, 11:58 |
Unknown patchField type error with new solver
|
#1 |
Senior Member
Josh McCraney
Join Date: Jun 2018
Posts: 220
Rep Power: 8 |
Hi all
I am using Ubuntu 18.04 with OpenFoam 2.4.0. A lab computer has a custom solver built, which is nearly identical to interFoam, called davishockingInterFoam. I copy this solver from the lab machine and place it here on my local machine: /home/josh/OpenFOAM/OpenFOAM-2.4.0/applications/solvers/multiphase/. This solver requires new boundary conditions. For this I copy the twoPhaseProperties file from the lab computer and put it here on my local machine: /home/josh/OpenFOAM/OpenFOAM-2.4.0/src/transportModels/twoPhaseProperties I then cd to /home/josh/OpenFOAM/OpenFOAM-2.4.0 and execute ./Allwmake and no errors are found. When running davishockingInterFoam I execute the following: mpirun -np 4 davishockingInterFoam -parallel And I get the error 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 : davishockingInterFoam -parallel Date : Jul 25 2021 Time : 11:48:38 Host : "josh-Super-Server" PID : 20807 Case : /home/josh/OpenFOAM/OpenFOAM-2.4.0/hockingWC_A nProcs : 4 Slaves : 3 ( "josh-Super-Server.20808" "josh-Super-Server.20809" "josh-Super-Server.20810" ) Pstream initialized with: floatTransfer : 0 nProcsSimpleSum : 0 commsType : nonBlocking polling iterations : 0 sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE). fileModificationChecking : Monitoring run-time modified files using timeStampMaster allowSystemOperations : Allowing user-supplied system call operations // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Create time Create mesh for time = 0 PIMPLE: Operating solver in PISO mode Reading field p_rgh Reading field U Reading/calculating face flux field phi Reading transportProperties [2] [2] [2] --> FOAM FATAL IO ERROR: [2] Unknown patchField type dynamicDavisHockingAlphaContactAngle for patch type wall Valid patchField types are : 109 ( MarshakRadiation MarshakRadiationFixedTemperature advective alphaFixedPressure alphatJayatillekeWallFunction atmBoundaryLayerInletEpsilon atmBoundaryLayerInletK calculated codedFixedValue codedMixed compressible::thermalBaffle1D<hConstSolidThermoPhysics> compressible::thermalBaffle1D<hExponentialSolidThermoPhysics> compressible::turbulentHeatFluxTemperature compressible::turbulentTemperatureCoupledBaffleMixed compressible::turbulentTemperatureRadCoupledMixed constantAlphaContactAngle cyclic cyclicACMI cyclicAMI cyclicSlip directionMixed dynamicAlphaContactAngle empty energyJump energyJumpAMI epsilonLowReWallFunction epsilonWallFunction externalCoupled externalCoupledTemperature externalWallHeatFluxTemperature fWallFunction fan fanPressure fixedEnergy fixedFluxPressure fixedGradient fixedInternalValue fixedJump fixedJumpAMI fixedMean fixedPressureCompressibleDensity fixedUnburntEnthalpy fixedValue freestream freestreamPressure gradientEnergy gradientUnburntEnthalpy greyDiffusiveRadiation greyDiffusiveRadiationViewFactor inletOutlet inletOutletTotalTemperature kLowReWallFunction kqRWallFunction mapped mappedField mappedFixedInternalValue mappedFixedPushedInternalValue mixed mixedEnergy mixedUnburntEnthalpy nonuniformTransformCyclic nutLowReWallFunction nutTabulatedWallFunction nutURoughWallFunction nutUSpaldingWallFunction nutUWallFunction nutkAtmRoughWallFunction nutkRoughWallFunction nutkWallFunction omegaWallFunction oscillatingFixedValue outletInlet outletMappedUniformInlet partialSlip phaseHydrostaticPressure prghPressure processor processorCyclic rotatingTotalPressure sliced slip symmetry symmetryPlane syringePressure timeVaryingAlphaContactAngle timeVaryingMappedFixedValue totalFlowRateAdvectiveDiffusive totalPressure totalTemperature turbulentHeatFluxTemperature turbulentInlet turbulentIntensityKineticEnergyInlet turbulentMixingLengthDissipationRateInlet turbulentMixingLengthFrequencyInlet uniformDensityHydrostaticPressure uniformFixedGradient uniformFixedValue uniformInletOutlet uniformJump uniformJumpAMI uniformTotalPressure v2WallFunction variableHeightFlowRate wallHeatTransfer waveSurfacePressure waveTransmissive wedge wideBandDiffusiveRadiation zeroGradient ) [2] [2] [2] file: /home/josh/OpenFOAM/OpenFOAM-2.4.0/hockingWC_A/processor2/0/alpha.water.boundaryField.fixedSurface from line 26 to line 32. [2] [2] From function fvPatchField<Type>::New(const fvPatch&, const DimensionedField<Type, volMesh>&, const dictionary&) [2] in file /home/josh/OpenFOAM/OpenFOAM-2.4.0/src/finiteVolume/lnInclude/fvPatchFieldNew.C at line 143. [2] FOAM parallel run exiting [2] -------------------------------------------------------------------------- MPI_ABORT was invoked on rank 2 in communicator MPI_COMM_WORLD with errorcode 1. NOTE: invoking MPI_ABORT causes Open MPI to kill all MPI processes. You may or may not see output from other processes, depending on exactly when Open MPI kills them. |
|
July 25, 2021, 20:06 |
|
#2 |
Senior Member
Josh McCraney
Join Date: Jun 2018
Posts: 220
Rep Power: 8 |
I fixed the issue. Turns out I needed to update the Make file to include the contact angle models I was incorporating. The Make file is here for me:
/home/josh/OpenFOAM/OpenFOAM-2.4.0/src/transportModels/twoPhaseProperties/Make Once there, open the "files" document, and include the necessary .C files you need. This should be evident, as you'll see what's already included. Hope this helps you. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
time step continuity error increases with time_SRFSimplefoam | mostafa kamal | OpenFOAM Running, Solving & CFD | 7 | October 2, 2019 02:00 |
Compression instead of expansion | EnricoDeFilippi | OpenFOAM Running, Solving & CFD | 1 | October 8, 2018 10:19 |
Floating point exception error | lpz_michele | OpenFOAM Running, Solving & CFD | 53 | October 19, 2015 02:50 |
Modified pimpleFoam solver to MRFPimpleFoam solver | hiuluom | OpenFOAM Programming & Development | 12 | June 14, 2015 21:22 |
Thermal Comfort Simulation in STAR CCM+ | anupmu | STAR-CCM+ | 1 | February 27, 2013 14:25 |