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

How to start swak4Foam

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

Reply
 
LinkBack Thread Tools Display Modes
Old   September 14, 2012, 09:25
Default How to start swak4Foam
  #1
Member
 
M Mallikarjuna Reddy
Join Date: Jul 2012
Posts: 91
Rep Power: 4
mmkr825 is on a distinguished road
Hi everyone,
I successfully installed swak4Foam. Now i am working on OF2.1.1 version. Initially i run wobbler case in the swak4Foam library by using solidDisplacementFoam (i didn't made any changes for the solver), I got some error message.

Error:-
malli_reddy@ubuntu:~/OpenFOAM/malli_reddy-2.1.1/swak4Foam/Examples/groovyBC/wobbler$ solidDisplacementFoam
/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.1.1 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 2.1.1-221db2718bbb
Exec : solidDisplacementFoam
Date : Sep 14 2012
Time : 15:41:15
Host : "ubuntu"
PID : 30407
Case : /home/malli_reddy/OpenFOAM/malli_reddy-2.1.1/swak4Foam/Examples/groovyBC/wobbler
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Disallowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh for time = 0

Reading mechanical properties



--> FOAM FATAL ERROR:
Attempt to return primitive entry ITstream : /home/malli_reddy/OpenFOAM/malli_reddy-2.1.1/swak4Foam/Examples/groovyBC/wobbler/constant/mechanicalProperties::rho, line 17, IOstream: Version 2.0, format ASCII, line 0, OPENED, GOOD
primitiveEntry 'rho' comprises
on line 17 the word 'rho'
on line 17 the punctuation token '['
on line 17 the label 1
on line 17 the label -3
on line 17 the label 0
on line 17 the label 0
on line 17 the label 0
on line 17 the label 0
on line 17 the label 0
on line 17 the punctuation token ']' ...
as a sub-dictionary

From function const dictionary& primitiveEntry::dict()
in file db/dictionary/primitiveEntry/primitiveEntry.C at line 170.

FOAM aborting

#0 Foam::error:rintStack(Foam::Ostream&) in "/opt/openfoam211/platforms/linuxGccDPOpt/lib/libOpenFOAM.so"
#1 Foam::error::abort() in "/opt/openfoam211/platforms/linuxGccDPOpt/lib/libOpenFOAM.so"
#2 Foam:rimitiveEntry::dict() in "/opt/openfoam211/platforms/linuxGccDPOpt/lib/libOpenFOAM.so"
#3 Foam::dictionary::subDict(Foam::word const&) in "/opt/openfoam211/platforms/linuxGccDPOpt/lib/libOpenFOAM.so"
#4
in "/opt/openfoam211/platforms/linuxGccDPOpt/bin/solidDisplacementFoam"
#5 __libc_start_main in "/lib/i386-linux-gnu/libc.so.6"
#6
in "/opt/openfoam211/platforms/linuxGccDPOpt/bin/solidDisplacementFoam"
Aborted


At first i run with blockMesh and then i called solidDisplacementFoam. Please suggest me how to rectify this problem.

Thanks
Regards
Mallikarjuna
mmkr825 is offline   Reply With Quote

Old   September 15, 2012, 09:02
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,183
Blog Entries: 34
Rep Power: 83
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings Mallikarjuna,

The file content format has changed since the example was created for swak4Foam. You can easily fix the problem by running the following command:
Code:
cp $FOAM_TUTORIALS/stressAnalysis/solidDisplacementFoam/plateHole/constant/mechanicalProperties constant/
When in doubt, check OpenFOAM's own tutorials

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   September 17, 2012, 00:44
Default
  #3
Member
 
M Mallikarjuna Reddy
Join Date: Jul 2012
Posts: 91
Rep Power: 4
mmkr825 is on a distinguished road
Hi Bruno,
Thanks for quick reply. Now it is working.
I have one more doubt. actually in my case i need write zero flux boundary condition. when i applied this boundary condition, i got an expression for gradient. In that equation i need to access gradient of another field. Could you please suggest me any case which is close to my problem.

Thanks
Regards
Mallikarjuna
mmkr825 is offline   Reply With Quote

Old   September 17, 2012, 03:50
Default
  #4
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,183
Blog Entries: 34
Rep Power: 83
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi Mallikarjuna,

Sorry, I unfortunately don't know. I hope someone else can answer you.
Perhaps you might have to create a new thread to ask that question and be more detailed of what you want to know!

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   September 17, 2012, 19:12
Default
  #5
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,912
Rep Power: 40
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by mmkr825 View Post
Hi Bruno,
Thanks for quick reply. Now it is working.
I have one more doubt. actually in my case i need write zero flux boundary condition. when i applied this boundary condition, i got an expression for gradient. In that equation i need to access gradient of another field. Could you please suggest me any case which is close to my problem.

Thanks
Regards
Mallikarjuna
"snGrad(foo)" in a groovyBC-expression should give you the surface-normal gradient of field foo on the patch. Hope that helps
__________________
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
gschaider is offline   Reply With Quote

Old   September 18, 2012, 05:07
Default
  #6
Member
 
M Mallikarjuna Reddy
Join Date: Jul 2012
Posts: 91
Rep Power: 4
mmkr825 is on a distinguished road
Hi Gshaider,
Thanks for the quick reply. Now it is working. Thank a lot, you are the man.

Thanks
Regards
Mallikarjuna
mmkr825 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
TimeVaryingMappedFixedValue irishdave OpenFOAM Running, Solving & CFD 28 May 28, 2015 13:37
Installing swak4Foam to OpenFOAM in mac Kaquesang OpenFOAM Installation on Windows, Mac and other Unsupported Platforms 22 January 21, 2013 12:51
Problem in running ICEM grid in Openfoam Tarak OpenFOAM 6 September 9, 2011 17:51
Start star ccm+ remotely with mpiexec Dagnir CD-adapco 0 November 24, 2010 13:33
Lets start the public domain CFD-Project! Heinz Wilkening Main CFD Forum 3 March 11, 1999 23:55


All times are GMT -4. The time now is 17:47.