|
[Sponsors] |
[swak4Foam] GroovyBC the dynamic cousin of funkySetFields that lives on the suburb of the mesh |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 25, 2012, 11:42 |
|
#261 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
which bison show an installed bison? BTW: what do the "..." in your output mean. Or are the really there? |
||
April 26, 2012, 06:36 |
|
#262 | |
New Member
Rita Carvalho
Join Date: Apr 2012
Posts: 6
Rep Power: 14 |
Quote:
I'm sorry to borrow you again but in a different computer with ubuntu 10.10, I started all the instalations again: m4,bison with libiconv, flex from the root I had no errors and after: 1. svn checkout https://openfoam-extend.svn.sourceforge.net/svnroot/openfoam-extend/trunk/Breeder_1.7/libraries/swak4Foam/ I had a warning=> Fetching external item into 'swak4Foam/Libraries/simpleFunctionObjects' svn: warning: 'swak4Foam/Libraries/simpleFunctionObjects' is already a working copy for a different URL 2. ./Allwmake root@ubuntu:~/swak4Foam# ./Allwmake No 'swakConfiguration'. Python etc won't work Checking swak4Foam-version and generating file ./Allwmake: line 32: wmake: command not found Requirements for Library not satisfied. I see no sense in going on root@ubuntu:~/swak4Foam# Would you be so kind to answer me again. Perhaps you have an idea what I am doing wrong ! Kind regards, Rita |
||
April 26, 2012, 07:38 |
|
#263 | |
New Member
Rita Carvalho
Join Date: Apr 2012
Posts: 6
Rep Power: 14 |
Quote:
rita@ubuntu:~/swak4Foam$ ./Allwmake No 'swakConfiguration'. Python etc won't work Checking swak4Foam-version and generating file ./Allwmake: 9: [[: not found ./Allwmake: 17: [[: not found Bison is version 2.4.1 ./Allwmake: 33: cannot open 2.3: No such file ./Allwmake: 33: [[: not found OpenFOAM-version: Major 2 Minor 1 Patch 0 ./Allwmake: 67: [[: not found No change to swak4FoamParsers/foamVersion4swak.H SOURCE=FaceSetValueExpressionDriver.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -IMake/linuxGccDPOpt -I/opt/openfoam210/src/finiteVolume/lnInclude -I/opt/openfoam210/src/sampling/lnInclude -I/opt/openfoam210/src/triSurface/lnInclude -I/opt/openfoam210/src/lagrangian/basic/lnInclude -I/opt/openfoam210/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam210/src/OpenFOAM/lnInclude -I/opt/openfoam210/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/FaceSetValueExpressionDriver.o In file included from lnInclude/SubsetValueExpressionParser_location.hh:44:0, from SubsetValueExpressionParser.tab.hh:65, from SubsetValueExpressionDriver.H:60, from SetSubsetValueExpressionDriver.H:48, from FaceSetValueExpressionDriver.H:52, from FaceSetValueExpressionDriver.C:34: position.hh: In function ‘bool parserSubset:perator==(const parserSubset:osition&, const parserSubset:osition&)’: position.hh:136:69: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] ... In file included from lnInclude/SubsetValueExpressionParser_location.hh:44:0, from SubsetValueExpressionParser.tab.hh:65, from SubsetValueExpressionDriver.H:60, from SetSubsetValueExpressionDriver.H:48, from CellSetValueExpressionDriver.H:52, from CellSetValueExpressionDriver.C:34: position.hh: In function ‘bool parserSubset:perator==(const parserSubset:osition&, const parserSubset:osition&)’: position.hh:136:69: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] |
||
April 26, 2012, 15:18 |
|
#264 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
|
||
April 26, 2012, 15:24 |
|
#265 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
#! /bin/sh with #! /bin/bash and see whether it happens again |
||
May 8, 2012, 07:06 |
|
#266 |
New Member
Rita Carvalho
Join Date: Apr 2012
Posts: 6
Rep Power: 14 |
Sorry because I forget to report that the problem is solved.
I thank you for the answer. In fact the file was already with "bash". But with a lot of patience and installations and verifing the text files in "swakconfiguration" and "the Files" the problem is solved and swak4Foam is working pretty well. Thanks for that also. Note: However the messages 9 not found and so on still appeared. |
|
July 5, 2012, 17:49 |
inlet wave modulation
|
#267 |
Member
ak
Join Date: May 2011
Posts: 64
Rep Power: 15 |
Hello all,
I am trying to study forced response of step combustor using a compressible solver with turbulence modeling. Instead of imposing a fluctuating velocity at the inlet, I would like to use the inlet wave modulation technique (see attached figure from a paper). Could some one please let me know if and how this could be implemented in OpenFOAM? Can groovyBC be used for this purpose? [I am sure there must be a way! ] Thanks so much! amit |
|
July 6, 2012, 06:14 |
|
#268 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
|
||
July 13, 2012, 11:13 |
|
#269 |
Member
ak
Join Date: May 2011
Posts: 64
Rep Power: 15 |
Thanks for the reply! I am currently using the same formulations as implemented in pulsedPitzDaily to implement the IVM (velocity modulation) case. [Thanks for the groovyBC tool!]
However, I am not sure how to go about implementing IWM (wave modulation). The paper also says "To use IWM, however, codes must use boundary conditions based on characteristic methods". The determination of A's is also not very clear. Do you have any insights on this? On another note, I also came across some work (F. Piscaglia, A. Montorfano) that mentioned that the waveTransmissive BC is not perfectly non-reflecting, and there has been some work in implementing NSCBC in openFoam, as well as acoustic sources. Is the work available in the public domain? Thanks! ak |
|
July 13, 2012, 19:38 |
|
#270 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
|
||
July 31, 2012, 12:30 |
directionMixed BC by groovyBC
|
#271 |
Senior Member
Mieszko Młody
Join Date: Mar 2009
Location: POLAND, USA
Posts: 145
Rep Power: 17 |
Hi
First of all , thanks for groovyBC ! I have a question. Is it possible to simulate directionMixed like BC using groovyBC ? I am interesting in velocity BC. I would like to have fixedValue (some time and space function) in the normal direction and some fixedGradient (again some time and space function) in the tangential direction. Is groovyBCDirection suitable for this ? Unfortunately I could not find any example how to use it... Is there any example how to use them ? I tried sth like this: sidesleft { type groovyBCDirection; variables ( "yp=pts().y;" "ep=1/0.0447213595499958;" "para=-(1 + ep*pos().y*(2 - ep*pos().y))*normal();" ); valueExpression "sin(time())*para"; gradientExpresion "cos(time())*para"; valueFraction (1 0 0 0 0 0); value uniform (0 0 0); } It does not give any run time error, but I am not sure if it does what I would like ... Many Thanks |
|
August 6, 2012, 19:11 |
|
#272 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Check the value of valueFraction at later timesteps |
||
August 9, 2012, 09:55 |
|
#273 |
Senior Member
Illya Shevchuk
Join Date: Aug 2009
Location: Darmstadt, Germany
Posts: 176
Rep Power: 17 |
Hi folks,
is it possible to use a dimensionedScalar or a vector in groovyBC, not a field? Best regards, Illya |
|
August 9, 2012, 10:04 |
|
#274 |
Senior Member
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30 |
Illya, I think you need this: http://openfoamwiki.net/index.php/Contrib_IOReferencer
__________________
*On twitter @akidTwit *Spend as much time formulating your questions as you expect people to spend on their answer. |
|
August 9, 2012, 12:09 |
|
#275 |
Senior Member
Mieszko Młody
Join Date: Mar 2009
Location: POLAND, USA
Posts: 145
Rep Power: 17 |
Hi Illay,
I am not sure if I understood your question. But in groovyBC (and any other BC) you have to specify vector or a scalar ... |
|
August 15, 2012, 14:34 |
|
#276 |
Senior Member
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30 |
Any idea why
Code:
fractionExpression "sqr(normal());";
__________________
*On twitter @akidTwit *Spend as much time formulating your questions as you expect people to spend on their answer. |
|
August 20, 2012, 18:00 |
|
#277 |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Well. normal() is a vector. sqr expects a scalar. The parser says "This can't be all". Something like "sqr(normal().x)" or "sqr(mag(normal()))" might work
|
|
August 20, 2012, 18:03 |
|
#278 |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
A dimensionedScalar defined in the program? No. There are some ways around (the IOreferencer described below is one of them). But to say which is the best it would be helpful if you described the problem you want to solve
|
|
August 21, 2012, 05:22 |
|
#279 |
Senior Member
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30 |
Foam::sqr will return a tensor when called with a vector, which is very handy for the fractionExpression of groovyBCDirection. Ok to file a bugrep?
__________________
*On twitter @akidTwit *Spend as much time formulating your questions as you expect people to spend on their answer. |
|
August 21, 2012, 08:27 |
|
#280 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
That would be a simple fix to the grammar. You don't have to ask to file a bug report. If I don't like them I will turn them down Yes. Please |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Ship resistance shows wiggles when using Overset mesh and dynamic mesh in Fluent | Qingsong | FLUENT | 2 | March 21, 2022 16:08 |
sliding mesh problem in CFX | Saima | CFX | 46 | September 11, 2021 08:38 |
[ICEM] Dynamic mesh setup with ICEM | David121284 | ANSYS Meshing & Geometry | 0 | April 11, 2014 05:19 |
Dynamic Mesh "Shadow Wall" | thezack | FLUENT | 0 | June 4, 2013 23:09 |
dynamic mesh for drop interface | IndrajitW | FLUENT | 0 | March 30, 2013 09:03 |