|
[Sponsors] |
October 26, 2011, 08:38 |
MHD Boundary Condition
|
#1 |
New Member
amir mofakham
Join Date: Feb 2011
Posts: 14
Rep Power: 15 |
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:35 |
|
#3 |
New Member
amir mofakham
Join Date: Feb 2011
Posts: 14
Rep Power: 15 |
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
|
Quote:
#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: 14
Rep Power: 15 |
Unfortunately it didn't work!
The message was appeared too! Error: phi_boundary: Invalid electric potential field boundary Error Object: () |
|
|
|
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 |