|
[Sponsors] |
[swak4Foam] groovyBC and funkySetFields married and got a kid named swak4Foam |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 30, 2013, 05:39 |
|
#141 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
If I interpret Niklas' equations correctly he assumes that the swirl-axis is the Z-axis (and in your case it is Y if I understand you correctly). Use your mathematical common sense to reformulate it (& is the inner product of vectors. I think it could be shorter by using ^ for the cross-product)
__________________
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 |
||
February 14, 2013, 06:46 |
|
#142 |
Member
Jamal
Join Date: May 2012
Location: Freiburg
Posts: 54
Rep Power: 13 |
Dear
I want to know that is groovyFlowRateInletVelocity is valid in OF 2.1.0 and if so how to use this BC to define time dependent flow rate at an oultlet patch. |
|
February 14, 2013, 14:27 |
|
#143 | ||
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Quote:
Using that boundary condition on the outlet is not a good idea (applying a fixedValue for the velocity on the outlet is almost never a good idea). But you can try (but at least give velocity at least one boundary that is zeroGradient or equivalent For an example that uses the DataEntry see Examples/tests/swakDataEntry/flowRateAngledDuct For an example that uses groovyFlowRateInletVelocity see Examples/groovyBC/multiRegionHeaterFeedback
__________________
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 |
|||
April 2, 2013, 23:22 |
|
#144 | |
New Member
Join Date: Oct 2010
Posts: 27
Rep Power: 16 |
Hello Foamers
I have tried to install swak4foam in OpenFOAM-1.6-ext (Ubuntu 12.04) without any succes I got plenty of errors some of them are lnInclude/FaPatchValueExpressionDriver.H:63:47: fatal error: FaPatchValueExpressionParser.tab.hh: No such file or directory compilation terminated. In file included from FaPatchValueExpressionDriver.C:37:0: FaPatchValueExpressionDriver.H:63:47: fatal error: FaPatchValueExpressionParser.tab.hh: No such file or directory compilation terminated. In file included from FaFieldValueExpressionDriver.C:33:0: FaFieldValueExpressionDriver.H:48:47: fatal error: FaFieldValueExpressionParser.tab.hh: No such file or directory compilation terminated. .... .... .... FaPatchValueExpressionParser.tab.cc:9304:24: warning: use of old-style cast [-Wold-style-cast] The bug is not reproducible, so it is likely a hardware or OS problem. make: *** [Make/linux64GccDPOpt/FaPatchValueExpressionDriver.o] Error 1 The bug is not reproducible, so it is likely a hardware or OS problem. make: *** [Make/linux64GccDPOpt/FaPatchValueExpressionLexer.o] Error 1 The bug is not reproducible, so it is likely a hardware or OS problem. make: *** [Make/linux64GccDPOpt/FaFieldValueExpressionLexer.o] Error 1 The bug is not reproducible, so it is likely a hardware or OS problem. make: *** [Make/linux64GccDPOpt/groovyBCFaPatchFields.o] Error 1 I DO NOT LIKE "a hardware or OS problem" Please take a look on the file attached about the compilation process Any help is wellcome Quote:
|
||
April 3, 2013, 06:02 |
|
#145 | |
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 |
||
April 16, 2013, 09:34 |
Vairables
|
#146 | |
Senior Member
Illya Shevchuk
Join Date: Aug 2009
Location: Darmstadt, Germany
Posts: 176
Rep Power: 17 |
Hi all,
a short question: how to use variables in funkySetFields? Example (funkySetFieldsDict): Code:
FoamFile { version 2.0; format ascii; class dictionary; location "system"; object funkySetFieldsDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // variables ( "dropCenter=vector(0.3176e-3,0.3176e-3,0.3176e-3);" "R=79.4e-06;" "f1=0.630436" "f2=0.630436" "f3=2.521744" ); expressions ( createDroplet { field alpha1; expression "1"; condition "f1*pow(pos().x-dropCenter.x,2)+f2*pow(pos().y-dropCenter.y,2)+f3*pow(pos().z-dropCenter.z,2)<pow(R,2)"; } ); Quote:
|
||
April 16, 2013, 10:50 |
|
#147 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
As a rule-of-thumb in swak variables are taken from the same place as the expression.
__________________
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 |
||
May 15, 2013, 08:20 |
|
#148 |
New Member
nicolas
Join Date: Oct 2009
Posts: 24
Rep Power: 17 |
Hi,
I am using Swak4Foam_2.x_release_0.2.3 with OpenFOAM-2.2.x. I am trying to define a heat flux using groovyBC: This is the boundary condition I use for temperature Code:
CAVITY_BACK { type groovyBC; value uniform $refTemp; valueExpression "573.15"; gradientExpression "gradT"; fractionExpression "0"; variables ( "heatFlux= 37000;" "rho=1.9e+03;" "cp=1.54e+03;" "nu=1.72e-06;" "pr=9.75;" "kappa=nu/pr;" "gradT=heatFlux/((kappa+kappat)*rho*cp);" ); } Code:
Courant Number mean: 1.62363e-05 max: 0.0521217 deltaT = 4.89936e-05 DILUPBiCG: Solving for Ux, Initial residual = 0.000397252, Final residual = 5.73223e-10, No Iterations 1 DILUPBiCG: Solving for Uy, Initial residual = 0.000148742, Final residual = 1.32665e-10, No Iterations 1 DILUPBiCG: Solving for Uz, Initial residual = 0.000536376, Final residual = 7.73942e-10, No Iterations 1 [1] swak4Foam: Allocating new repository for sampledGlobalVariables [2] swak4Foam: Allocating new repository for sampledGlobalVariables --> FOAM Warning : From function CommonValueExpressionDriver::evaluateVariable in file CommonValueExpressionDriver.C at line 924 There is a field named nu of type IOobject found which may be shadowed by the variable of the same name. This may lead to trouble If this is OK set 'variableNameIdenticalToField' in the relevant parser [0] swak4Foam: Allocating new repository for sampledGlobalVariables [3] swak4Foam: Allocating new repository for sampledGlobalVariables --> FOAM Warning : From function CommonValueExpressionDriver::evaluateVariable in file CommonValueExpressionDriver.C at line 924 There is a field named nu of type IOobject found which may be shadowed by the variable of the same name. This may lead to trouble If this is OK set 'variableNameIdenticalToField' in the relevant parser DILUPBiCG: Solving for T, Initial residual = 0.00265407, Final residual = 4.90932e-10, No Iterations 1 GAMG: Solving for p_rgh, Initial residual = 0.0641449, Final residual = 0.000572967, No Iterations 5 time step continuity errors : sum local = 4.20113e-12, global = -1.03896e-14, cumulative = -1.03896e-14 GAMG: Solving for p_rgh, Initial residual = 0.0243003, Final residual = 8.95937e-07, No Iterations 21 time step continuity errors : sum local = 6.36208e-15, global = 6.04629e-17, cumulative = -1.03291e-14 DILUPBiCG: Solving for omega, Initial residual = 1.48881e-05, Final residual = 3.6477e-11, No Iterations 1 DILUPBiCG: Solving for k, Initial residual = 0.000656271, Final residual = 9.90796e-11, No Iterations 1 bounding k, min: 9.9996e-16 max: 0.0003 average: 7.59597e-09 ExecutionTime = 73.15 s ClockTime = 76 s Nicolas |
|
May 15, 2013, 08:52 |
|
#149 |
Senior Member
Anne Gerdes
Join Date: Aug 2010
Location: Hamburg
Posts: 168
Rep Power: 16 |
Rename your variable nu?
|
|
May 15, 2013, 09:30 |
|
#150 |
New Member
nicolas
Join Date: Oct 2009
Posts: 24
Rep Power: 17 |
I tried that and it stills gives me the same warning, even though only once this time:
Code:
Courant Number mean: 3.14183e-09 max: 0.000291297 deltaT = 1.12045e-05 DILUPBiCG: Solving for Ux, Initial residual = 1, Final residual = 8.48153e-11, No Iterations 1 DILUPBiCG: Solving for Uy, Initial residual = 1, Final residual = 8.48551e-11, No Iterations 1 DILUPBiCG: Solving for Uz, Initial residual = 1, Final residual = 7.23982e-11, No Iterations 1 [3] swak4Foam: Allocating new repository for sampledGlobalVariables [2] swak4Foam: Allocating new repository for sampledGlobalVariables [1] swak4Foam: Allocating new repository for sampledGlobalVariables [0] swak4Foam: Allocating new repository for sampledGlobalVariables --> FOAM Warning : From function CommonValueExpressionDriver::evaluateVariable in file CommonValueExpressionDriver.C at line 924 There is a field named nu of type IOobject found which may be shadowed by the variable of the same name. This may lead to trouble If this is OK set 'variableNameIdenticalToField' in the relevant parser DILUPBiCG: Solving for T, Initial residual = 0.993214, Final residual = 2.27937e-10, No Iterations 1 GAMG: Solving for p_rgh, Initial residual = 1, Final residual = 0.00873422, No Iterations 26 time step continuity errors : sum local = 6.45786e-11, global = -4.08718e-13, cumulative = -4.08718e-13 GAMG: Solving for p_rgh, Initial residual = 0.0320338, Final residual = 9.64194e-07, No Iterations 28 time step continuity errors : sum local = 1.80256e-12, global = 1.25071e-14, cumulative = -3.96211e-13 DILUPBiCG: Solving for omega, Initial residual = 3.4176e-06, Final residual = 5.61993e-13, No Iterations 1 DILUPBiCG: Solving for k, Initial residual = 0.000180099, Final residual = 1.12906e-12, No Iterations 1 bounding k, min: 9.99991e-16 max: 0.0003 average: 6.10765e-09 ExecutionTime = 70.08 s ClockTime = 71 s |
|
May 15, 2013, 09:42 |
|
#151 |
Senior Member
Anne Gerdes
Join Date: Aug 2010
Location: Hamburg
Posts: 168
Rep Power: 16 |
Without having a look at your controlDict or the files where you were changing the settings I cannot judge anything.
Did you mind to remove the processor-directories when computing in parallel and decompose again, when you want to change the boundary conditions? |
|
May 15, 2013, 10:06 |
|
#152 | |
New Member
nicolas
Join Date: Oct 2009
Posts: 24
Rep Power: 17 |
Quote:
yes I removed the processor-directories and decomposed again. I did it once more to be sure. I still have the same warning. I have attached my controlDict and my boundary conditions if that helps. Regards, Nicolas |
||
May 15, 2013, 10:16 |
|
#153 |
Senior Member
Anne Gerdes
Join Date: Aug 2010
Location: Hamburg
Posts: 168
Rep Power: 16 |
Why don't you rename nu in the BC for the Cyl as well?
HTML Code:
CAVITY_CYL { type groovyBC; value uniform $refTemp; valueExpression "573.15"; gradientExpression "gradT"; fractionExpression "0"; variables ( "heatFlux= 18510;" "rho=1.9e+03;" "cp=1.54e+03;" "nu=1.72e-06;" "pr=9.75;" "kappa=nu/pr;" "gradT=heatFlux/((kappa+kappat)*rho*cp);" ); } |
|
May 15, 2013, 10:32 |
|
#154 |
New Member
nicolas
Join Date: Oct 2009
Posts: 24
Rep Power: 17 |
||
July 21, 2013, 08:13 |
|
#155 | |
Member
|
Quote:
Code:
walls { type groovyBC; value uniform -254449; variables "gardhT=cp*snGrad(T);"; gradientExpression "gradhT"; fractionExpression "0"; timelines ( ); } Code:
. . . rho max/min : 1.10805 0.26055 DILUPBiCG: Solving for PV, Initial residual = 1, Final residual = 3.62937e-07, No Iterations 2 swak4Foam: Allocating new repository for sampledGlobalVariables --> FOAM Warning : From function ConcretePluginFunction<DriverType>::exists in file lnInclude/ConcretePluginFunction.C at line 111 Constructor table of plugin functions for PatchValueExpressionDriver is not initialized --> FOAM FATAL ERROR: Parser Error for driver PatchValueExpressionDriver at "1.1-6" :"field gradhT not existing or of wrong type" "gradhT" ^^^^^^ --| Context of the error: - From dictionary: .../0/hT::boundaryField::walls Evaluating expression "gradhT" From function parsingValue in file lnInclude/CommonValueExpressionDriverI.H at line 1039. FOAM exiting |
||
July 21, 2013, 08:23 |
|
#156 |
Member
|
||
March 26, 2014, 05:07 |
|
#157 | |
Senior Member
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30 |
I ran into a similar problem with weird build errors while compiling swak with foam-extend-3.0 (AllMake.stage5) when WM_NCOMPROCS was set to 16. After setting it to one it worked as expected.
Quote:
__________________
*On twitter @akidTwit *Spend as much time formulating your questions as you expect people to spend on their answer. |
||
March 26, 2014, 17:20 |
|
#158 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Hi Anton,
Quote:
The other similar strangeness I can remember is that the official OpenFOAM version use to constrain the counter to 8 in the "ThirdParty-*" building scripts... so my guess is that some other 3rd party source code is also constrained to a maximum number of parallel GCC compilers working at the same time... or simply to avoid overconsumption of RAM But the big question is: were you using the normal GCC compilers or did you use LLVM+clang or even ICC? Best regards, Bruno
__________________
|
||
March 27, 2014, 03:56 |
|
#159 | |
Senior Member
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30 |
I was under the impression the AllMage.stage5 script did use the Mercurial repository, but I'm not sure about it. I was using my system gcc-4.7.1 compiler.
Quote:
__________________
*On twitter @akidTwit *Spend as much time formulating your questions as you expect people to spend on their answer. |
||
March 28, 2014, 18:47 |
|
#160 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Hi Anton,
Quote:
Code:
if [[ $WM_NCOMPPROCS>2 ]]; then echo "WM_NCOMPPROCS $WM_NCOMPPROCS will cause race conditions with the grammars. Resetting to 2 for this library" (export WM_NCOMPPROCS=2; wmake libso swakFiniteArea) else wmake libso swakFiniteArea fi If this is the case, then it might be worth reporting to Bernhard! Best regards, Bruno
__________________
|
||
|
|