CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > CFX

Importing 3D data as CEL into ANSYS CFX 11.0

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 10, 2007, 18:22
Default Importing 3D data as CEL into ANSYS CFX 11.0
  #1
Dave W.
Guest
 
Posts: n/a
Hi,

I am doing a 2 fluid homogeneous multiphase density difference buoyancy model. I'm particularly interested in the change in the interface of these 2 fluids when an external body force (electromagnetic force) acts on the bottom fluid (liquid metal). The model is 3D steady state.

I want to import some external 3D data (the electromagnetic body force, calculated from some other modelling programme, say in .csv or .txt format) into my CFX model as a CEL function or expression that I can use as a body momentum force? The body force data I want to import will have separate x, y and z component forces and be distributed along different elements in the 3D subdomain.

I know that you can import 2D data for a boundary condition profile (using Tools>Initialise Profile Data), but can you do something similar in 3D? The functions interpolation in CFX-Pre looks like something similar to what I'd want to use, except that it is manual and I have a 3D profile of data to import.

Any suggestions very welcome.

Cheers, Dave.
  Reply With Quote

Old   October 10, 2007, 19:06
Default Re: Importing 3D data as CEL into ANSYS CFX 11.0
  #2
opaque
Guest
 
Posts: n/a
Dear Dave,

Yes, that can be done.

However, it this a AC or DC electromagnetic problem?

For DC problems, there is a built-in module within CFX that will solver the electric potential equation along with the magnetic vector potential. It will also compute the Lorentz Force and include it in the momentum equation. In addition, it does the proper linearization for robustness and convergence.

Hope it helps,

Opaque

  Reply With Quote

Old   October 10, 2007, 19:48
Default Re: Importing 3D data as CEL into ANSYS CFX 11.0
  #3
Dave W.
Guest
 
Posts: n/a
Hi Opaque,

It is a DC problem, however I do not wish to resolve for Lorentz forces as I already have a solution for that from another electromagnetic FEM model (at the moment I am not looking at coupling the electromagnetics with the fluid flow).

Is there a way for me to input my existing static Lorentz force solution into the momentum equation in CFX? Some FORTRAN or CEL routine? There isn't much in CFX Help.

Cheers, Dave.

  Reply With Quote

Old   October 10, 2007, 19:48
Default Re: Importing 3D data as CEL into ANSYS CFX 11.0
  #4
Glenn Horrocks
Guest
 
Posts: n/a
Hi,

For a 3D interpolation function use the "Cloud of points" function.

Regards, Glenn Horrocks
  Reply With Quote

Old   October 10, 2007, 22:28
Default Re: Importing 3D data as CEL into ANSYS CFX 11.0
  #5
Opaque
Guest
 
Posts: n/a
Dear Dave,

That is rather odd. How could you compute the Lorentz force w/o the information for the velocity field? It is a 2-way interaction. Do you mean Lorentz force as in

F_Lorentz = J x B

= (sigma * E + sigma * Velocity x B) x B

You also said "static Lorentz force". Do you mean the above, or

F = q * E ?

In any case, you have the option of :

1 - Specifying the magnetic induction field (B) explicitly, plus solving the electric field.

2 - Solving for both electric and magnetic field

3 - Create a subdomain, and add a Momentum Source. Select Cartesian Components and input the components of your "Lorentz force". Remember to linearize the source respect to the velocity field. You only do this, if you are not using (1) or (2).

You can create a .csv file following the format used by CFX-Post, and create a Profile in CFX-Pre. Then, use the proper CEL expressions in the Subdomain panel.

Hope this helps, Opaque.
  Reply With Quote

Old   October 10, 2007, 22:58
Default Re: Importing 3D data as CEL into ANSYS CFX 11.0
  #6
Dave W.
Guest
 
Posts: n/a
Thanks Opaque,

I think I'm more for Option 3 - I've already previously solved for both electric and magnetic field, but you're right, there is an magnetic field component that is induced by fluid velocity, but I'm choosing for the moment to ignore that part

By the way, what did you mean by linearising the source w.r.t. velocity field?

Cheers, Dave.

  Reply With Quote

Old   October 10, 2007, 23:20
Default Re: Importing 3D data as CEL into ANSYS CFX 11.0
  #7
Opaque
Guest
 
Posts: n/a
Dear Dave,

What type of application are you using MHD for? aluminum reduction cells. I am just surprised you can get away with neglecting the "sigma * u x B" term.

Have you estimated the Hartmann/Chandrasekhar number for your application? That will give you a hint of the ratio between Lorentz forces to viscous forces.

If you include the term sigma * u x B, the solver needs to know how your momentum source (body force) depends on velocity. Your linearization coefficient is the derivative of the body force respect to velocity.

Opaque
  Reply With Quote

Old   October 10, 2007, 23:33
Default Re: Importing 3D data as CEL into ANSYS CFX 11.0
  #8
Dave W.
Guest
 
Posts: n/a
Yes aluminium reduction.

Its a test case on just using the software, so I'm not too worried about the viscous/velocity forces.

Dave
  Reply With Quote

Old   October 19, 2007, 08:43
Default Re: Importing 3D data as CEL into ANSYS CFX 11.0
  #9
Prad
Guest
 
Posts: n/a
hi, I am working on a similar thing. As for as I know, the data can be called in as a subroutine from the Fortron lib. But one may require a Fortron compiler. However I would like to know how a data file can be imported to CFX pre to define a force? every time I call the data(.csv format), it gives me a msg saying that it requires a name in the first command line.
  Reply With Quote

Old   October 19, 2007, 09:18
Default Re: Importing 3D data as CEL into ANSYS CFX 11.0
  #10
opaque
Guest
 
Posts: n/a
Dear Prad,

The .csv file has an explicit format described in the documentation. Otherwise, it will not work.

You can export a boundary condition profile from CFX-Post, and look at the format there as well.

Opaque

  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
Calculation of the Governing Equations Mihail CFX 7 September 7, 2014 07:27
Importing .sfe load files from CFX to Ansys ADPL Eyezac ANSYS 0 May 14, 2010 19:09
ANSYS Multi-physics and CFX coupling error anujit CFX 3 June 21, 2009 19:39
I have an error with UDF into ANSYS CFX 11.0 Minh Ngoc CFX 5 August 18, 2008 04:07
error on ANSYS CFX 11.0 Mini Main CFD Forum 1 October 5, 2007 10:53


All times are GMT -4. The time now is 15:54.