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

MHD Boundary Condition

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   October 26, 2011, 08:38
Default MHD Boundary Condition
  #1
New Member
 
amir mofakham
Join Date: Feb 2011
Posts: 8
Rep Power: 6
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: Shiraz, Iran
Posts: 739
Blog Entries: 1
Rep Power: 14
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: 8
Rep Power: 6
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: Shiraz, Iran
Posts: 739
Blog Entries: 1
Rep Power: 14
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: 8
Rep Power: 6
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

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can anyone give me some hint on how to make traction free boundary condition? poplar OpenFOAM 3 January 14, 2015 03: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 04:23
Domain Imbalance HMR CFX 3 March 6, 2011 21:10
How to set boundary condition in Fluent for the fo Peiyong FLUENT 1 November 10, 2006 12:44


All times are GMT -4. The time now is 08:41.