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

[swak4Foam] groovy BC

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 10, 2014, 07:20
Default groovy BC
  #1
Member
 
zohreh imani nejad
Join Date: Feb 2014
Location: gonabad
Posts: 55
Rep Power: 12
imani is on a distinguished road
hi
who can help me
i model a hot room with groovy BC
i have problem about T file
my T file is as below
dimensions [0 0 0 1 0 0 0];

internalField uniform 293;

boundaryField
{
floor
{
type fixedValue;
value uniform 283.15; // floor temperature :10 'C
}
ceiling
{
type groovyBC;
valueExpression "291"; //291 is air inlet tempareture
gradientExpression "0";// consider the rest of celing insulated
fractionExpression "pos().x > 2.65 && pos().x < 2.95 && pos().z > 2.23 && pos().z < 2.38 ? 1 : 0";
value uniform 293;
}

fixedWall-1
{
type groovyBC;
valueExpression "318"; // temperature of skiriting heater
gradientExpression "0"; // the rest of wall consider insulated if it is internal wall
fractionExpression "pos().y < 0.15 ? 1 : 0";
value uniform 293;
}
fixedWall-2
{
type groovyBC;
valueExpression "318"; // temperature of skiriting heater
gradientExpression "0"; // the rest of wall consider insulated if it is internal wall
fractionExpression "pos().y < 0.15 ? 1 : 0";
value uniform 293;
}
fixedWall-3
{
type groovyBC;
valueExpression "318"; // temperature of skiriting heater
gradientExpression "0"; // the rest of wall consider insulated if it is internal wall
fractionExpression "pos().y < 0.15 ? 1 : 0";
value uniform 293;
}
fixedWall-4
{
type groovyBC;
variables "Kwall=0.25;Kglazing=1.2;Qwall=-8.5;Qglazing=-40.8;";// taken from table 3
valueExpression "318"; // temperature of skiriting heater
gradientExpression "(pos().y > 0.3 && pos().y < 2.3) && ((pos().x > 0.7 && pos().x < 2.3) || (pos().x > 3 && pos().x < 4.6)) ? Qglazing/Kglazing : Qwall/Kwall";// in external wall which containts windows, BC is constant negative heat flux
fractionExpression "pos().y < 0.15 ? 1 : 0";
value uniform 293;
}

}
but i want to change the skritingBoard condition
i want to give it a constant flux condition
how i can do it?
i know it's Q and K

thanks
imani is offline   Reply With Quote

Old   April 13, 2014, 08:43
Default
  #2
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by imani View Post
hi
who can help me
i model a hot room with groovy BC
i have problem about T file
my T file is as below
dimensions [0 0 0 1 0 0 0];

internalField uniform 293;

boundaryField
{
fixedWall-4
{
type groovyBC;
variables "Kwall=0.25;Kglazing=1.2;Qwall=-8.5;Qglazing=-40.8;";// taken from table 3
valueExpression "318"; // temperature of skiriting heater
gradientExpression "(pos().y > 0.3 && pos().y < 2.3) && ((pos().x > 0.7 && pos().x < 2.3) || (pos().x > 3 && pos().x < 4.6)) ? Qglazing/Kglazing : Qwall/Kwall";// in external wall which containts windows, BC is constant negative heat flux
fractionExpression "pos().y < 0.15 ? 1 : 0";
value uniform 293;
}

}
but i want to change the skritingBoard condition
i want to give it a constant flux condition
how i can do it?
i know it's Q and K

thanks
Could you be more specific? What is "the skritingBoard condition". What would be "constant flux condition"? You can't mean "constant heat flux" as you've already implemented such a thing for fixed-wall-4 (constant gradient that depends on the heat flux and conductivity)
__________________
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
gschaider is offline   Reply With Quote

Reply


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
[swak4Foam] Groovy BC - time dependend Inlet Tobi OpenFOAM Community Contributions 20 August 27, 2020 10:22
[swak4Foam] How to use groovy Boundary conditions Zhiheng Wang OpenFOAM Community Contributions 8 November 6, 2019 10:28
[swak4Foam] groovy BC - which value is used ThorgrimmCFD OpenFOAM Community Contributions 2 May 7, 2015 05:06
[swak4Foam] groovy BC Ahmed Khattab OpenFOAM Community Contributions 4 November 7, 2013 08:51
[swak4Foam] using groovy boundry condition in multiphase problom javad814 OpenFOAM Community Contributions 1 November 30, 2011 17:29


All times are GMT -4. The time now is 06:28.