|
[Sponsors] |
solver stops with error when using swakRadiationModelFunctionPlugin |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 7, 2013, 06:24 |
solver stops with error when using swakRadiationModelFunctionPlugin
|
#1 |
Member
hannes
Join Date: Mar 2013
Posts: 47
Rep Power: 13 |
Hi,
I have a small problem with the swakRadiationModelFunctionPlugin. I'm using OF 2.2.1 running a simulation with the buoyantSimpleFoam solver and the fvDOM radiation model. I wanted to have a look at Ru, Rp and Sh in order to check the energy balance and so added the following to my controlDict: Code:
libs ( "libsimpleSwakFunctionObjects.so" "libswakFunctionObjects.so" "libswakRadiationModelFunctionPlugin.so" ); ... functions { radiation_Rp { type expressionField; fieldName radiationRp; expression "radiation_Rp()"; autowrite true; } radiation_Ru { type expressionField; fieldName radiationRu; expression "radiation_Ru()"; autowrite true; } radiation_radSource { type expressionField; fieldName radiationSource; expression "radiation_radSource()"; autowrite true; } } Code:
Starting time loop Creating expression field radiationRp ...swak4Foam: Allocating new repository for sampledMeshes swak4Foam: Allocating new repository for sampledGlobalVariables "Loaded plugin functions for 'FieldValueExpressionDriver':" radiation_Rp: "volScalarField radiation_Rp()" radiation_Ru: "volScalarField radiation_Ru()" radiation_radSource: "volScalarField radiation_radSource()" swak4Foam: Setting default mesh type:volScalarField Creating expression field radiationRu ... --> FOAM FATAL ERROR: attempted assignment to self From function DimensionedField<Type, GeoMesh>::operator=(const DimensionedField<Type, GeoMesh>&) in file /opt/OpenFOAM-2.2.1/src/OpenFOAM/lnInclude/DimensionedField.C at line 425. FOAM aborting #0 Foam::error::printStack(Foam::Ostream&) in "/opt/OpenFOAM-2.2.1/platforms/linux64GccDPOpt/lib/libOpenFOAM.so" #1 Foam::error::abort() in "/opt/OpenFOAM-2.2.1/platforms/linux64GccDPOpt/lib/libOpenFOAM.so" #2 Foam::DimensionedField<double, Foam::volMesh>::operator=(Foam::DimensionedField<double, Foam::volMesh> const&) in "/opt/OpenFOAM-2.2.1/platforms/linux64GccDPOpt/bin/buoyantSimpleFoam" #3 Foam::swakRadiationModelPluginFunction_Ru::doEvaluation() in "/home/hs/OpenFOAM/hs-2.2.1/platforms/linux64GccDPOpt/lib/libswakRadiationModelFunctionPlugin.so" #4 Foam::CommonPluginFunction::evaluateInternal(Foam::string const&, int&) in "/home/hs/OpenFOAM/hs-2.2.1/platforms/linux64GccDPOpt/lib/libswak4FoamParsers.so" #5 Foam::autoPtr<Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> > Foam::FieldValueExpressionDriver::evaluatePluginFunction<Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> >(Foam::word const&, parserField::location const&, int&) in "/home/hs/OpenFOAM/hs-2.2.1/platforms/linux64GccDPOpt/lib/libswak4FoamParsers.so" #6 parserField::FieldValueExpressionParser::parse() in "/home/hs/OpenFOAM/hs-2.2.1/platforms/linux64GccDPOpt/lib/libswak4FoamParsers.so" #7 Foam::FieldValueExpressionDriver::parseInternal(int) in "/home/hs/OpenFOAM/hs-2.2.1/platforms/linux64GccDPOpt/lib/libswak4FoamParsers.so" #8 Foam::CommonValueExpressionDriver::parse(std::string const&, Foam::word const&) in "/home/hs/OpenFOAM/hs-2.2.1/platforms/linux64GccDPOpt/lib/libswak4FoamParsers.so" #9 Foam::expressionField::write() in "/home/hs/OpenFOAM/hs-2.2.1/platforms/linux64GccDPOpt/lib/libswakFunctionObjects.so" #10 Foam::expressionField::expressionField(Foam::word const&, Foam::objectRegistry const&, Foam::dictionary const&, bool) in "/home/hs/OpenFOAM/hs-2.2.1/platforms/linux64GccDPOpt/lib/libswakFunctionObjects.so" #11 Foam::OutputFilterFunctionObject<Foam::expressionField>::allocateFilter() in "/home/hs/OpenFOAM/hs-2.2.1/platforms/linux64GccDPOpt/lib/libswakFunctionObjects.so" #12 Foam::OutputFilterFunctionObject<Foam::expressionField>::start() in "/home/hs/OpenFOAM/hs-2.2.1/platforms/linux64GccDPOpt/lib/libswakFunctionObjects.so" #13 Foam::functionObjectList::read() in "/opt/OpenFOAM-2.2.1/platforms/linux64GccDPOpt/lib/libOpenFOAM.so" #14 Foam::Time::run() const in "/opt/OpenFOAM-2.2.1/platforms/linux64GccDPOpt/lib/libOpenFOAM.so" #15 Foam::Time::loop() in "/opt/OpenFOAM-2.2.1/platforms/linux64GccDPOpt/lib/libOpenFOAM.so" #16 Foam::simpleControl::loop() in "/opt/OpenFOAM-2.2.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so" #17 in "/opt/OpenFOAM-2.2.1/platforms/linux64GccDPOpt/bin/buoyantSimpleFoam" #18 __libc_start_main in "/lib64/libc.so.6" #19 at /usr/src/packages/BUILD/glibc-2.11.3/csu/../sysdeps/x86_64/elf/start.S:116 Thanks a lot for any help Hannes |
|
August 7, 2013, 12:35 |
|
#2 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
||
November 11, 2014, 10:32 |
|
#3 |
Senior Member
Alex
Join Date: Oct 2013
Posts: 337
Rep Power: 22 |
Hello Bernhard and Hannes!
I was looking for some info about the fvDOM method when I unintendedly got to this thread. I didn't know this functionality of swak4foam, since I don't usually use it although I have it installed. Can you, please, explain me a little how it works and what are the outputs? I have copypasted the piece of code Hannes posted and I have the same problem with the Ru part. Where can I find the documentation about this functionality (and all the other ones)? Thanks in advance. Alex
__________________
Web site where I present my Master's Thesis: foamingtime.wordpress.com The case I talk about in this site was solved with chtMultiRegionSimpleFoam solver and involves radiation. Some basic tutorials are also resolved step by step in the web. If you are interested in these matters, you are invited to come in! |
|
November 11, 2014, 11:48 |
|
#4 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
||
Tags |
buoyantsimplefoam, radiation, swak4foam error |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Quarter Burner mesh with periosic condition | SamCanuck | FLUENT | 2 | August 31, 2011 12:34 |
Working directory via command line | Luiz | CFX | 4 | March 6, 2011 21:02 |
HELP PLS: Simplefoam manipulated to add diffusive mass transport...but solver stops!! | 1gn0rant | OpenFOAM Running, Solving & CFD | 1 | August 13, 2010 12:02 |
why the solver reject it? Anyone with experience? | bearcat | CFX | 6 | April 28, 2008 15:08 |
Solver stops abruptly without errors | prabhu | CFX | 1 | December 20, 2007 02:35 |