|
[Sponsors] |
July 11, 2014, 11:47 |
|
#41 |
Member
Gautami Erukulla
Join Date: Mar 2009
Posts: 71
Rep Power: 17 |
Hello Geir,
For the free surface elevation the x-axis is time and the y-axis is parameter alpha1.I used the sampleDict to obtain the parameter alpha1 at each time step.Then using the code from the following discussion (link) I obtained the plot alpha1 with respect to time. http://www.cfd-online.com/Forums/ope...n-vs-time.html I can send you the case file,kindly please let me know.Thank you. Regards, Gautami. |
|
July 18, 2014, 18:47 |
|
#42 | |
Member
Geir Karlsen
Join Date: Nov 2013
Location: Norway
Posts: 59
Rep Power: 14 |
Quote:
It was not my intention to mislead you. As I am not certain what you are looking for, I don't think I will be able to assist. Sorry Regards, Geir |
||
July 21, 2014, 11:42 |
|
#43 |
Member
Gautami Erukulla
Join Date: Mar 2009
Posts: 71
Rep Power: 17 |
Hello Geir,
Not a problem.Thank you. Regards, Gautami. |
|
August 27, 2014, 07:39 |
funkySetBoundaryField problems
|
#44 |
Member
Fengjiao Bian
Join Date: Nov 2013
Location: beijing
Posts: 30
Rep Power: 12 |
[user5@node14 1]$ funkySetBoundaryField
/*---------------------------------------------------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.1.0 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ Build : 2.1.0-bd7367f93311 Exec : funkySetBoundaryField Date : Aug 28 2014 Time : 02:17:41 Host : "node14" PID : 30544 Case : /home/user5/windturbine/PHASE6/shear/1 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 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // swakVersion: 0.3.1 (Release date: 2014-07-11) // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Create time Create mesh for time = 0 Time = 0 Part: velocities working on field U Setting value on inlet the expression " vector(0,1,0)*maxValue*pow((pos().z+12)/H,0.14) " #0 Foam::error:rintStack(Foam::Ostream&) in "/home/user5/OpenFOAM/OpenFOAM-2.1.0/platforms/linux64Gcc45DPOpt/lib/libOpenFOAM.so" #1 Foam::sigFpe::sigHandler(int) in "/home/user5/OpenFOAM/OpenFOAM-2.1.0/platforms/linux64Gcc45DPOpt/lib/libOpenFOAM.so" #2 __restore_rt at sigaction.c:0 #3 __kernel_standard at interp.c:0 #4 Foam:ow(Foam::Field<double>&, Foam::UList<double> const&, Foam::UList<double> const&) in "/home/user5/OpenFOAM/OpenFOAM-2.1.0/platforms/linux64Gcc45DPOpt/lib/libOpenFOAM.so" #5 Foam:ow(Foam::UList<double> const&, Foam::UList<double> const&) in "/home/user5/OpenFOAM/OpenFOAM-2.1.0/platforms/linux64Gcc45DPOpt/lib/libOpenFOAM.so" #6 parserPatch::PatchValueExpressionParser:arse() in "/home/user5/OpenFOAM/user5-2.1.0/platforms/linux64Gcc45DPOpt/lib/libswak4FoamParsers.so" #7 Foam::PatchValueExpressionDriver:arseInternal(in t) in "/home/user5/OpenFOAM/user5-2.1.0/platforms/linux64Gcc45DPOpt/lib/libswak4FoamParsers.so" #8 Foam::CommonValueExpressionDriver:arse(Foam::exp rString const&, Foam::word const&) in "/home/user5/OpenFOAM/user5-2.1.0/platforms/linux64Gcc45DPOpt/lib/libswak4FoamParsers.so" #9 main in "/home/user5/OpenFOAM/user5-2.1.0/platforms/linux64Gcc45DPOpt/bin/funkySetBoundaryField" #10 __libc_start_main in "/lib64/libc.so.6" #11 __gxx_personality_v0 in "/home/user5/OpenFOAM/user5-2.1.0/platforms/linux64Gcc45DPOpt/bin/funkySetBoundaryField" 浮点数例外 ] Is there anybody tell me how to fix this problem?Thanks!! |
|
August 27, 2014, 08:40 |
|
#45 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
__________________
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 |
||
August 28, 2014, 05:31 |
|
#46 | |
Senior Member
|
Quote:
I wish to use the "grad(U)" function for the inlet boundary condition for "Tau" using groovyBC. Where, U is fully developed flow. I am getting following error message: Code:
--> FOAM FATAL ERROR: Parser Error for driver PatchValueExpressionDriver at "1.18-21" :"field grad not existing or of wrong type" "2*pow(mag(symm(grad(U))),2)" ^^^^ ----------------| Context of the error: http://www.cfd-online.com/Forums/ope...swak4foam.html I would like to know How to overcome it? Is "grad(U)" boundary condition possible using groovyBC? I am using OF-2.1.x installed on Ubuntu 11.04 Thanks in advance! |
||
August 28, 2014, 06:09 |
|
#47 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
__________________
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 |
||
August 29, 2014, 12:11 |
groovyBC : Possible bug?
|
#48 |
Member
Hrushi
Join Date: Jan 2013
Posts: 58
Rep Power: 13 |
laplacianFoam-test.tar.gz
128x128.png 64x64.pngHi all, I have had some interesting results. I have been trying to model following boundary condition for laplacianFoam solver. dT/dn = -(T^2-1) When I model it with groovyBC as valueExpression "0"; gradientExpression "-(internalField(T)*internalField(T)-1.)"; fractionExpression "0.000"; It works well for 2-D domain of 127x127. I have attached results from explicit discretization for 64x64 and 128x128 domain. I have also compared them with openfoam simulation. But, with 128x128 size onwards, the two results start to diverge and show a sort of constant difference between theoretical and openfoam simulations. Anyone has any idea why this might be happening? I have attached case file herewith. Regards, Hrushi |
|
September 1, 2014, 11:15 |
|
#49 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
__________________
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 |
||
September 1, 2014, 11:30 |
|
#50 |
Member
Hrushi
Join Date: Jan 2013
Posts: 58
Rep Power: 13 |
No particular reason as such. I started with internalField(T) which worked pretty well for me for a while. I think I tried that so that I can check if my implementation is correct. Now I have shifted to T instead of internalField(T), but it is simply amazing why this would fail at 128x128 and work at 127x127.
|
|
September 1, 2014, 12:53 |
|
#51 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
__________________
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 |
||
September 1, 2014, 16:54 |
|
#52 |
Member
Hrushi
Join Date: Jan 2013
Posts: 58
Rep Power: 13 |
I am not so sure. With internalField(T), I can calculate the boundary field explicitly. But with T, I am not sure how it works. Is it not implicit? How do I calculate boundaryfield with T explicitly?
|
|
September 1, 2014, 17:51 |
|
#53 |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
T is the current value of the boundary field. So temporally it is equivalent to internalField(T) but in contrast to this it is spatially correct
__________________
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 |
|
September 8, 2014, 07:17 |
groovyBC rotating pipe
|
#54 | |
New Member
Rafael Jurado Cruz
Join Date: Sep 2014
Location: Córdoba (Spain)
Posts: 9
Rep Power: 12 |
Hi to all, I am new im OpenFOAM.
I am using OpenFOAM 2.3.0 in Ubuntu 14.04 LTS, and had installed swak4foam. I have simulated a laminar flow of water throw a pipe to see the parabolic profile. Now I want to use groovyBC to set the boundary conditions needed for a rotating pipe but I don't understand really how groovyBC works. I tried to do it like that: Quote:
Rafael |
||
September 8, 2014, 07:29 |
|
#55 | |
New Member
Rafael Jurado Cruz
Join Date: Sep 2014
Location: Córdoba (Spain)
Posts: 9
Rep Power: 12 |
That's the error it shows:
Quote:
Rafael |
||
September 8, 2014, 10:43 |
|
#56 |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
I'm a bit amazed that the error doesn't appear 2 lines earlier. Wasn't aware that face() was implemented for patches. Anyway: what you want is pos()
__________________
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 |
|
September 9, 2014, 23:01 |
conditional operator
|
#57 | ||
Member
Albert Tong
Join Date: Dec 2010
Location: Perth, WA, Australia
Posts: 76
Blog Entries: 1
Rep Power: 15 |
Dear OpenFOAMer,
For groovybc conditional operator (if a is true, then d=b, else d=c) Quote:
Quote:
__________________
Kind regards, Albert |
|||
September 10, 2014, 05:39 |
|
#58 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Code:
if a is true, d=b; elseif c is true, d=e; else d=f Code:
a ? b: (c ? e : f)
__________________
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 |
||
September 16, 2014, 04:53 |
|
#59 | |
New Member
Rafael Jurado Cruz
Join Date: Sep 2014
Location: Córdoba (Spain)
Posts: 9
Rep Power: 12 |
Thank´s for your quick reply. I´m so sorry but I just have seen the message right now.
I tried with pos() too, but it gave me an error. I solved the problem with a boundary condition that I didn´t know rotatinWallVelocity: Quote:
Rafael |
||
July 24, 2015, 02:26 |
temperatute groovyBC
|
#60 |
New Member
saeed rashidzade
Join Date: Jun 2015
Posts: 4
Rep Power: 11 |
Hi all,
I tried to simulate a cavity in below temperature conditions: Right & Left Wall: Th-(Th-Tc)*y/L Floor: T=Th ceiling: gradT=0 so I changed 0/T file like this: " boundaryField { floor { type fixedValue; value uniform 1; } rightWall { type groovyBC; variables "y=pos().y; ymax=max(pos().y); T@floor=Th; Tc=0;"; valueExpression "Th-(Th-Tc)*y/ymax"; value uniform 0; } leftWall { type groovyBC; variables "y=pos().y; ymax=max(pos().y); T@floor=Th; Tc=0;"; valueExpression "Th-(Th-Tc)*y/ymax"; value uniform 0; } movingWall { type zeroGradient; } " but when I run, got the error message: swak4Foam: Allocating new repository for sampledGlobalVariables --> FOAM Warning : From function ConcretePluginFunction<DriverType>::exists in file lnInclude/ConcretePluginFunction.C at line 121 Constructor table of plugin functions for PatchValueExpressionDriver is not initialized --> FOAM FATAL ERROR: Parser Error for driver PatchValueExpressionDriver at "1.1-2" :"field Th not existing or of wrong type" "Th-(Th-Tc)*y/ymax" ^^ --| Context of the error: - From dictionary: /home/saeed/Desktop/porousCavity/0/T.boundaryField.rightWall Evaluating expression "Th-(Th-Tc)*y/ymax" From function parsingValue in file lnInclude/CommonValueExpressionDriverI.H at line 1189. FOAM exiting did I use groovyBC correctly? what should I do? Thanks |
|
Tags |
groovybc, swak4foam |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] groovyBC for oscillatory flow | liybzd | OpenFOAM Community Contributions | 5 | November 12, 2018 08:53 |
[swak4Foam] reactingMultiPhaseEulerFoam problems with groovyBC | zanilu70 | OpenFOAM Community Contributions | 4 | December 13, 2016 07:46 |
[swak4Foam] Change in alpha and U with groovyBC in twoPhaseEulerFoam | dani2702 | OpenFOAM Community Contributions | 0 | November 17, 2016 04:30 |
[swak4Foam] groovyBC issue - k and epsilon | sagnikmazumdar | OpenFOAM Community Contributions | 24 | March 1, 2015 08:16 |
[swak4Foam] groovyBC and Eqn.setReference() | benk | OpenFOAM Community Contributions | 3 | June 2, 2011 09:49 |