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

B vector in mhd module.

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 3, 2011, 10:45
Default B vector in mhd module.
  #1
New Member
 
Adam
Join Date: Feb 2011
Posts: 6
Rep Power: 15
adamo is on a distinguished road
Hello
I need advice. I am using Fluent with MHD module to simulate my object. In MHD I can define value of vector B but only of external field. Now I need to calculate B of internal magnetic field (means: field made by current flowing by the fluid).
Is any simple method to do this calculations.
I am thinking some time over this problem. Do I have to write some kind of my own mhd module or I can use this in Fluent.
I will appreciate your help.
adamo is offline   Reply With Quote

Old   August 3, 2011, 16:19
Default
  #2
Senior Member
 
Amir's Avatar
 
Amir
Join Date: May 2009
Location: Montreal, QC
Posts: 735
Blog Entries: 1
Rep Power: 23
Amir is on a distinguished road
Hi Adam,
you can simply add any source terms to your N-S equations. I didn't use MHD module before, but it reasonably add appropriate source terms and properties to your solver; in other words, you can do any thing that this module do by your self without any restrictions with some UDFs.


Bests,


Amir
Amir is offline   Reply With Quote

Old   August 8, 2011, 07:17
Default
  #3
New Member
 
Adam
Join Date: Feb 2011
Posts: 6
Rep Power: 15
adamo is on a distinguished road
I thought over what you have written. I suppose you mean to add sources to momentum equ. (in my case something like: JxB) and to energy equ. (in my case something like: (Jx^2 + Jy^2 + Jz^2)/conductance). My question is how to describe it in UDF - I mean how to put J (current density) which is "created" in MHD.
adamo is offline   Reply With Quote

Old   August 8, 2011, 07:25
Default
  #4
Senior Member
 
Amir's Avatar
 
Amir
Join Date: May 2009
Location: Montreal, QC
Posts: 735
Blog Entries: 1
Rep Power: 23
Amir is on a distinguished road
Quote:
Originally Posted by adamo View Post
I thought over what you have written. I suppose you mean to add sources to momentum equ. (in my case something like: JxB) and to energy equ. (in my case something like: (Jx^2 + Jy^2 + Jz^2)/conductance). My question is how to describe it in UDF - I mean how to put J (current density) which is "created" in MHD.
If you know how this vector is created, the problem is resolved. Even if this vector is obtained from sth like transport eqn, you can handle that by UDS implementation.
__________________
Amir
Amir is offline   Reply With Quote

Old   August 9, 2011, 06:07
Default
  #5
New Member
 
Adam
Join Date: Feb 2011
Posts: 6
Rep Power: 15
adamo is on a distinguished road
Quote:
Originally Posted by Amir View Post
If you know how this vector is created, the problem is resolved. Even if this vector is obtained from sth like transport eqn, you can handle that by UDS implementation.
Yet I have no idea how the J vector is created. MHD defines it and makes calculations. I know that values of the vector is placed in UDM by MHD module. When the iterates are finished I can draw charts of J, B, A (electric vector potential), V (electric scalar potential).
The problem is to define J equation. My fluid shape is a little bit irregular and I am not sure how to create model of current flow in it.
What do you mean: "this vector is obtained from sth"?
adamo is offline   Reply With Quote

Old   August 9, 2011, 06:22
Default
  #6
Senior Member
 
Amir's Avatar
 
Amir
Join Date: May 2009
Location: Montreal, QC
Posts: 735
Blog Entries: 1
Rep Power: 23
Amir is on a distinguished road
Quote:
Originally Posted by adamo View Post
Yet I have no idea how the J vector is created. MHD defines it and makes calculations. I know that values of the vector is placed in UDM by MHD module. When the iterates are finished I can draw charts of J, B, A (electric vector potential), V (electric scalar potential).
The problem is to define J equation. My fluid shape is a little bit irregular and I am not sure how to create model of current flow in it.
What do you mean: "this vector is obtained from sth"?
I meant that this vector may created from something like algebraic equation (explicit relation) or you may have to solve a transport eqn. for that (more probable) which both of them can simply be modeled without use of MHD module.
__________________
Amir

Last edited by Amir; August 9, 2011 at 10:06.
Amir is offline   Reply With Quote

Old   August 9, 2011, 07:41
Default
  #7
New Member
 
Adam
Join Date: Feb 2011
Posts: 6
Rep Power: 15
adamo is on a distinguished road
That means that I should turn off MHD module and write my own transport equations to solve it. I have never done it before so I have to read sth about UDSs and UDMs. Thanks a lot Amir.
Probably I will have further questions later.
Best wishes,
Adam
adamo is offline   Reply With Quote

Old   May 22, 2012, 07:26
Default
  #8
New Member
 
陈浩
Join Date: May 2012
Posts: 1
Rep Power: 0
smooth is on a distinguished road
Quote:
Originally Posted by adamo View Post
That means that I should turn off MHD module and write my own transport equations to solve it. I have never done it before so I have to read sth about UDSs and UDMs. Thanks a lot Amir.
Probably I will have further questions later.
Best wishes,
Adam
Hello,i encounter the same question of you that in the MHD the UDM of B(magnetic field azimuthal component)comes to 0.Have you already solved your problem?
I will appreciate for your reply!
smooth 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
MHD Module Ashish FLUENT 2 November 18, 2017 04:40
MHD module in fluent revanth FLUENT 5 November 18, 2013 22:01
Can someone PLEASE document the development version installation bernd OpenFOAM Installation 76 November 14, 2008 22:51
How to enable MHD module Mukund FLUENT 1 July 15, 2008 09:16
MHD Module Benny FLUENT 0 March 16, 2004 06:04


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