|
[Sponsors] |
[swak4Foam] Boundary Conditions with GroovyBC, Normal Gradient |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 14, 2012, 05:55 |
|
#21 | |
New Member
Peter Benovsky
Join Date: Jun 2011
Posts: 5
Rep Power: 15 |
Quote:
What I meant is that I use groovyBC for the temperature. alphat uses standard alpatWallFunction, hence should not be groovyfied. |
||
December 14, 2012, 07:26 |
|
#22 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Anyway: if the value 0 is only there during the first timestep then it is the same bug
__________________
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 |
||
December 17, 2012, 10:44 |
|
#23 | |
New Member
Peter Benovsky
Join Date: Jun 2011
Posts: 5
Rep Power: 15 |
Quote:
Code:
location "0"; object alphat; heater { type alphatWallFunction; value uniform 0.01; } object T; heater { type groovyBC; refValue uniform 300; valueExpression "300"; gradientExpression "gradT*time()"; fractionExpression "0"; variables "heatFlux=100;gradT=heatFlux/(alphaEff);"; } Code:
location "0"; object alphat; heater { type alphatWallFunction; Prt 0.85; value nonuniform List<scalar> . . . } Cheers Peter |
||
December 17, 2012, 13:30 |
|
#24 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
- instead of alphaEff add a constant (although I don't think that is the problem) - set valueFraction to "uniform 0" (just to be sure) - reset the 300 in the refValue to x. This should fail (this is just to make sure that it is really read) Which version of swak do you use (check the start of the output of funkySetFields)
__________________
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 21, 2014, 17:25 |
|
#25 |
New Member
Xuan Ge
Join Date: Oct 2011
Location: Ames, IA, US
Posts: 6
Rep Power: 15 |
Hi, Bernhard,
I am trying to look at your codes of the groovyBC implementation. I am curious where you pass those strings, like "valueExpression_" and "gradientExpression_"? In the source code, groovyBCCommon.C, you just look up those keywords from the dictionary file and read them. How do those strings come into play to update the boundary condition? I guess one of those source codes may contain the implementation of this. Could you please tell me which source code is the right one that I can read and learn from? Thanks a lot in advance. I will appreciate your reply. |
|
February 22, 2014, 12:23 |
|
#26 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
That'd be updateCoeffs in groovyBCFvPatchField.C. But the real magic happens in Libraries/swak4FoamParsers (especially everything with PatchValue in the beginning)
__________________
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 22, 2014, 12:54 |
|
#27 |
New Member
Xuan Ge
Join Date: Oct 2011
Location: Ames, IA, US
Posts: 6
Rep Power: 15 |
Thank you, Bernhard. I will take a look at it.
|
|
September 17, 2014, 05:40 |
|
#28 |
New Member
Join Date: Jul 2013
Posts: 7
Rep Power: 13 |
Hello,
I am not sure this is the right thread for my question, but I was wondering if it was possible to set a fixed gradient in the direction normal to the patch and a fixed value in the tangential direction with groovyBC? |
|
September 17, 2014, 18:29 |
|
#29 | |
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 18, 2014, 11:56 |
|
#30 |
New Member
Join Date: Jul 2013
Posts: 7
Rep Power: 13 |
Yes, I needed the Dirichlet in the tangential direction. Thanks anyway.
|
|
November 15, 2017, 15:57 |
|
#31 | |
Member
behzad Ghasemi
Join Date: Sep 2013
Location: Iran
Posts: 56
Rep Power: 13 |
Quote:
I want to solve equation and obtain B that is defined like . I've implemented the equation in my base solver. Now i want to test functionality of the new solver but i have some boundary condition problem before testing. For example if i want to get in boundaries i need to set and . Can i use groovyBC for this? How can i implement this BCs? Thanks in advance, |
||
November 16, 2017, 21:16 |
|
#32 |
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 |
|
November 17, 2017, 04:44 |
|
#33 |
Member
behzad Ghasemi
Join Date: Sep 2013
Location: Iran
Posts: 56
Rep Power: 13 |
||
Tags |
boundary, condition, gradient, groovybc, normal |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem in setting Boundary Condition | Madhatter92 | CFX | 12 | January 12, 2016 05:39 |
Problem with SIMPLEC-like finite volume channel flow boundary conditions | ghobold | Main CFD Forum | 3 | June 15, 2015 12:14 |
Radiation interface | hinca | CFX | 15 | January 26, 2014 18:11 |
Water subcooled boiling | Attesz | CFX | 7 | January 5, 2013 04:32 |
RPM in Wind Turbine | Pankaj | CFX | 9 | November 23, 2009 05:05 |