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

[swak4Foam] installing funkySetFields

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   April 20, 2011, 18:44
Default
  #28
New Member
 
Join Date: Oct 2010
Posts: 27
Rep Power: 15
albem is on a distinguished road
Quote:
Originally Posted by gschaider View Post
Both vairants are equivalent for a sane person. But for some shells they are not. And the complain with "theFiles.sh not existing" although it exists.



Right. Just run them and see

Thank you Bernhard for your helpI am defining an extra force term in the N-S equations, for the moment I am defining this force using an analytical expression,and when I wrote in the terminal the command

funkySetFields -field A123 -expression 'vector(-exp(-(pow(pos().x,2)+pow(pos().y,2))),0, 0)' -time 0

it works!, but, if I use a /system/funkySetFieldDict file which contains the following

expressions
(
A123
{
field A123; //field initialise

create true;

expression “vector( -exp(-pow(pos().x,2)+pow(pos().y,2)),0, 0)”; //ring-shaped current

condition “sqrt(pow(pos().x,2)+pow(pos().y,2))<=1.0”;

}
);


and then if I write in the terminal

funkySetFields -time 0

the result is

/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.7.x |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 1.7.x-a54150ce1198
Exec : funkySetFields -time 0
Date : Apr 20 2011
Time : 15:35:11
Host : acamapichtli
PID : 6554
Case : /home/albem/OpenFOAM/albem-1.7.x/run/Poiseuille2D_Fnonu2
nProcs : 1
SigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).

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

Create mesh for time = 0

Time = 0
Using funkySetFieldsDict



--> FOAM FATAL IO ERROR:
cannot open file

file: /home/albem/OpenFOAM/albem-1.7.x/run/Poiseuille2D_Fnonu2/system/funkySetFieldsDict at line 0.

From function regIOobject::readStream()
in file db/regIOobject/regIOobjectRead.C at line 61.

FOAM exiting


do you know what it could be wrong with the /system/funkySetFieldDict file?

I would like to just modified the file for the analytical expression instead of using the commands in the terminal

by the way I do not hoy to include the

condition “sqrt(pow(pos().x,2)+pow(pos().y,2))<=1.0”;

option in the command line terminal any idea?

thanks in advance

Alberto
albem is offline   Reply With Quote

 

Tags
funkysetfields, installation, valueexpressionparser, wmake


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Frequently Asked Questions about Installing OpenFOAM wyldckat OpenFOAM Installation 3 November 14, 2023 11:58
[foam-extend.org] problem when installing foam-extend-1.6 Thomas pan OpenFOAM Installation 7 September 9, 2015 21:53
Install OF 1.6.ext on Arch based distribution miro2000 OpenFOAM Installation 4 October 9, 2013 14:39
[swak4Foam] installing funkySetFields igo OpenFOAM Community Contributions 1 November 20, 2012 20:16
[swak4Foam] installing funkySetFields utility for OpenFOAM 1.4.1 ozie OpenFOAM Community Contributions 8 September 8, 2011 11:16


All times are GMT -4. The time now is 10:51.