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

what kind of boundary condition should I use

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

Reply
 
LinkBack Thread Tools Display Modes
Old   June 6, 2012, 22:51
Default what kind of boundary condition should I use
  #1
Member
 
zakir
Join Date: Nov 2011
Posts: 43
Rep Power: 5
zakir hussain is on a distinguished road
Dear all
I am simulating an MHD problem .liquid metal flows in a rectangular duct with external magnetic field.Now I run into trouble with the boundary conditions.I attached my details step here:

Can you give me some suggestion about the boundary condition of phi(BC)?

Thank you!

zakir
Attached Images
File Type: png QQ??20120607104911.png (41.8 KB, 67 views)
zakir hussain is offline   Reply With Quote

Old   June 10, 2012, 08:08
Default
  #2
Member
 
zakir
Join Date: Nov 2011
Posts: 43
Rep Power: 5
zakir hussain is on a distinguished road
Does anyone can give me some suggestions?I am really in trouble with it.

Thank you!

zakir
zakir hussain is offline   Reply With Quote

Old   June 10, 2012, 13:44
Default
  #3
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,251
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings Zakir,

OK, you mention the kind of problem you want to solve, but you haven't mentioned yet which solver you are trying to use!

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   June 11, 2012, 01:16
Default
  #4
Member
 
zakir
Join Date: Nov 2011
Posts: 43
Rep Power: 5
zakir hussain is on a distinguished road
Thanks for your attention.
I use a solver I wrote myself.It contains the knowdge about finite area method and finite volume method.First I need solve the 3D electric potential equation all
the fluid field with initial boundary condition.And then I have to solve a 2D electric potential equation (just like the file I have attached) on the boudary of fluid field. Then I need to use the solution of the 2D electric potential equation as the new boundary condition of solving 3D electric potential equation in the fluid field at the next time step.
I wrote my solver just as the attached file.

Have I expressed my point clearly?

Thank you for your advice.

zakir

Last edited by zakir hussain; June 11, 2012 at 10:35.
zakir hussain is offline   Reply With Quote

Old   June 11, 2012, 04:31
Default
  #5
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,912
Rep Power: 40
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by zakir hussain View Post
Thanks for your attention.
I use a solver I wrote myself.It contains the knowdge about finite area method and finite volume method.First I need solve the 3D electric potential equation all
the fluid field with initial boundary condition.And then I have solve a 2D electric potential equation (just like the file I have attached) on the boudary of fluid field. Then I need to use the solution of the 2D electric potential equation as the new boundary condition of solving 3D electric potential equation in the fluid field at the next time step.
I wrote my solver just as the attached file.

Have I expressed my point clearly?

Thank you for your advice.

zakir
Please don't include the main point of your question in a Bitmap. It is not possible to search that using the search function of the MessageBoard and the answers are therefor useless for everyone who might have the same question.

What you want is a FAM to FVM-coupling right. Something like
Code:
    
volSurfaceMapping mapper(famField.mesh());

mapper.mapToVolume(famField,  fvmField.boundaryField());
in your code copies the internal field of the famField to the appropriate patches of the fvmField (make sure the patches are of appropriate type ... fixedValue for instance)

PS: please don't send around duplicates of your question via EMail
gschaider is offline   Reply With Quote

Old   June 11, 2012, 10:48
Default
  #6
Member
 
zakir
Join Date: Nov 2011
Posts: 43
Rep Power: 5
zakir hussain is on a distinguished road
Quote:
Originally Posted by gschaider View Post
What you want is a FAM to FVM-coupling right. Something like
Code:
    
volSurfaceMapping mapper(famField.mesh());

mapper.mapToVolume(famField,  fvmField.boundaryField());
in your code copies the internal field of the famField to the appropriate patches of the fvmField (make sure the patches are of appropriate type ... fixedValue for instance)
yes, I have used the code you mentioned.But I don't know why it didn't calculate the 2D electric potential equation during a time step.The iteration number of solving 2D electric potential equation is zero.I doubt that I have applied the wrong initial boundary condition of electric potential (3D).Does the initial boundary conditions play that much important role during solving?
what kind of boundary condition should I use for electric potential (3D)?

regards!


zakir
zakir hussain is offline   Reply With Quote

Old   June 12, 2012, 05:03
Default
  #7
Member
 
zakir
Join Date: Nov 2011
Posts: 43
Rep Power: 5
zakir hussain is on a distinguished road
Does the initial boundary condition in 0 dictionary paly a role in every time step ? For example when solving the 3D electric potential equation ,does the inputing file of 3D electric potential in 0 dictionary have influence on the solving in every time step?

regards!

zakir
Attached Images
File Type: png QQ??20120612170301.png (4.3 KB, 9 views)

Last edited by zakir hussain; June 15, 2012 at 00:49.
zakir hussain is offline   Reply With Quote

Old   September 7, 2012, 08:33
Default
  #8
New Member
 
Peter L.
Join Date: Sep 2012
Posts: 1
Rep Power: 0
GER_PL is on a distinguished road
Hi zakir hussein and others,

which version of OF are you using? I was out of touch from OF for a few years, and it seems the the FAM is not part of OF-2.1! Any suggestions?

It looks like you are using FAM, so I thought you could help...

Thx,

Peter
GER_PL is offline   Reply With Quote

Old   September 7, 2012, 09:17
Default
  #9
Member
 
zakir
Join Date: Nov 2011
Posts: 43
Rep Power: 5
zakir hussain is on a distinguished road
Hi Peter
As I know,The FAM only exists at OF-1.6.ext.I still have many problem about that.We can discuss together.

regards!

zakir
zakir hussain is offline   Reply With Quote

Reply

Tags
mhd problem

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
Boundary Condition for granular temperature Theta cheng1988sjtu OpenFOAM Programming & Development 1 June 1, 2012 23:15
Mixed/Robin boundary condition aaev OpenFOAM Bugs 2 December 15, 2011 15:03
How to set the Heat Flux boundary condition at Outlet creddy_trddc CFX 3 September 21, 2011 07:44
UDF for 3rd Kind Boundary Condition Ismail FLUENT 1 June 12, 2006 02:45
New topic on same subject - Flow around race car Tudor Miron CFX 15 April 2, 2004 06:18


All times are GMT -4. The time now is 10:17.