Hi FOAMers,
I want to implement a new BC in OpenFOAM, based on the "mapped" BC which is used in the pitzDailyMapped tutorial. To start, I use the "mapped" BC from: PHP Code:
PHP Code:
Code:
chrismappedFvPatch.C Code:
EXE_INC = \ After copying the pitzDailyMapped tutorial to my run-folder, I changed the boundaryField in 0/U to: Code:
... Code:
... Code:
libs ("libchrismapped.so"); Running the case with pisoFoam, OF shows Fatal IO ERROR Code:
... Code:
... Code:
... Thank you, Christoph -------------------------------------------------------------------------------------------------------------------------------------------- SOLVED: You have to change the name of the BC in the header file to: TypeName("chrismapped"); Then everything is working fine! |
I am doing simulation using open-foam on 2D aerofoil. I used komega model and put all boundary conditions and started the simulation. However, at Time= 26 i receive an error, I hope i can get help with this issue.
Thank you #0 Foam::error::printStack(Foam::Ostream&) at ??:? #1 Foam::sigFpe::sigHandler(int) at ??:? #2 in "/lib/x86_64-linux-gnu/libc.so.6" #3 Foam::GaussSeidelSmoother::smooth(Foam::word const&, Foam::Field<double>&, Foam::lduMatrix const&, Foam::Field<double> const&, Foam::FieldField<Foam::Field, double> const&, Foam::UPtrList<Foam::lduInterfaceField const> const&, unsigned char, int) at ??:? #4 Foam::GaussSeidelSmoother::smooth(Foam::Field<doub le>&, Foam::Field<double> const&, unsigned char, int) const at ??:? #5 Foam::smoothSolver::solve(Foam::Field<double>&, Foam::Field<double> const&, unsigned char) const at ??:? #6 Foam::fvMatrix<double>::solveSegregated(Foam::dict ionary const&) at ??:? #7 Foam::fvMatrix<double>::solve(Foam::dictionary const&) at ??:? #8 Foam::SolverPerformance<double> Foam::solve<double>(Foam::tmp<Foam::fvMatrix<doubl e> > const&) at ??:? #9 Foam::incompressible::RASModels::kOmega::correct() at ??:? #10 at ??:? #11 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6" #12 at ??:? Floating point exception (core dumped) |
hi sean,
after compilation my new BC is not recognised by solver. i have input relevant lines referring to newly created shared object library. But still new BC is not recognised. can you help please? thanks |
Hii everyone
I am making a new custom boundary condition and i am getting following error can anyone suggest where do i need to modify the code? "ill defined primitiveEntry starting at keyword 'libs(' on line 48 and ending at line 77" file: /home/gourav/OpenFOAM/gourav-4.1/run/mode_two_temperature/system/controlDict at line 77. From function void Foam::primitiveEntry::readEntry(const Foam::dictionary&, Foam::Istream&) in file db/dictionary/primitiveEntry/primitiveEntryIO.C at line 189. FOAM exiting mv: cannot stat '/polyMesh': No such file or directory rm: cannot remove '[1-9]*': No such file or directory Running darcyTemperatureFoam on /home/gourav/OpenFOAM/gourav-4.1/run/mode_two_temperature Here is my ControlDictfile code:: /*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.3.0 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; location "system"; object controlDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // application darcyTemperatureFoam; startFrom latestTime; startTime 0; stopAt endTime; endTime 600; deltaT 10; writeControl runTime; writeInterval 5; purgeWrite 0; writeFormat ascii; writePrecision 6; writeCompression off; timeFormat general; timePrecision 6; runTimeModifiable true; libs("ldarcyGradPressure.so"); functions { probes { type probes; functionObjectLibs ("libsampling.so"); enabled true; writeControl timeStep; writeInterval 1; fields ( Ts Tf ); probeLocations ( ( 2 0.05 0.05) // Probe 1 ( 5 0.05 0.05) // Probe 2 ( 9 0.05 0.05) // Probe 3 ); } } // ************************************************** *********************** // |
You need a space between 'libs' and '('.
|
All times are GMT -4. The time now is 21:45. |