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

Can not find my own boundary conditions when running a solver

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By floquation

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 4, 2016, 23:36
Default 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
Eric Brant is on a distinguished road
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]$
and this is my part of the controlDict code
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;
Is anyone encountered this issue before? I have look up the User guide and I think what I have done is all right. Any help would be appreciate.

Best to all,
Eric
Eric Brant is offline   Reply With Quote

Old   November 7, 2016, 04:59
Default
  #2
Senior Member
 
floquation's Avatar
 
Kevin van As
Join Date: Sep 2014
Location: TU Delft, The Netherlands
Posts: 252
Rep Power: 21
floquation will become famous soon enough
Two quick suggestions:

  1. Move the libraries in a single "libs". I don't know if that will change anything, but that is what I always do/see:
    Code:
    libs(
        "libOne.so"
        "libTwo.so"
    );
  2. Make sure that $FOAM_USER_LIBBIN is in your LD_LIBRARY_PATH variable. The following command should then return something:
    Code:
    echo -e ${LD_LIBRARY_PATH//:/\\n}  | grep $FOAM_USER_LIBBIN
Eric Brant and Origami like this.
floquation is offline   Reply With Quote

Old   November 7, 2016, 21:08
Default
  #3
New Member
 
Wenkun Zhao
Join Date: Mar 2015
Location: Nanjing, China
Posts: 14
Rep Power: 11
Eric Brant is on a distinguished road
Quote:
Originally Posted by floquation View Post
Two quick suggestions:

  1. Move the libraries in a single "libs". I don't know if that will change anything, but that is what I always do/see:
    Code:
    libs(
        "libOne.so"
        "libTwo.so"
    );
  2. Make sure that $FOAM_USER_LIBBIN is in your LD_LIBRARY_PATH variable. The following command should then return something:
    Code:
    echo -e ${LD_LIBRARY_PATH//:/\\n}  | grep $FOAM_USER_LIBBIN
Hi floquation,

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.
Eric Brant 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
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


All times are GMT -4. The time now is 23:02.