# MHD Boundary Condition

 User Name Remember Me Password
 Register Blogs Members List Search Today's Posts Mark Forums Read

 LinkBack Thread Tools Display Modes
 October 26, 2011, 08:38 MHD Boundary Condition #1 New Member   amir mofakham Join Date: Feb 2011 Posts: 8 Rep Power: 7 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.

 October 26, 2011, 12:07 #2 Senior Member     Amir Join Date: May 2009 Location: Montreal, QC Posts: 739 Blog Entries: 1 Rep Power: 15 Hi, Did you initialize your UDS (or you can patch it)? __________________ Amir

 October 26, 2011, 12:35 #3 New Member   amir mofakham Join Date: Feb 2011 Posts: 8 Rep Power: 7 Hi Amir, I initialize the uds form panel Solve\Initialize\initialize and I do not path it.

October 26, 2011, 12:47
#4
Senior Member

Amir
Join Date: May 2009
Location: Montreal, QC
Posts: 739
Blog Entries: 1
Rep Power: 15
Quote:
 Originally Posted by amir.mofakham 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

 October 26, 2011, 13:46 #5 New Member   amir mofakham Join Date: Feb 2011 Posts: 8 Rep Power: 7 Unfortunately it didn't work! The message was appeared too! Error: phi_boundary: Invalid electric potential field boundary Error Object: ()

 Thread Tools Display Modes Linear Mode

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

 Similar Threads Thread Thread Starter Forum Replies Last Post HMR CFX 5 October 10, 2016 05:57 poplar OpenFOAM 3 January 14, 2015 03:37 Thomas P. Abraham Main CFD Forum 20 July 7, 2013 05:05 Mukund Pondkule Main CFD Forum 0 March 16, 2011 04:23 Peiyong FLUENT 1 November 10, 2006 12:44

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

 Contact Us - CFD Online - Top