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

Transient boundary conditions

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree7Likes

Reply
 
LinkBack Thread Tools Display Modes
Old   March 5, 2009, 15:39
Default Hi Niels, Thanks for the in
  #101
Senior Member
 
Vishal Nandigana
Join Date: Mar 2009
Location: Champaign, Illinois, U.S.A
Posts: 206
Rep Power: 9
nandiganavishal is on a distinguished road
Hi Niels,

Thanks for the information. I will try that.. I heard that even oscillatingfixedvalue would also work in this case... Any idea how to incorporate them..

Thanks

Regards

Vishal Nandigana
nandiganavishal is offline   Reply With Quote

Old   March 9, 2009, 05:59
Default As I have not tried it, my onl
  #102
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Deltares, Delft, The Netherlands
Posts: 1,609
Rep Power: 25
ngj will become famous soon enoughngj will become famous soon enough
As I have not tried it, my only suggestion is for you to look at the wiki, which seems to give quite a few examples.

Good luck,

Niels
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request.
ngj is offline   Reply With Quote

Old   March 9, 2009, 13:10
Default Thanks Niels... I will go t
  #103
Senior Member
 
Vishal Nandigana
Join Date: Mar 2009
Location: Champaign, Illinois, U.S.A
Posts: 206
Rep Power: 9
nandiganavishal is on a distinguished road
Thanks Niels...

I will go through it and get back to you..

Regards

Vishal
nandiganavishal is offline   Reply With Quote

Old   June 29, 2009, 13:19
Default
  #104
Member
 
Gautami Erukulla
Join Date: Mar 2009
Posts: 30
Rep Power: 8
gautami is on a distinguished road
Hello

I have downloaded the groovy wave Tank case from the following link.
http://openfoamwiki.net/index.php/Contrib_groovyBC

I was not able to run the case successfully.(on OpenFoam-1.5)

Any suggestions will be really helpful.

Regards,
Gautami.
gautami is offline   Reply With Quote

Old   June 29, 2009, 14:49
Default
  #105
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,915
Rep Power: 40
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by gautami View Post
I have downloaded the groovy wave Tank case from the following link.
http://openfoamwiki.net/index.php/Contrib_groovyBC

I was not able to run the case successfully.(on OpenFoam-1.5)

Any suggestions will be really helpful.
Further details will be really helpful.

You touched the first two bullet-points in number 3 at http://openfoamwiki.net/index.php/Ho..._Message_Board

Bernhard
gschaider is offline   Reply With Quote

Old   June 29, 2009, 16:18
Default
  #106
Member
 
Gautami Erukulla
Join Date: Mar 2009
Posts: 30
Rep Power: 8
gautami is on a distinguished road
Hello,

I am sorry for being so vague.

I am using OpenFoam-1.5 on Suse linux 10.3.

The main reason why my groovy wave tank case is not working is that I am not able to compile the library.

I downloaded the source code for the library from:
https://openfoam-extend.svn.sourcefo...ries/groovyBC/

I created a new folder named groovyBC in the applications folder and copied the source code into it and tried to compile it with the command "wmake libso".
But I get the following error.

gali@SAI:~/OpenFOAM/OpenFOAM-1.5/applications/groovyBC> wmake libso
wmakeLnInclude: linking include files to /home/gali/OpenFOAM/OpenFOAM-1.5/applications/groovyBC/lnInclude

Making dependency list for source file PatchResult.C
Making dependency list for source file PatchValueExpressionParser.yy
could not open file PatchValueExpressionParser.tab.hh for source file PatchValueExpressionParser.yy
Making dependency list for source file PatchValueExpressionLexer.ll
could not open file PatchValueExpressionParser.tab.hh for source file PatchValueExpressionLexer.ll
Making dependency list for source file PatchValueExpressionDriver.C
could not open file PatchValueExpressionParser.tab.hh for source file PatchValueExpressionDriver.C
Making dependency list for source file groovyBCFvPatchFields.C
could not open file PatchValueExpressionParser.tab.hh for source file groovyBCFvPatchFields.C
Making dependency list for source file groovyBCPointPatchFields.C
could not open file MixedPointPatchField.H for source file groovyBCPointPatchFields.C
could not open file PatchValueExpressionParser.tab.hh for source file groovyBCPointPatchFields.C
could not open file PointPatchFieldMapper.H for source file groovyBCPointPatchFields.C
SOURCE=PatchResult.C ; g++ -m32 -Dlinux -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -IMake/linuxGccDPOpt -I/home/gali/OpenFOAM/OpenFOAM-1.5/src/finiteVolume/lnInclude -IlnInclude -I. -I/home/gali/OpenFOAM/OpenFOAM-1.5/src/OpenFOAM/lnInclude -I/home/gali/OpenFOAM/OpenFOAM-1.5/src/OSspecific/Unix/lnInclude -fPIC -pthread -c $SOURCE -o Make/linuxGccDPOpt/PatchResult.o
PatchResult.C: In member function ‘void Foam::PatchResult::uglyDelete()’:
PatchResult.C:97: warning: deleting ‘void*’ is undefined
SOURCE=PatchValueExpressionParser.yy ; rm -f Make/linuxGccDPOpt/PatchValueExpressionParser.C Make/linuxGccDPOpt/PatchValueExpressionParser.tab.hh; bison -ra -v -d $SOURCE ; mv *.tab.cc Make/linuxGccDPOpt/PatchValueExpressionParser.C ; mv *.tab.hh Make/linuxGccDPOpt/PatchValueExpressionParser.tab.hh ; mv *.hh Make/linuxGccDPOpt ; g++ -m32 -Dlinux -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -IMake/linuxGccDPOpt -I/home/gali/OpenFOAM/OpenFOAM-1.5/src/finiteVolume/lnInclude -IlnInclude -I. -I/home/gali/OpenFOAM/OpenFOAM-1.5/src/OpenFOAM/lnInclude -I/home/gali/OpenFOAM/OpenFOAM-1.5/src/OSspecific/Unix/lnInclude -fPIC -pthread -c Make/linuxGccDPOpt/PatchValueExpressionParser.C -o Make/linuxGccDPOpt/PatchValueExpressionParser.o
/bin/sh: bison: command not found
mv: cannot stat `*.tab.cc': No such file or directory
mv: cannot stat `*.tab.hh': No such file or directory
mv: cannot stat `*.hh': No such file or directory
g++: Make/linuxGccDPOpt/PatchValueExpressionParser.C: No such file or directory
g++: no input files
make: *** [Make/linuxGccDPOpt/PatchValueExpressionParser.o] Error 1
gali@SAI:~/OpenFOAM/OpenFOAM-1.5/applications/groovyBC>

Can you please suggest as to what I can do.

Thankyou
Gautami.
gautami is offline   Reply With Quote

Old   June 29, 2009, 16:53
Default
  #107
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,915
Rep Power: 40
gschaider will become famous soon enoughgschaider will become famous soon enough
OK. This is something that can be worked with.

The error lies here:

Quote:
Originally Posted by gautami View Post
Make/linuxGccDPOpt/PatchValueExpressionParser.o
/bin/sh: bison: command not found
Obviously the parser-generator bison is missing. Install that (propably a package of the same name, but you never know with SuSE)

Bernhard
gschaider is offline   Reply With Quote

Old   June 30, 2009, 12:29
Default
  #108
Member
 
Gautami Erukulla
Join Date: Mar 2009
Posts: 30
Rep Power: 8
gautami is on a distinguished road
Hello,

Thank you very much for your advice.I have installed bison on my machine and I could compile groovyBC library successfully.
I tried to run the groovy wave tank case now.The command blockmesh worked fine.Then the command setFields also worked fine.After these two commans I wanted to check the VOF patch and so I have given paraFoam command.
In paraFoam,in the object inspector if I select gamma in the Vol Field Status the paraFoam exits,with the following messages on the terminal.

Can you please help me with this.


Create mesh for time = 0

Reading setFieldsDict

Setting field default values
Setting volScalarField gamma
Setting volVectorField U

Setting field region values
Adding cells with center within box (0 0 -1) (30 0.1 0)
Setting volScalarField gamma

End
gali@SAI:~/OpenFOAM/gali-1.5/run/tutorials/interFoam/groovyWaveTank> paraFoam


Attempt to cast type N4Foam5token8CompoundINS_4ListIdEEEE to type N4Foam5token8CompoundINS_4ListIdEEEE#0 Foam::error:rintStack(Foam::Ostream&) in "/home/gali/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libOpenFOAM.so"
#1 Foam::error::abort() in "/home/gali/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libOpenFOAM.so"
#2 Foam::Ostream& Foam:perator<< <Foam::error>(Foam::Ostream&, Foam::errorManip<Foam::error>) in "/home/gali/OpenFOAM/gali-1.5/lib/linuxGccDPOpt/libgroovyBC.so"
#3 Foam::Istream& Foam:perator>><double>(Foam::Istream&, Foam::List<double>&) in "/home/gali/OpenFOAM/gali-1.5/lib/linuxGccDPOpt/libgroovyBC.so"
#4 Foam::Field<double>::Field(Foam::word const&, Foam::dictionary const&, int) addr2line failed
#5 Foam:imensionedField<double, Foam::volMesh>::readField(Foam::dictionary const&, Foam::word const&) addr2line failed
#6 Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::readField(Foam::Istream&) in "/home/gali/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libfiniteVolume.so"
#7 Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::GeometricField(Foam::IOobject const&, Foam::fvMesh const&) addr2line failed
#8 void Foam::vtkPV3Foam::convertVolFields<double>(Foam::f vMesh const&, Foam::volPointInterpolation const&, Foam::IOobjectList const&, vtkDataArraySelection*, vtkMultiBlockDataSet*) in "/home/gali/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libvtkPV3Foam.so"
#9 Foam::vtkPV3Foam::updateVolFields(vtkMultiBlockDat aSet*) in "/home/gali/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libvtkPV3Foam.so"
#10 Foam::vtkPV3Foam::Update(vtkMultiBlockDataSet*) in "/home/gali/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libvtkPV3Foam.so"
#11 vtkPV3FoamReader::RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*) in "/home/gali/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libPV3FoamReader_SM.so"
#12 vtkMultiBlockDataSetAlgorithm::ProcessRequest(vtkI nformation*, vtkInformationVector**, vtkInformationVector*) in "/home/gali/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linuxGcc/bin/libvtkFiltering.so.pv3.3"
#13 vtkExecutive::CallAlgorithm(vtkInformation*, int, vtkInformationVector**, vtkInformationVector*) in "/home/gali/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linuxGcc/bin/libvtkFiltering.so.pv3.3"
#14 vtkDemandDrivenPipeline::ExecuteData(vtkInformatio n*, vtkInformationVector**, vtkInformationVector*) addr2line failed
#15 vtkCompositeDataPipeline::ExecuteData(vtkInformati on*, vtkInformationVector**, vtkInformationVector*) addr2line failed
#16 vtkDemandDrivenPipeline::ProcessRequest(vtkInforma tion*, vtkInformationVector**, vtkInformationVector*) in "/home/gali/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linuxGcc/bin/libvtkFiltering.so.pv3.3"
#17 vtkStreamingDemandDrivenPipeline::ProcessRequest(v tkInformation*, vtkInformationVector**, vtkInformationVector*) addr2line failed
#18 vtkCompositeDataPipeline::ProcessRequest(vtkInform ation*, vtkInformationVector**, vtkInformationVector*) addr2line failed
#19 vtkDemandDrivenPipeline::UpdateData(int) addr2line failed
#20 vtkStreamingDemandDrivenPipeline::Update(int) in "/home/gali/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linuxGcc/bin/libvtkFiltering.so.pv3.3"
#21 vtkExecutive::Update() in "/home/gali/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linuxGcc/bin/libvtkFiltering.so.pv3.3"
#22 vtkDemandDrivenPipeline::Update() addr2line failed
#23 vtkStreamingDemandDrivenPipeline::Update() addr2line failed
#24 vtkAlgorithm::Update() addr2line failed
#25 vtkAlgorithmCommand(vtkClientServerInterpreter*, vtkObjectBase*, char const*, vtkClientServerStream const&, vtkClientServerStream&) in "/home/gali/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linuxGcc/bin/libvtkFilteringCS.so"
#26 vtkMultiBlockDataSetAlgorithmCommand(vtkClientServ erInterpreter*, vtkObjectBase*, char const*, vtkClientServerStream const&, vtkClientServerStream&) in "/home/gali/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linuxGcc/bin/libvtkFilteringCS.so"
#27 vtkPV3FoamReaderCommand(vtkClientServerInterpreter *, vtkObjectBase*, char const*, vtkClientServerStream const&, vtkClientServerStream&) in "/home/gali/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libPV3FoamReader_SM.so"
#28 vtkClientServerInterpreter::ProcessCommandInvoke(v tkClientServerStream const&, int) in "/home/gali/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linuxGcc/bin/libvtkClientServer.so"
#29 vtkClientServerInterpreter::ProcessOneMessage(vtkC lientServerStream const&, int) addr2line failed
#30 vtkClientServerInterpreter::ProcessStream(vtkClien tServerStream const&) addr2line failed
#31 vtkSelfConnection::ProcessStreamLocally(vtkClientS erverStream&) in "/home/gali/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linuxGcc/bin/libvtkPVServerCommon.so"
#32 vtkSelfConnection::SendStreamToClient(vtkClientSer verStream&) in "/home/gali/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linuxGcc/bin/libvtkPVServerCommon.so"
#33 vtkProcessModuleConnection::SendStream(unsigned int, vtkClientServerStream&) addr2line failed
#34 vtkProcessModuleConnectionManager::SendStream(int, unsigned int, vtkClientServerStream&, int) addr2line failed
#35 vtkProcessModule::SendStream(int, unsigned int, vtkClientServerStream&, int) addr2line failed
#36 vtkSMOutputPort::UpdatePipeline(double) addr2line failed
#37 vtkSMSourceProxy::UpdatePipeline(double) in "/home/gali/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linuxGcc/bin/libvtkPVServerManager.so"
#38 pqOutputPort::getDataInformation(bool) const addr2line failed
#39 pqDisplayPolicy::getPreferredViewType(pqOutputPort *, bool) const in "/home/gali/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linuxGcc/bin/libpqCore.so"
#40 pqDisplayPolicy::getPreferredView(pqOutputPort*, pqView*) const in "/home/gali/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linuxGcc/bin/libpqCore.so"
#41 pqDisplayPolicy::createPreferredRepresentation(pqO utputPort*, pqView*, bool) const addr2line failed
#42 pqPendingDisplayManager::createPendingDisplays(pqV iew*) in "/home/gali/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linuxGcc/bin/libpqCore.so"
#43 pqMainWindowCore::createPendingDisplays() addr2line failed
#44 pqMainWindowCore::qt_metacall(QMetaObject::Call, int, void**) at moc_pqMainWindowCore.cxx:0
#45 QMetaObject::activate(QObject*, int, int, void**) in "/usr/lib/libQtCore.so.4"
#46 QMetaObject::activate(QObject*, QMetaObject const*, int, void**) in "/usr/lib/libQtCore.so.4"
#47 pqObjectInspectorWidget::accepted() in "/home/gali/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linuxGcc/bin/libpqComponents.so"
#48 pqObjectInspectorWidget::accept() addr2line failed
#49 pqObjectInspectorWidget::qt_metacall(QMetaObject:: Call, int, void**) addr2line failed
#50 QMetaObject::activate(QObject*, int, int, void**) addr2line failed
#51 QMetaObject::activate(QObject*, QMetaObject const*, int, int, void**) in "/usr/lib/libQtCore.so.4"
#52 QAbstractButton::clicked(bool) in "/usr/lib/libQtGui.so.4"
#53 QAbstractButtonPrivate::emitClicked() in "/usr/lib/libQtGui.so.4"
#54 QAbstractButtonPrivate::click() addr2line failed
#55 QAbstractButton::mouseReleaseEvent(QMouseEvent*) addr2line failed
#56 QWidget::event(QEvent*) addr2line failed
#57 QAbstractButton::event(QEvent*) addr2line failed
#58 QPushButton::event(QEvent*) addr2line failed
#59 QApplicationPrivate::notify_helper(QObject*, QEvent*) in "/usr/lib/libQtGui.so.4"
#60 QApplication::notify(QObject*, QEvent*) addr2line failed
#61 QCoreApplication::notifyInternal(QObject*, QEvent*) in "/usr/lib/libQtCore.so.4"
#62 QETWidget::translateMouseEvent(_XEvent const*) in "/usr/lib/libQtGui.so.4"
#63 QApplication::x11ProcessEvent(_XEvent*) in "/usr/lib/libQtGui.so.4"
#64 ?? in "/usr/lib/libQtGui.so.4"
#65 g_main_context_dispatch in "/usr/lib/libglib-2.0.so.0"
#66 ?? in "/usr/lib/libglib-2.0.so.0"
#67 g_main_context_iteration in "/usr/lib/libglib-2.0.so.0"
#68 QEventDispatcherGlib:rocessEvents(QFlags<QEventL oop::ProcessEventsFlag>) in "/usr/lib/libQtCore.so.4"
#69 QGuiEventDispatcherGlib:rocessEvents(QFlags<QEve ntLoop::ProcessEventsFlag>) in "/usr/lib/libQtGui.so.4"
#70 QEventLoop:rocessEvents(QFlags<QEventLoop::Proce ssEventsFlag>) in "/usr/lib/libQtCore.so.4"
#71 QEventLoop::exec(QFlags<QEventLoop::ProcessEventsF lag>) in "/usr/lib/libQtCore.so.4"
#72 QCoreApplication::exec() in "/usr/lib/libQtCore.so.4"
#73 pqProcessModuleGUIHelper::RunGUIStart(int, char**, int, int) in "/home/gali/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linuxGcc/bin/libpqCore.so"
#74 vtkProcessModule::StartClient(int, char**) in "/home/gali/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linuxGcc/bin/libvtkPVServerCommon.so"
#75 vtkProcessModule::Start(int, char**) in "/home/gali/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linuxGcc/bin/libvtkPVServerCommon.so"
#76 vtkProcessModuleGUIHelper::Run(vtkPVOptions*) in "/home/gali/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linuxGcc/bin/libvtkPVServerCommon.so"
#77 pqMain::Run(QApplication&, pqProcessModuleGUIHelper*) in "/home/gali/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linuxGcc/bin/libpqCore.so"
#78 main in "/home/gali/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linuxGcc/bin/paraview"
#79 __libc_start_main in "/lib/libc.so.6"
#80 vtkObject::RegisterInternal(vtkObjectBase*, int) in "/home/gali/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linuxGcc/bin/paraview"


From function dynamicCast<To>(From&)
in file /home/gali/OpenFOAM/OpenFOAM-1.5/src/OpenFOAM/lnInclude/typeInfo.H at line 87.

FOAM aborting

/home/gali/OpenFOAM/OpenFOAM-1.5/bin/paraFoam: line 83: 21555 Aborted paraview --data=$caseFile
gali@SAI:~/OpenFOAM/gali-1.5/run/tutorials/interFoam/groovyWaveTank>

Thank You,
Gautami.
gautami is offline   Reply With Quote

Old   June 30, 2009, 13:05
Default
  #109
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,915
Rep Power: 40
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by gautami View Post
I tried to run the groovy wave tank case now.The command blockmesh worked fine.Then the command setFields also worked fine.After these two commans I wanted to check the VOF patch and so I have given paraFoam command.
In paraFoam,in the object inspector if I select gamma in the Vol Field Status the paraFoam exits,with the following messages on the terminal.


gali@SAI:~/OpenFOAM/gali-1.5/run/tutorials/interFoam/groovyWaveTank> paraFoam


Attempt to cast type N4Foam5token8CompoundINS_4ListIdEEEE to type N4Foam5token8CompoundINS_4ListIdEEEE#0 Foam::error:
Yeah. That's a "funny" error. It only happens on Linux-machines, but not on Macs (and I think that example case was created on a Mac).

Edit the system/controlDict. Change the line that says

libs ("libgroovyBC.so");

(or similar) to

libs ("libOpenFOAM.so" "libgroovyBC.so");

For normal programs this should make no difference but for paraview it is quite important.

Bernhard
anon_a likes this.
gschaider is offline   Reply With Quote

Old   June 30, 2009, 13:30
Default
  #110
Member
 
Gautami Erukulla
Join Date: Mar 2009
Posts: 30
Rep Power: 8
gautami is on a distinguished road
Hello,

Thank you,thanks a lot really.
I could run the case successfully now.

Regards,
Gautami.
gautami is offline   Reply With Quote

Old   June 30, 2009, 13:51
Default
  #111
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,915
Rep Power: 40
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by gautami View Post
Thank you,thanks a lot really.
You're welcome
Quote:
Originally Posted by gautami View Post
I could run the case successfully now.
I just checked: the fix was already described on the Wiki-page.

@Eric Paterson: If you read this. Could you incorporate this fix into the next tar of groovyWaveTank that you upload (for the benefit of the poor non-Macians)?

Bernhard
gschaider is offline   Reply With Quote

Old   September 21, 2009, 10:05
Default
  #112
Member
 
David GISEN
Join Date: Jul 2009
Location: Germany
Posts: 37
Rep Power: 8
David* is on a distinguished road
I have a problem getting the "groovywavetank" test case running. After trying with OF 1.6 (where I had a lot of trouble because of the changes) I tried to run it in OF 1.5. I compiled groovyBC with Bison 2.3, because it was the newest I found in Synaptic, it seemed to work fine. blockMesh and setFields worked too, but when I try to start interFoam, I get:

Quote:
Attempt to return dictionary entry as a primitive

file: /home/wind/OpenFOAM/wind-1.5/run/eigene/8_groovyWaveTank/system/fvSolution:corr:reconditioner from line 23 to line 35.

From function ITstream& primitiveEntry::stream() const
in file db/dictionary/dictionaryEntry/dictionaryEntry.C at line 83.

FOAM aborting
Have you got an idea, where I did a mistake? I'm running Ubuntu 8.10

regards
David

Last edited by David*; September 22, 2009 at 04:27.
David* is offline   Reply With Quote

Old   September 21, 2009, 13:38
Default
  #113
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,915
Rep Power: 40
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by David* View Post
I have a problem getting the "groovywavetank" test case running. After trying with OF 1.6 (where I had a lot of trouble because of the changes) I tried to run it in OF 1.5. I compiled groovyBC with Bison 2.3, because it was the newest I found in Synaptic, it seemed to work fine. blockMesh and setFields worked too, but when I try to start interFoam, I get:

Have you got an idea, where I did a mistake? I'm running Ubuntu 8.10

regards
David
The error message you're reporting seems to be due to a different format for specifying the linear solvers. Have a look at the tutorial-files in 1.5 and replace it with the specification for pcorr there.

Bernhard

PS: It has nothing to do with groovyBC. For once i didn't mess anything up
gschaider is offline   Reply With Quote

Old   September 22, 2009, 05:38
Default
  #114
Member
 
David GISEN
Join Date: Jul 2009
Location: Germany
Posts: 37
Rep Power: 8
David* is on a distinguished road
Thank your for your help, I got it working. Maybe the example was created using a dev-Version? For my OF 1.5 it works with the fvSolution posted below.

Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  dev                                   |
|   \\  /    A nd           | Web:      http://www.OpenFOAM.org               |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      fvSolution;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

solvers
{
    pcorr PCG
    {
        preconditioner GAMG;
        
            tolerance        1e-3;
            relTol           0;

            smoother         GaussSeidel;
            nPreSweeps       0;
            nPostSweeps      2;
            nBottomSweeps    2;

            cacheAgglomeration false;
            nCellsInCoarsestLevel 10;
            agglomerator     faceAreaPair;
            mergeLevels      1;
        

        maxIter          100;
    };

    pd GAMG
    {
        tolerance        1e-8;
        relTol           0.05;

        smoother         GaussSeidel;
        nPreSweeps       0;
        nPostSweeps      2;
        nFinestSweeps    2;

        cacheAgglomeration false;
        nCellsInCoarsestLevel 10;
        agglomerator     faceAreaPair;
        mergeLevels      1;
    };

    pdFinal PCG
    {

    preconditioner   DIC;
        tolerance        1e-7;
        relTol           0;
     /*   preconditioner GAMG;
                    
            tolerance        1e-8;
            relTol           0;

           // nVcycles         2;

            smoother         GaussSeidel;
            nPreSweeps       0;
            nPostSweeps      2;
            nFinestSweeps    2;

            cacheAgglomeration false;
            nCellsInCoarsestLevel 10;
            agglomerator     faceAreaPair;
            mergeLevels      1;
       
        maxIter          20; */
    };

    U smoothSolver
    {
        smoother         GaussSeidel;
        tolerance        1e-6;
        relTol           0;
        nSweeps          1;
    };

    k PBiCG
    {
        preconditioner   DILU;
        tolerance        1e-08;
        relTol           0;
    };
    B PBiCG
    {
        preconditioner   DILU;
        tolerance        1e-08;
        relTol           0;
    };
    nuTilda PBiCG
    {
        preconditioner   DILU;
        tolerance        1e-08;
        relTol           0;
    };
}

PISO
{
    momentumPredictor no;
    nCorrectors     3;
    nNonOrthogonalCorrectors 0;
    nGammaCorr      1;
    nGammaSubCycles 3;
    cGamma          1;
    pdRefCell       0;
    pdRefValue      0;
    pRefProbe
    {
        fields  (pd);
        probeLocations ((0.51 0.51 0.51));
    };
}

// ************************************************************************* //
David* is offline   Reply With Quote

Old   February 3, 2010, 23:10
Default
  #115
Senior Member
 
Jiang
Join Date: Oct 2009
Location: Japan
Posts: 186
Rep Power: 7
panda60 is on a distinguished road
Quote:
Originally Posted by grtabor View Post
Hi Ken.

OF reimplements certain functions such as sqrt which are already available from the standard C++ libraries. It also allows conversion from OF classes such as Scalar to standard types such as double. Thus when you ask for

sqrt(q)

where q is a scalar, the compiler has two possible options:

1. use the OF sqrt operator on this scalar, or
2. convert q to a double, then use the usual sqrt operator

The compiler can't make this decision for you, so it yelps! What you need to do is something like

Foam::sqrt(q)

which specifies the use of the sqrt function from the Foam namespace.

Gavin

Dear grtabor,
Do you have used directMapped condition for turbulent inlet ? It seems that OpenFOAM can only simplely map the internal plane value to the inlet. but I want to do like this :return the internal value multiply an function of z to the inlet. eugene said maybe you can do this. Could you give me some suggestions ?
Thank you very much.
panda60 is offline   Reply With Quote

Old   July 2, 2010, 09:56
Default
  #116
Member
 
Tobias Holzinger
Join Date: Mar 2009
Location: Munich, Germany
Posts: 46
Rep Power: 8
woody is on a distinguished road
Hey Daniele,


did you solve the problem? It seems, I need to do it quite similar. Do you have some code snippets for me?

Thanks in advance!

Tobi
woody is offline   Reply With Quote

Old   August 1, 2010, 08:52
Default
  #117
New Member
 
Robert
Join Date: Mar 2010
Posts: 16
Rep Power: 7
rob3rt is on a distinguished road
Hi Eveyone,

I want to implement a transient boundary conditions, hence I need boundaryData file under constant. However,the problem is the property that I want to vary with time is dimensionedScalar (No_Read in CreateFields.H) instead of volScalarField. What can I do to implement this? I have tried to put this in the solver, but doesn't work.

if (runTime.value() > 500)
{
Q = 600;
}
else
{
Q = 0;
}

Suggestions will be very much appreciated.

Thanks in advance.

Robert
rob3rt is offline   Reply With Quote

Old   August 2, 2010, 02:10
Default
  #118
Member
 
Tobias Holzinger
Join Date: Mar 2009
Location: Munich, Germany
Posts: 46
Rep Power: 8
woody is on a distinguished road
Quote:
I have tried to put this in the solver, but doesn't work.

if (runTime.value() > 500)
{
Q = 600;
}
else
{
Q = 0;
}
Hi Robert,

what exactly does not work? Is there any error message?

Tobi
woody is offline   Reply With Quote

Old   August 2, 2010, 02:22
Default
  #119
New Member
 
Robert
Join Date: Mar 2010
Posts: 16
Rep Power: 7
rob3rt is on a distinguished road
Hi Toby,

I'm using pimpleFoam plus other bits of codings from different solvers. I can check the Q in the time folder and see that in the nonuniformList <scalar> not everything is zero which means the loop doesn't work.

Kind Regards,
Robert
rob3rt is offline   Reply With Quote

Old   August 2, 2010, 05:22
Default
  #120
Member
 
Tobias Holzinger
Join Date: Mar 2009
Location: Munich, Germany
Posts: 46
Rep Power: 8
woody is on a distinguished road
Hi Robert,

did you try something like
Quote:
Info << "Time" << runTime.value() << endl;
if (runTime.value() > 500)
{
Q = 600;
Info << "True" << endl;
}
else
{
Q = 0;
Info << "False" << endl;
}
Info << "Q= " << Q << endl;
?

Tobi
woody is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Transient boundary conditions Dave FLUENT 5 October 30, 2011 09:58
Transient boundary conditions in CFX Sohail Ahmed CFX 2 December 11, 2007 14:01
Transient boundary conditions Yannick FLUENT 6 November 6, 2007 08:47
Transient Boundary Conditions James Date CFX 5 September 13, 2004 11:34


All times are GMT -4. The time now is 19:03.