|
[Sponsors] |
[swak4Foam] patchExpression and swakExpression do not respond in OpenFOAM 4 |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
November 26, 2016, 09:01 |
patchExpression and swakExpression do not respond in OpenFOAM 4
|
#1 |
Member
a
Join Date: Oct 2014
Posts: 49
Rep Power: 12 |
Dear openFoam experts,
the controlDict which was working for openfoam 3.0 fails to perform for the new version. do I have to change any style of writing functions in version 4.0? the error which I get is given below, Code:
/*---------------------------------------------------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 4.1 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ Build : 4.1-1e03d68d4f4e Exec : buoyantPimpleFoam Date : Nov 26 2016 Time : 18:33:41 Host : "CFD-desktop" PID : 21813 Case : /home/ojas/OPENFOAM_4.0_18_november/LUST/beta-2 nProcs : 1 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 thermophysical properties Selecting thermodynamics package { type heRhoThermo; mixture pureMixture; transport const; thermo hConst; equationOfState perfectFluid; specie specie; energy sensibleInternalEnergy; } Reading field U Reading/calculating face flux field phi Creating turbulence model Selecting turbulence model type laminar Reading g Reading hRef Calculating field g.h Reading field p_rgh Creating field dpdt Creating field kinetic energy K No MRF models present Radiation model not active: radiationProperties not found Selecting radiationModel none Creating finite volume options from "constant/fvOptions" Selecting finite volume options model type solidificationMeltingSource Source: sMS1 - selecting cells using cellZone solid - selected 21504 cell(s) with volume 5.64515e-06 Courant Number mean: 0 max: 0 Starting time loop --> FOAM FATAL IO ERROR: 'functions' entry is not a dictionary file: /home/ojas/OPENFOAM_4.0_18_november/LUST/beta-2/system/controlDict from line 18 to line 85. From function bool Foam::functionObjectList::read() in file db/functionObjects/functionObjectList/functionObjectList.C at line 582. FOAM exiting Code:
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 3.0.0 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; location "system"; object controlDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // libs ( "libOpenFOAM.so" "libsimpleSwakFunctionObjects.so" "libswakFunctionObjects.so" "libgroovyBC.so" ); application buoyantPimpleFoam; startFrom startTime; startTime 0; stopAt endTime; endTime 3000.0; deltaT 0.005; writeControl adjustableRunTime; writeInterval 60; purgeWrite 0; writeFormat binary; writePrecision 8; writeCompression off; timeFormat general; timePrecision 6; runTimeModifiable yes; functions ( WallHT { type patchExpression; patches ( "leftWall" ); outputControlMode timeStep; outputInterval 1; variables ("k1=32;" ); expression "k1*(snGrad(T))*area()"; accumulations (sum); verbose true; // debugCommonDriver 1; } uysqr { type swakExpression; valueType cellZone; zoneName solid; // or whatever is your zoneName accumulations ( min ); variables ("fl=(mag(381.5*(T-302.78))/80160);" ); expression "sum((U.y*U.y)*vol()*fl)/sum(vol()*fl)"; verbose true; //outputControlMode timestep } ); //TRY ALL values average for one case they should match// // ************************************************************************* // Last edited by wyldckat; November 27, 2016 at 21:39. Reason: Changed [QUOTE][/QUOTE] to [CODE][/CODE] |
|
November 27, 2016, 21:46 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Quick answer:
__________________
|
|
November 29, 2016, 03:04 |
|
#3 |
Member
a
Join Date: Oct 2014
Posts: 49
Rep Power: 12 |
Many thanks wyldckat for identification of my mistake and the useful general tip!!!
|
|
|
|