Please Delete
#565
Banned
Oh dear gawd..............
Buzy, buzy day - huh???..??!!!! I'm still back on page... I HAVE NO IDEA WHAT PAGE!!??!
OK - I deleted the Fedex shipment today, and rather send all the shirts/prizes Priority mail...
RV - I still don't know if you need a shirt (I'm still being Rick Rolled - so can't get into my PMs )
Also - about the shirts - AGAIN!!! They have been in Jen's and my office for about 5 years - so they will probably have to be washed.. You have been warned..
Back to reading...
JD
Buzy, buzy day - huh???..??!!!! I'm still back on page... I HAVE NO IDEA WHAT PAGE!!??!
OK - I deleted the Fedex shipment today, and rather send all the shirts/prizes Priority mail...
RV - I still don't know if you need a shirt (I'm still being Rick Rolled - so can't get into my PMs )
Also - about the shirts - AGAIN!!! They have been in Jen's and my office for about 5 years - so they will probably have to be washed.. You have been warned..
Back to reading...
JD
#566
Almost Deleted
Rennlist Member
Rennlist Member
Oh dear gawd..............
Buzy, buzy day - huh???..??!!!! I'm still back on page... I HAVE NO IDEA WHAT PAGE!!??!
OK - I deleted the Fedex shipment today, and rather send all the shirts/prizes Priority mail...
RV - I still don't know if you need a shirt (I'm still being Rick Rolled - so can't get into my PMs )
Also - about the shirts - AGAIN!!! They have been in Jen's and my office for about 5 years - so they will probably have to be washed.. You have been warned..
Back to reading...
JD
Buzy, buzy day - huh???..??!!!! I'm still back on page... I HAVE NO IDEA WHAT PAGE!!??!
OK - I deleted the Fedex shipment today, and rather send all the shirts/prizes Priority mail...
RV - I still don't know if you need a shirt (I'm still being Rick Rolled - so can't get into my PMs )
Also - about the shirts - AGAIN!!! They have been in Jen's and my office for about 5 years - so they will probably have to be washed.. You have been warned..
Back to reading...
JD
#567
Banned
#568
Almost Deleted
Rennlist Member
Rennlist Member
[modeled that picture several years ago]
#569
Almost Deleted
Rennlist Member
Rennlist Member
more CFD goodness....
for( j=0; j<mesh->my; j++ )
{
jm1 = j-1;
jp1 = j+1;
if( j == 0 )
{
jm1 = 0;
}
else if( j==mesh->my-1 )
{
jp1 = mesh->my-1;
}
for( k=0; k<mesh->mz; k++ )
{
km1 = k-1;
kp1 = k+1;
if( k==0 )
{
km1 = 0;
}
else if( k==mesh->mz-1 )
{
kp1==mesh->mz-1;
}
/* PRE :: CALCULATE RHS */
rhs =- dx*dx/dt * ( ((mesh->Ustar[i+1][j+1][k+1]-mesh->Ustar[i][j+1][k+1])/dx)
+ ((mesh->Vstar[i+1][j+1][k+1]-mesh->Vstar[i+1][j][k+1])/dy)
+ ((mesh->Wstar[i+1][j+1][k+1]-mesh->Wstar[i+1][j+1][k])/dz) );
/* STEP 1 */
mesh->Pnew[i][j][k] = ( (aw*mesh->Pnew[im1][j][k])
+ (ae*mesh->Pnew[ip1][j][k])
+ (as*mesh->Pnew[i][jm1][k])
+ (an*mesh->Pnew[i][jp1][k])
+ (af*mesh->Pnew[i][j][km1])
+ (ab*mesh->Pnew[i][j][kp1])
+ rhs )/ap;
/* STEP 2 */
mesh->Pnew[i][j][k] = omega*mesh->Pnew[i][j][k]+(1-omega)*mesh->P[i][j][k];
}
}
for( j=0; j<mesh->my; j++ )
{
jm1 = j-1;
jp1 = j+1;
if( j == 0 )
{
jm1 = 0;
}
else if( j==mesh->my-1 )
{
jp1 = mesh->my-1;
}
for( k=0; k<mesh->mz; k++ )
{
km1 = k-1;
kp1 = k+1;
if( k==0 )
{
km1 = 0;
}
else if( k==mesh->mz-1 )
{
kp1==mesh->mz-1;
}
/* PRE :: CALCULATE RHS */
rhs =- dx*dx/dt * ( ((mesh->Ustar[i+1][j+1][k+1]-mesh->Ustar[i][j+1][k+1])/dx)
+ ((mesh->Vstar[i+1][j+1][k+1]-mesh->Vstar[i+1][j][k+1])/dy)
+ ((mesh->Wstar[i+1][j+1][k+1]-mesh->Wstar[i+1][j+1][k])/dz) );
/* STEP 1 */
mesh->Pnew[i][j][k] = ( (aw*mesh->Pnew[im1][j][k])
+ (ae*mesh->Pnew[ip1][j][k])
+ (as*mesh->Pnew[i][jm1][k])
+ (an*mesh->Pnew[i][jp1][k])
+ (af*mesh->Pnew[i][j][km1])
+ (ab*mesh->Pnew[i][j][kp1])
+ rhs )/ap;
/* STEP 2 */
mesh->Pnew[i][j][k] = omega*mesh->Pnew[i][j][k]+(1-omega)*mesh->P[i][j][k];
}
}
#570
Banned
I'll see your post and raise you a DELETE.. Can you spot the parens I should have deleted??
error_reporting(E_ALL & ~E_NOTICE);
if (!@include 'functions_rwgarage_plus.php') {
include 'functions_rwgarage.php';
}
static $rwgarage_postbit_cache = array();
function rwgarage_fetchFromCache($userID, $use_username_in_link, $usepostid, $onclick_launch_window)
{
global $rwgarage_postbit_cache;
$key = $userID . ($use_username_in_link ? '_T' : '_F') . ($usepostid ? '_T' : '_F') . ($onclick_launch_window ? '_T' : '_F');
return $rwgarage_postbit_cache[$key];
}
function rwgarage_putInCache($userID, $use_username_in_link, $usepostid, $onclick_launch_window, $content)
{
global $rwgarage_postbit_cache;
$key = $userID . ($use_username_in_link ? '_T' : '_F') . ($usepostid ? '_T' : '_F') . ($onclick_launch_window ? '_T' : '_F');
$rwgarage_postbit_cache[$key] = $content;
}
function generate_garage_popup_menu($userinfo, $use_username_in_link = false, $usepostid = false, $onclick_launch_window=true)
{
global $vbulletin, $db, $vbphrase, $post;
$userID = $userinfo['userid'];
$cacheHit = rwgarage_fetchFromCache($userID, $use_username_in_link, $usepostid, $onclick_launch_window);
if(!$cacheHit)
{
$vehicles = $db->query_read("SELECT * FROM " .
TABLE_PREFIX . "rwgarage_vehicle WHERE userid = ". $userID . " AND display='1'");
$num_vehicles = $db->num_rows($vehicles);
if($num_vehicles > 0)
{
$content = "";
$popupbits = "";
while($vehicle = $db->fetch_Array($vehicles))
{
$usethumb = false;
$thumbname = NULL;
$image = $db->query_first("SELECT * from " .
TABLE_PREFIX . "rwgarage_image WHERE vehicle_id = ". $vehicle['vehicle_id'] ." AND showinsections='main'");
if($image['image_id']!=0)
{
$usethumb = true;
$thumbname = $vbulletin->options['bburl']. "/" .$vbulletin->options['rwgarage_imagedir']. "/" .$image['userid']. "/" .$image['image_id']. "t.jpg";
}
if($vehicle['name'] != "")
$vehicle_name = $vehicle['name'];
else
$vehicle_name = $vehicle['year']. " " .$vehicle['make']. " " .$vehicle['model'];
$vehicle_id = $vehicle['vehicle_id'];
eval('$popupbits .= "' . fetch_template('rwgarage_popup_menubit') . '";') );
}
rwgarage_putInCache($userID, $use_username_in_link, $usepostid, $onclick_launch_window, $popupbits);
$cacheHit = $popupbits;
}
else
{
rwgarage_putInCache($userID, $use_username_in_link, $usepostid, $onclick_launch_window, ' ');
$cacheHit = ' ';
}
}
if($cacheHit == ' ')
return NULL;
else
{
$popupbits = $cacheHit;
eval('$content = "' . fetch_template('rwgarage_popup_menu') . '";');
return $content;
}
}
error_reporting(E_ALL & ~E_NOTICE);
if (!@include 'functions_rwgarage_plus.php') {
include 'functions_rwgarage.php';
}
static $rwgarage_postbit_cache = array();
function rwgarage_fetchFromCache($userID, $use_username_in_link, $usepostid, $onclick_launch_window)
{
global $rwgarage_postbit_cache;
$key = $userID . ($use_username_in_link ? '_T' : '_F') . ($usepostid ? '_T' : '_F') . ($onclick_launch_window ? '_T' : '_F');
return $rwgarage_postbit_cache[$key];
}
function rwgarage_putInCache($userID, $use_username_in_link, $usepostid, $onclick_launch_window, $content)
{
global $rwgarage_postbit_cache;
$key = $userID . ($use_username_in_link ? '_T' : '_F') . ($usepostid ? '_T' : '_F') . ($onclick_launch_window ? '_T' : '_F');
$rwgarage_postbit_cache[$key] = $content;
}
function generate_garage_popup_menu($userinfo, $use_username_in_link = false, $usepostid = false, $onclick_launch_window=true)
{
global $vbulletin, $db, $vbphrase, $post;
$userID = $userinfo['userid'];
$cacheHit = rwgarage_fetchFromCache($userID, $use_username_in_link, $usepostid, $onclick_launch_window);
if(!$cacheHit)
{
$vehicles = $db->query_read("SELECT * FROM " .
TABLE_PREFIX . "rwgarage_vehicle WHERE userid = ". $userID . " AND display='1'");
$num_vehicles = $db->num_rows($vehicles);
if($num_vehicles > 0)
{
$content = "";
$popupbits = "";
while($vehicle = $db->fetch_Array($vehicles))
{
$usethumb = false;
$thumbname = NULL;
$image = $db->query_first("SELECT * from " .
TABLE_PREFIX . "rwgarage_image WHERE vehicle_id = ". $vehicle['vehicle_id'] ." AND showinsections='main'");
if($image['image_id']!=0)
{
$usethumb = true;
$thumbname = $vbulletin->options['bburl']. "/" .$vbulletin->options['rwgarage_imagedir']. "/" .$image['userid']. "/" .$image['image_id']. "t.jpg";
}
if($vehicle['name'] != "")
$vehicle_name = $vehicle['name'];
else
$vehicle_name = $vehicle['year']. " " .$vehicle['make']. " " .$vehicle['model'];
$vehicle_id = $vehicle['vehicle_id'];
eval('$popupbits .= "' . fetch_template('rwgarage_popup_menubit') . '";') );
}
rwgarage_putInCache($userID, $use_username_in_link, $usepostid, $onclick_launch_window, $popupbits);
$cacheHit = $popupbits;
}
else
{
rwgarage_putInCache($userID, $use_username_in_link, $usepostid, $onclick_launch_window, ' ');
$cacheHit = ' ';
}
}
if($cacheHit == ' ')
return NULL;
else
{
$popupbits = $cacheHit;
eval('$content = "' . fetch_template('rwgarage_popup_menu') . '";');
return $content;
}
}