CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

Domainvar_Get_List_of_Ref:list is too short

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 5, 2017, 22:48
Unhappy Domainvar_Get_List_of_Ref:list is too short
  #1
New Member
 
Join Date: Jul 2016
Posts: 8
Rep Power: 9
kobe bryant is on a distinguished road
I was simulating a proton exchange membrane fuel cell model with UDF. In the UDF, there are codes

"float uds_urf[6];
float species_urf[3];
uds_urf[0] = 0.01;
uds_urf[1] = 0.01;
uds_urf[2] = 0.999;
uds_urf[3] = 0.01;
142
uds_urf[4] = 0.999;
uds_urf[5] = 0.999;
species_urf[0] = 1.0;
species_urf[1] = 1.0;
species_urf[2] = 1.0;
if (MY_COUNTER <= 50)
{
uds_urf[0] = 0.01;
uds_urf[1] = 0.01;
uds_urf[2] = 0.00001;
uds_urf[3] = 0.00001;
uds_urf[4] = 0.00001;
uds_urf[5] = 0.00001;
species_urf[0] = 1.0;
species_urf[1] = 1.0;
species_urf[2] = 1.0;
Domainvar_Set_Real(ROOT_DOMAIN_ID,"temperature/relax", 0.1);
}
else if (MY_COUNTER <= 100)
{
uds_urf[0] = 0.1;
uds_urf[1] = 0.1;
uds_urf[2] = 0.1;
uds_urf[3] = 0.1;
uds_urf[4] = 0.1;
uds_urf[5] = 0.1;
species_urf[0] = 1.0;
species_urf[1] = 1.0;
species_urf[2] = 1.0;
Domainvar_Set_Real(ROOT_DOMAIN_ID,"temperature/relax", 0.1);
}
Domainvar_Set_List_of_Float(ROOT_DOMAIN_ID, "uds/relax", uds_urf, 6);
Domainvar_Set_List_of_Float(ROOT_DOMAIN_ID, "species/relax", species_urf, 3);

But error happens when calculating"Erroromainvar_Get_List_of_Ref. Errorbject)"

"
could someone help me
kobe bryant 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
Short shot simulation problems in die casting simulation correlation with test yanhua.li FLOW-3D 12 August 3, 2016 02:21
Short circuit between transistors by water sloshing Roland R CFX 4 October 3, 2013 09:07
Short course: Modeling of Water Resources and Environmental Problems using OpenFOAM liu OpenFOAM Announcements from Other Sources 0 March 14, 2012 16:32
Short Cycling (Re-Circulation) soj CFX 0 August 9, 2011 00:27
Info: Short Course On Thermal Design of Electronic Equipment Arnold Free Main CFD Forum 0 August 10, 1999 10:18


All times are GMT -4. The time now is 00:27.