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

Error installing swak4Foam

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

Like Tree3Likes

Reply
 
LinkBack Thread Tools Display Modes
Old   March 21, 2013, 06:24
Default
  #21
Senior Member
 
Forrest
Join Date: Jun 2012
Posts: 218
Rep Power: 3
sharonyue is on a distinguished road
Quote:
Originally Posted by lohasz View Post
Sorry, the verison of swak4foam was given in the title

It was 0.2.3, I just downloaded from: http://openfoamwiki.net/images/c/c9/...e_0.2.3.tar.gz

Thanks,
Máté

I have download this and do the comment,
//#define FOAM_LOOKUPCLASS_NO_CONST
it compiles okay in my foam 2.2.0.
And run funkySetFields -time 0
It works!
Thanks you all you guys especially Gschaider.you did a splenedid work.!



Well, I tried to make the velocity of alpha 0 field to be (0 -0.1 0)
Code:
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object funkySetFieldsDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

expressions
(
	internalFields 
	{
	field	alpha1;
	expression "1";    
	condition "pow(pos().x,2) + pow(pos().y-0.15,2) <= pow(0.15,2)/4";//f   x^2+(y-0.0015)^2<0.0015^2/4
	keepPatches	1;
	}
        
        internalFields 
	{
	field	U;
	expression "(0 -0.1 0)";
	condition "pow(pos().x,2) + pow(pos().y-0.15,2) <= pow(0.15,2)/4";//f   x^2+(y-0.0015)^2<0.0015^2/4
	keepPatches	1;
	}

);
ERROR:
Code:
Create time

Create mesh for time = 0


Time = 0
 Using funkySetFieldsDict 



Part: internalFields
 Modifying field alpha1 of type volScalarField

 Putting "1" into field alpha1 at t = "0" if condition "pow(pos().x,2) + pow(pos().y-0.15,2) <= pow(0.15,2)/4" is true
 Keeping patches unaltered

 Setting 284 of 8000 cells
 Writing to "alpha1"


Part: internalFields
 Modifying field U of type volVectorField

 Putting "(0 0 0)" into field U at t = "0" if condition "pow(pos().x,2) + pow(pos().y-0.15,2) <= pow(0.15,2)/4" is true



--> FOAM FATAL ERROR: 
 Parser Error for driver FieldValueExpressionDriver at "1.4" :"syntax error, unexpected number"
"(0 0 0)"
     ^
-----|

Context of the error:


- Driver constructed from scratch
  Evaluating expression "(0 0 0)"


    From function parsingValue
    in file lnInclude/CommonValueExpressionDriverI.H at line 1039.

FOAM exiting
Does anyone know how to handle this?
Thanks in advanvce.

Last edited by sharonyue; March 21, 2013 at 09:18.
sharonyue is offline   Reply With Quote

Old   March 24, 2013, 13:16
Default
  #22
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 4,228
Blog Entries: 31
Rep Power: 45
wyldckat has a spectacular aura aboutwyldckat has a spectacular aura about
Hi sharonyue,
Quote:
Originally Posted by sharonyue View Post
...
Well, I tried to make the velocity of alpha 0 field to be (0 -0.1 0)
...
I suggest you start a new thread detailing what you are trying to do and the error you're getting, because this thread seems to be dedicated to installation issues

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   March 24, 2013, 17:52
Default
  #23
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,107
Rep Power: 30
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by sharonyue View Post
I
Code:
 Putting "(0 0 0)" into field U at t = "0" if condition "pow(pos().x,2) + pow(pos().y-0.15,2) <= pow(0.15,2)/4" is true



--> FOAM FATAL ERROR: 
 Parser Error for driver FieldValueExpressionDriver at "1.4" :"syntax error, unexpected number"
"(0 0 0)"
     ^
-----|

Context of the error:


- Driver constructed from scratch
  Evaluating expression "(0 0 0)"


    From function parsingValue
    in file lnInclude/CommonValueExpressionDriverI.H at line 1039.

FOAM exiting
Does anyone know how to handle this?
Thanks in advanvce.
Yep. By an advance technique called RTFM (Read the fine manual): http://openfoamwiki.net/index.php/Co...ulsedPitzDaily

(vectors, for technical reasons, have a different syntax in swak)

Quote:
Originally Posted by wyldckat View Post
I suggest you start a new thread detailing what you are trying to do and the error you're getting, because this thread seems to be dedicated to installation issues
Of course Bruno is right here: a new problem deserves a new thread
__________________
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   March 24, 2013, 22:58
Default
  #24
Senior Member
 
Forrest
Join Date: Jun 2012
Posts: 218
Rep Power: 3
sharonyue is on a distinguished road
Quote:
Originally Posted by gschaider View Post
Yep. By an advance technique called RTFM (Read the fine manual): http://openfoamwiki.net/index.php/Co...ulsedPitzDaily

(vectors, for technical reasons, have a different syntax in swak)


Of course Bruno is right here: a new problem deserves a new thread
Okay,I am sorry for that,and Thanks very much.I will try it a afterdays~
sharonyue is offline   Reply With Quote

Old   April 1, 2013, 13:51
Default
  #25
Member
 
angel
Join Date: May 2009
Location: Spain
Posts: 45
Rep Power: 6
anmartin is on a distinguished road
Hello,

First at all, I want to thanks you all you guys especially Gschaider.you did a splendid work.! and many tanks for your work in swak4foam.

I have update to latest version of OF (Version 2.2.0) and i have tried to install swak4foam as you mention
1º hg clone http://openfoam-extend.hg.sourceforg...tend/swak4Foam
2º hg update port 2.0.x

3º copy swakConfiguration.example to swakConfiguration
4º comment the line //#define FOAM_LOOKUPCLASS_NO_CONST
5º Compile with this result file (allwmakelog file)

But when i try to use an example that run perfect in previous version of OF 2.0+swak4foam, I obtain the following error:

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

--> FOAM FATAL ERROR:
Not implemented

From function simpleFunctionObject::movePoints
in file simpleFunctionObject/simpleFunctionObject.H at line 160.

FOAM aborting

#0 Foam::error:rintStack(Foam::Ostream&) at ??:?
#1 Foam::error::abort() at ??:?
#2 Foam::functionObjectList::movePoints(Foam:olyMes h const&) at ??:?
#3 Foam:olyMesh::movePoints(Foam::Field<Foam::Vecto r<double> > const&) at ??:?
#4 Foam::fvMesh::movePoints(Foam::Field<Foam::Vector< double> > const&) at ??:?
#5 Foam::solidBodyMotionFvMesh::update() at ??:?
#6
at ??:?
#7 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#8
at ??:?
Abortado (`core' generado)

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
The controldic is:
libs (
//"libOpenFOAM.so" // keeps paraFoam happy
"libtwoPhaseInterfaceProperties.so"
"libinterfaceProperties.so"
"libsimpleSwakFunctionObjects.so"
"libswakFunctionObjects.so"
);
functions
{
liquid_Vol
{
type swakExpression;
valueType internalField;
accumulations (sum);
expression "alpha1*vol()";
//verbose true;
//autowrite true;
}
};


Does anyone know how to handle this?
Thanks in advance.

Angel,
Attached Files
File Type: gz allwmakelog.tar.gz (10.0 KB, 0 views)
anmartin is offline   Reply With Quote

Old   April 1, 2013, 17:10
Default
  #26
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,107
Rep Power: 30
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by anmartin View Post
Hello,

First at all, I want to thanks you all you guys especially Gschaider.you did a splendid work.! and many tanks for your work in swak4foam.

I have update to latest version of OF (Version 2.2.0) and i have tried to install swak4foam as you mention
1º hg clone http://openfoam-extend.hg.sourceforg...tend/swak4Foam
2º hg update port 2.0.x

3º copy swakConfiguration.example to swakConfiguration
4º comment the line //#define FOAM_LOOKUPCLASS_NO_CONST
5º Compile with this result file (allwmakelog file)

But when i try to use an example that run perfect in previous version of OF 2.0+swak4foam, I obtain the following error:

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

--> FOAM FATAL ERROR:
Not implemented

From function simpleFunctionObject::movePoints
in file simpleFunctionObject/simpleFunctionObject.H at line 160.

FOAM aborting

#0 Foam::error:rintStack(Foam::Ostream&) at ??:?
#1 Foam::error::abort() at ??:?
#2 Foam::functionObjectList::movePoints(Foam:olyMes h const&) at ??:?
#3 Foam:olyMesh::movePoints(Foam::Field<Foam::Vecto r<double> > const&) at ??:?
#4 Foam::fvMesh::movePoints(Foam::Field<Foam::Vector< double> > const&) at ??:?
#5 Foam::solidBodyMotionFvMesh::update() at ??:?
#6
at ??:?
#7 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#8
at ??:?
Abortado (`core' generado)
The missing information was with which solver you're doing this. Obviously one that does mesh movement.

I think the problem is my fault. The new API requires that the functionObjects have methods that say "Hey. I know how to behave during mesh-movement". I said "OK. Fair enough. But I'm not sure if all my function objects are really up to it. So I'll include a dummy implementation that will blow up. So I'll know I'll have to check". And then I forgot about it. That's why it blew up in YOUR face.

Quick fix: go to the file Libraries/simpleFunctionObjects/simpleFunctionObject/simpleFunctionObject.H
search for the line
Code:
        notImplemented("simpleFunctionObject::updateMesh");
and rewrite it to
Code:
//        notImplemented("simpleFunctionObject::updateMesh");
Also do that with the similar line below it. Recompile. Then it should work
__________________
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   May 7, 2013, 06:31
Default swak4Foam installation
  #27
Member
 
Claudio
Join Date: Mar 2012
Posts: 33
Rep Power: 3
Claudio87 is on a distinguished road
Dear Foamers,

I have similar problems with the installation of swak4Foam, with the last version.
I create a new post here
swak4Foam installation problem
if you prefer, or answer directly in this one.

I attached the log of ./Allwmake

Thank you in advance for your help!


Best regards,
Claudio
Attached Files
File Type: txt wmake.txt (1.4 KB, 1 views)
Claudio87 is offline   Reply With Quote

Reply

Tags
compile error, swak4foam

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
swak4foam newbie29 OpenFOAM Installation 39 May 4, 2013 06:21
groovyBC and funkySetFields married and got a kid named swak4Foam gschaider OpenFOAM 146 April 16, 2013 09:50
Installing swak4Foam to OpenFOAM in mac Kaquesang OpenFOAM Installation on Windows, Mac and other Unsupported Platforms 22 January 21, 2013 11:51
About installation of swak4Foam mmkr825 OpenFOAM Programming & Development 10 December 14, 2012 01:24
swak4Foam for calculating velocity transformations santoshgoku OpenFOAM 4 June 20, 2012 05:39


All times are GMT -4. The time now is 21:00.