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

MHD Boundary Condition

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 26, 2011, 08:38
Default MHD Boundary Condition
  #1
New Member
 
amir mofakham
Join Date: Feb 2011
Posts: 14
Rep Power: 15
amir.mofakham is on a distinguished road
Hi every one.
I want to define a boundary condition of a MHD problem by use of UDF. In the section UDS of the boundary I select the specified flux for the boundary and then in user-Define Scalar Boundary Value I select the udf which was interpreted. When I start the iteration following error is appeared!

Error: phi_boundary: Invalid electric potential field boundary
Error Object: ()

In the UDF as u see I write a simple commend:

#include "udf.h"
DEFINE_PROFILE(Electrical_Potential,t,i)
{

face_t f;
begin_f_loop(f,t)
{
F_UDSI(f,t,0)=10;
}
end_f_loop(f,t)


}
Thanks in advance.
amir.mofakham is offline   Reply With Quote

Old   October 26, 2011, 12:07
Default
  #2
Senior Member
 
Amir's Avatar
 
Amir
Join Date: May 2009
Location: Montreal, QC
Posts: 735
Blog Entries: 1
Rep Power: 22
Amir is on a distinguished road
Hi,

Did you initialize your UDS (or you can patch it)?
__________________
Amir
Amir is offline   Reply With Quote

Old   October 26, 2011, 12:35
Default
  #3
New Member
 
amir mofakham
Join Date: Feb 2011
Posts: 14
Rep Power: 15
amir.mofakham is on a distinguished road
Hi Amir,
I initialize the uds form panel Solve\Initialize\initialize and I do not path it.
amir.mofakham is offline   Reply With Quote

Old   October 26, 2011, 12:47
Default
  #4
Senior Member
 
Amir's Avatar
 
Amir
Join Date: May 2009
Location: Montreal, QC
Posts: 735
Blog Entries: 1
Rep Power: 22
Amir is on a distinguished road
Quote:
Originally Posted by amir.mofakham View Post
Hi Amir,
I initialize the uds form panel Solve\Initialize\initialize and I do not path it.
use this:

#include "udf.h"
DEFINE_PROFILE(Electrical_Potential,t,i)
{

face_t f;
begin_f_loop(f,t)
{
F_PROFILE(f,t,i)=10;
}
end_f_loop(f,t)


}
Bests,
__________________
Amir
Amir is offline   Reply With Quote

Old   October 26, 2011, 13:46
Default
  #5
New Member
 
amir mofakham
Join Date: Feb 2011
Posts: 14
Rep Power: 15
amir.mofakham is on a distinguished road
Unfortunately it didn't work!
The message was appeared too!
Error: phi_boundary: Invalid electric potential field boundary
Error Object: ()
amir.mofakham 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
Domain Imbalance HMR CFX 5 October 10, 2016 05:57
Can anyone give me some hint on how to make traction free boundary condition? poplar OpenFOAM 3 January 14, 2015 02:37
Boundary Conditions Thomas P. Abraham Main CFD Forum 20 July 7, 2013 05:05
Setting outlet Pressure boundary condition using CAFFA code Mukund Pondkule Main CFD Forum 0 March 16, 2011 03:23
How to set boundary condition in Fluent for the fo Peiyong FLUENT 1 November 10, 2006 11:44


All times are GMT -4. The time now is 12:16.