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

Dynamic Mesh- Parallel UDF

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By thinktank

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 12, 2010, 15:50
Default Dynamic Mesh- Parallel UDF
  #1
New Member
 
Join Date: Jan 2010
Posts: 1
Rep Power: 0
DE HEART is on a distinguished road
HI,
I am currently working on 3D FSI mechanical heart valve simulation.
the motion of the valve leaflets is assigned using a udf function.
However, i would like to run my simulation in parallel. and in order
to that i partitioned my domain in a serial mode and saved the case
and data files. then i went to parallel mode and compiled,
successfully, my udf file. However, when i try to run the simulation
in serial mode, every thing goes smooth. While when i try to switch to
the parallel one and during the first iterations a negative volume
massage show up.

For explain more about my current mesh and geometry, i uploaded the
middle plane image :
http://img684.imageshack.us/img684/4...ddileplane.png

The UDF code:

#include "udf.h"
#define omega1 -26.7 /* rotational speed-upperleaflet, rad/sec */
#define omega2 26.7 /* rotational speed-lowerleaflet, rad/sec */

DEFINE_CG_MOTION(upperleaflet, dt, cg_vel, cg_omega, time, dtime)
{
if (time >= 0.172 && time < 0.21)
{
cg_vel[0] = 0.0;
cg_vel[1] = 0.0;
cg_vel[2] = 0.0;
cg_omega[0] = omega1;
cg_omega[1] = 0.0;
cg_omega[2] = 0.0;
}

else if (time >= 0.81 && time < 0.848)
{
cg_vel[0] = 0.0;
cg_vel[1] = 0.0;
cg_vel[2] = 0.0;
cg_omega[0] = -omega1;
cg_omega[1] = 0.0;
cg_omega[2] = 0.0;
}
else {

cg_vel[0] = 0.0;
cg_vel[1] = 0.0;
cg_vel[2] = 0.0;
cg_omega[0] = 0;
cg_omega[1] = 0.0;
cg_omega[2] = 0.0;
}
return;

}

DEFINE_CG_MOTION(lowerleaflet, dt, cg_vel, cg_omega, time, dtime)
{
if (time >= 0.192 && time < 0.21)
{
cg_vel[0] = 0.0;
cg_vel[1] = 0.0;
cg_vel[2] = 0.0;
cg_omega[0] = omega2;
cg_omega[1] = 0.0;
cg_omega[2] = 0.0;
}
else if (time >= 0.81 && time < 0.828)
{
cg_vel[0] = 0.0;
cg_vel[1] = 0.0;
cg_vel[2] = 0.0;
cg_omega[0] = -omega2;
cg_omega[1] = 0.0;
cg_omega[2] = 0.0;
}
else
{
cg_vel[0] = 0.0;
cg_vel[1] = 0.0;
cg_vel[2] = 0.0;
cg_omega[0] = 0.0;
cg_omega[1] = 0.0;
cg_omega[2] = 0.0;
}
return;
}
DE HEART is offline   Reply With Quote

Old   January 12, 2010, 20:17
Default
  #2
New Member
 
Join Date: Nov 2009
Posts: 14
Rep Power: 17
thinktank is on a distinguished road
If you go through the UDF for dynamic meshing in the tutorial in the help documentation which comes along with FLuent, you will find that you have to use commands such as !RP_HOST !RP_NODE to prevent fluent from computing certain quantities on the host, when using parallel computing..

It is possible that the error you are getting is due to that, since I didnt see any such declaration in your UDF
Kent_Neo likes this.
thinktank is offline   Reply With Quote

Old   April 11, 2010, 06:45
Default
  #3
Member
 
Join Date: Sep 2009
Posts: 69
Rep Power: 17
DarrenC is on a distinguished road
Hi DE_HEART

I am encountering the same problem as well. My problem is a pitching airfoil problem and I use the same DEFINE_CG_MOTION udf as you do. The problem I highly suspect is a udf problem and not a mesh partition problem because I ran a steady state solution without the udf and it runs fine and give me a solution. Only when I turn my dynamic mesh on and use libudf that i get problems after a few iterations. Have you managed to find a solution to your problem?

Regards,
Darren
DarrenC is offline   Reply With Quote

Old   August 5, 2010, 10:54
Default update-dynamic-mesh failed. negative cell volume detected.
  #4
Member
 
ahmad
Join Date: Jul 2010
Posts: 57
Rep Power: 16
almostafa67 is on a distinguished road
hi dear all...
i have this problem as you;i changed time step from 0.0001 to 0.00001 but again this message showed up,could u help me out plz?
thank u in advance for any help provided
almostafa67 is offline   Reply With Quote

Old   August 5, 2010, 11:25
Default
  #5
New Member
 
jamie hong
Join Date: Jul 2010
Location: brunei
Posts: 19
Rep Power: 16
Robot is on a distinguished road
Dear Sir,

I'm having problem selecting few types of catalysts such as platinum-titanium oxide , platinum-silicon oxide and platinum-aluminium oxide as it is not available in the table . I had selected boundary conditions, then I selected "substrate" for zone name. When I click edit, there is no 3 types of catalysts listed in table. I also click the "porous zone" & "laminar zone" .I might not able to select any these 3 types of catalysts. Please guide me . Thanks you.
Robot is offline   Reply With Quote

Old   August 5, 2010, 11:51
Default
  #6
Member
 
ahmad
Join Date: Jul 2010
Posts: 57
Rep Power: 16
almostafa67 is on a distinguished road
dear robot
if those material flow in sth like a pipe and they r working fluid u can define it in the define...> material,u can define density,viscosity,etc
hope this helps u
almostafa67 is offline   Reply With Quote

Old   August 5, 2010, 22:20
Default
  #7
New Member
 
jamie hong
Join Date: Jul 2010
Location: brunei
Posts: 19
Rep Power: 16
Robot is on a distinguished road
Dear Sir,

My model is square shape, 2D , simple model .The pink colour represent the reaction between reactant(e.g.glycerol with steam) , with the product (e.g. as hydrogen , carbon monoxide & carbon dioxide). I had key in the reactants & the products already by selecting:

->define
->materials
:name the each reactants & products
-Selecting material type : mixture
-Fluent mixture material : mixture-template
-key in all the reactants & products in properties (mixture species : name)
-key in number of mole for each reactant & product in properties(reaction:finite rate)

All the reactants & products can be obtain from the fluent database.

The red one represent the catalyst. I need to create the catalysts (e.g platinum-titanium oxide , platinum-silicon oxide and platinum-aluminium oxide ) . How should I do it?

CAn I directly change the mesh size in the gambit file ,than convert to mesh file ,to be open in fluent software??
Robot is offline   Reply With Quote

Old   August 5, 2010, 23:07
Default
  #8
New Member
 
jamie hong
Join Date: Jul 2010
Location: brunei
Posts: 19
Rep Power: 16
Robot is on a distinguished road
Dear Sir,

My model is square shape, 2D , simple model .The pink colour represent the reaction between reactant(e.g.glycerol with steam) , with the product (e.g. as hydrogen , carbon monoxide & carbon dioxide). I had key in the reactants & the products already by selecting:

->define
->materials
:name the each reactants & products
-Selecting material type : mixture
-Fluent mixture material : mixture-template
-key in all the reactants & products in properties (mixture species : name)
-key in number of mole for each reactant & product in properties(reaction:finite rate)

All the reactants & products can be obtain from the fluent database.

The red one represent the catalyst. I need to create the catalysts (e.g platinum-titanium oxide , platinum-silicon oxide and platinum-aluminium oxide ) . How should I do it?

CAn I directly change the mesh size in the gambit file ,than convert to mesh file ,to be open in fluent software??
Robot is offline   Reply With Quote

Old   August 5, 2010, 23:13
Default
  #9
New Member
 
jamie hong
Join Date: Jul 2010
Location: brunei
Posts: 19
Rep Power: 16
Robot is on a distinguished road
Dear Sir,

Dear Sir,

My model is square shape, 2D , simple model .The pink colour represent the reaction between reactant(e.g.glycerol with steam) , with the product (e.g. as hydrogen , carbon monoxide & carbon dioxide). I had key in the reactants & the products already by selecting:

->define
->materials
:name the each reactants & products
-Selecting material type : mixture
-Fluent mixture material : mixture-template
-key in all the reactants & products in properties (mixture species : name)
-key in number of mole for each reactant & product in properties(reaction:finite rate)

All the reactants & products can be obtain from the fluent database.

The red one represent the catalyst. I need to create the catalysts (e.g platinum-titanium oxide , platinum-silicon oxide and platinum-aluminium oxide ) . How should I do it?

CAn I directly change the mesh size in the gambit file ,than convert to mesh file ,to be open in fluent software??
Robot is offline   Reply With Quote

Old   August 7, 2010, 03:52
Default catalysts
  #10
Member
 
ahmad
Join Date: Jul 2010
Posts: 57
Rep Power: 16
almostafa67 is on a distinguished road
dear robot...
i just found some information about catalysts in fluent tutorial docs;u can use the following function

int cat index
...sorry i'm not professional in this field and i can not help u more than this
almostafa67 is offline   Reply With Quote

Old   August 9, 2010, 21:29
Default
  #11
New Member
 
jamie hong
Join Date: Jul 2010
Location: brunei
Posts: 19
Rep Power: 16
Robot is on a distinguished road
Dear almostafa67,

can you let me know the e-mail address so I can locate the tutorial. I hope it is not the tutorial 7 entitle " Modeling flow through porous media" as this tutorial 7 do not have the example to guide me to key in all the catalysts (e.g platinum-titanium oxide, platinium-aluminium oxide and platinum-carbon) as these three catalysts that are needed for my model , was not available in the the fluent database. I hope you can send me the website. Your guidance & help is appreciate. Thanks you.
Robot is offline   Reply With Quote

Old   August 9, 2010, 23:03
Default
  #12
New Member
 
jamie hong
Join Date: Jul 2010
Location: brunei
Posts: 19
Rep Power: 16
Robot is on a distinguished road
Dear almostafa67,

Can you let me know the website, so I can download the assignment for my 2D model that this example can guide me to key in all the catalysts (e.g platinum-titanium oxide, platinium-aluminium oxide and platinum-carbon) as these three catalysts that are needed for my model , was not available in the the fluent database. Your cooperation is much appreciate. Thanks you.
Robot is offline   Reply With Quote

Old   August 10, 2010, 02:49
Default catalysts
  #13
Member
 
ahmad
Join Date: Jul 2010
Posts: 57
Rep Power: 16
almostafa67 is on a distinguished road
dear robot...
u can download fluent 12.0 tutorial or search in internet to find ur answer,as a starting point
http://www.cfd-online.com/Forums/cd-...sing-dars.html

regards
almostafa67 is offline   Reply With Quote

Old   August 10, 2010, 22:00
Default
  #14
New Member
 
jamie hong
Join Date: Jul 2010
Location: brunei
Posts: 19
Rep Power: 16
Robot is on a distinguished road
Dear almostafa67,

Should I key all the catalysts (e.g platinum-titanium oxide , platinum-aluminium oxide & platinum carbon) in the species "section" ? Hope to hear from you soon . Thanks you very much . I already download the Fluent Tutorial 12 already . hope to hera from you soon. thanks you.
Robot is offline   Reply With Quote

Old   August 11, 2010, 02:29
Default robot
  #15
Member
 
ahmad
Join Date: Jul 2010
Posts: 57
Rep Power: 16
almostafa67 is on a distinguished road
dear robot i sent u a private message yesterday:i'm new in this field and do not know how to enter catalyst's info in fluent;i wish i could help u
sorry

Last edited by almostafa67; August 11, 2010 at 04:02.
almostafa67 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
Dynamic Mesh UDF Qureshi FLUENT 7 March 23, 2017 08:37
UDF parallel error: chip-exec: function not found????? shankara.2 Fluent UDF and Scheme Programming 1 January 16, 2012 23:14
Dynamic mesh udf example avant FLUENT 2 September 16, 2005 02:24
Problem related with UDF for dynamic mesh Ryan FLUENT 1 April 16, 2004 07:05
A question about the dynamic mesh UDF Tango FLUENT 1 November 27, 2003 03:56


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