CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Community Contributions (https://www.cfd-online.com/Forums/openfoam-community-contributions/)
-   -   [swak4Foam] How to start swak4Foam (https://www.cfd-online.com/Forums/openfoam-community-contributions/106996-how-start-swak4foam.html)

mmkr825 September 14, 2012 09:25

How to start swak4Foam
 
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::printStack(Foam::Ostream&) in "/opt/openfoam211/platforms/linuxGccDPOpt/lib/libOpenFOAM.so"
#1 Foam::error::abort() in "/opt/openfoam211/platforms/linuxGccDPOpt/lib/libOpenFOAM.so"
#2 Foam::primitiveEntry::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

wyldckat September 15, 2012 09:02

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

mmkr825 September 17, 2012 00:44

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

wyldckat September 17, 2012 03:50

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

gschaider September 17, 2012 19:12

Quote:

Originally Posted by mmkr825 (Post 382060)
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

mmkr825 September 18, 2012 05:07

Hi Gshaider,
Thanks for the quick reply. Now it is working. Thank a lot, you are the man.

Thanks
Regards
Mallikarjuna


All times are GMT -4. The time now is 11:31.