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

Problem with moving mesh and species transfer

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 18, 2020, 07:11
Default Problem with moving mesh and species transfer
  #1
New Member
 
Join Date: Apr 2019
Posts: 28
Rep Power: 7
ana86 is on a distinguished road
Hello,



I have a problem with using dynamic mesh and species transport at the same time.

When I run a simulation without species transport, my mesh moves, but when I enable the species transport model fluent crashes. Can anybody help me with this problem?

For the dynamic mesh motion I used the example from the udf-guide.


Thank you :-)
ana86 is offline   Reply With Quote

Old   February 18, 2020, 07:59
Default Other way around?
  #2
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,946
Blog Entries: 1
Rep Power: 35
vinerm will become famous soon enough
Does the simulation work the other way around, i.e., if you enable species transport but not the dynamic mesh?

It is possible that the species transport setup has a problem.

Furthermore, if you are using a UDF from an example, ensure that it is compatible with the species transport model. Usually, a dynamic mesh UDF has got nothing to do with a species or material properties but in case the UDF accesses any such parameter, then it would require little modifications.
__________________
Regards,
Vinerm

PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority.
vinerm is offline   Reply With Quote

Old   February 18, 2020, 08:08
Default
  #3
New Member
 
Join Date: Apr 2019
Posts: 28
Rep Power: 7
ana86 is on a distinguished road
Yes, I tried to run only the species transport, and it also works fine.

I just tried a very simple udf. The mesh is moving only in x-direction with

NODE_X(v) += 1.0e-8;


So it is independent from species transport, and I thought I can use both at the same time, because there is no coupling, or something like that...
But maybe I have to enable something in fluent, or I have to include some *.h files, but I don't know...
ana86 is offline   Reply With Quote

Old   February 18, 2020, 08:52
Default Udf
  #4
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,946
Blog Entries: 1
Rep Power: 35
vinerm will become famous soon enough
Is that the complete UDF source? You need to include udf.h. Furthermore, NODE_X does not provide motion. It returns position of the node.
__________________
Regards,
Vinerm

PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority.
vinerm is offline   Reply With Quote

Old   February 18, 2020, 09:04
Default
  #5
New Member
 
Join Date: Apr 2019
Posts: 28
Rep Power: 7
ana86 is on a distinguished road
No, this is not the complete udf.



It is what I wrote in the f_node_loop.

The udf works fine, if I don't use the species transport.

For other fluent cases I also use udfs for moving mesh, and I don't have any problems, if I don't use species transport...

And as I said, I also tried the udf from the udf-user-guide for the grid motion. Without species it works fine...
ana86 is offline   Reply With Quote

Old   February 18, 2020, 11:48
Default Dynamic mesh and species transport
  #6
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,946
Blog Entries: 1
Rep Power: 35
vinerm will become famous soon enough
There's no compatibility issues between dynamic mesh and species transport. However, sometimes the order matters. Does the successfully running dynamic mesh case has species transport enabled but equations disabled for solving or does it not have species transport enabled at all and when the species transport is enabled, Fluent crashes?
__________________
Regards,
Vinerm

PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority.
vinerm is offline   Reply With Quote

Old   February 18, 2020, 14:42
Default Debugging
  #7
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,946
Blog Entries: 1
Rep Power: 35
vinerm will become famous soon enough
I'd recommend using dynamic mesh without the UDF for debugging the case. Enable species transport and dynamic mesh but use a profile instead of a UDF for the motion. Profile format for dynamic mesh is simple; similar to a transient file except the names for the variables are hard coded. So, for velocity along x-coordinate, use v_x. If this works, then, most likely, the issue is with the UDF.
__________________
Regards,
Vinerm

PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority.
vinerm is offline   Reply With Quote

Old   February 18, 2020, 23:42
Default
  #8
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
Quote:
Originally Posted by ana86 View Post
No, this is not the complete udf.



It is what I wrote in the f_node_loop.

The udf works fine, if I don't use the species transport.

For other fluent cases I also use udfs for moving mesh, and I don't have any problems, if I don't use species transport...

And as I said, I also tried the udf from the udf-user-guide for the grid motion. Without species it works fine...
it means problem is in your species transport settings, isn't it?
__________________
best regards


******************************
press LIKE if this message was helpful
AlexanderZ is offline   Reply With Quote

Old   February 19, 2020, 01:06
Default
  #9
New Member
 
Join Date: Apr 2019
Posts: 28
Rep Power: 7
ana86 is on a distinguished road
Quote:
Originally Posted by vinerm View Post
I'd recommend using dynamic mesh without the UDF for debugging the case. Enable species transport and dynamic mesh but use a profile instead of a UDF for the motion. Profile format for dynamic mesh is simple; similar to a transient file except the names for the variables are hard coded. So, for velocity along x-coordinate, use v_x. If this works, then, most likely, the issue is with the UDF.

Thank you, I will try this
ana86 is offline   Reply With Quote

Old   February 19, 2020, 01:09
Default
  #10
New Member
 
Join Date: Apr 2019
Posts: 28
Rep Power: 7
ana86 is on a distinguished road
Quote:
Originally Posted by AlexanderZ View Post
it means problem is in your species transport settings, isn't it?

I think, the problem is in the species transport setting, but I don't know... I can run a case with only moving mesh, and a case with only species transport, but I can't run a case with both together...
ana86 is offline   Reply With Quote

Old   February 19, 2020, 03:25
Default Code
  #11
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,946
Blog Entries: 1
Rep Power: 35
vinerm will become famous soon enough
If there is nothing proprietary in the code, I'd recommend you share it in full and we can have a look. Having a problem in Species transport is a possibility but if it runs without dynamic or moving mesh, it should run with it as well until unless there is a conflict. And that seems to be the reason here.
__________________
Regards,
Vinerm

PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority.
vinerm is offline   Reply With Quote

Old   February 25, 2020, 08:20
Default
  #12
New Member
 
Join Date: Apr 2019
Posts: 28
Rep Power: 7
ana86 is on a distinguished road
Now I solved the problem. I reset the fluent case and startet over. Now I can run the simulation with species transport and moving mesh.



Thank you for your help!
ana86 is offline   Reply With Quote

Old   February 25, 2020, 08:25
Default Good
  #13
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,946
Blog Entries: 1
Rep Power: 35
vinerm will become famous soon enough
Nice to know that it works now. Good experience, I suppose.
__________________
Regards,
Vinerm

PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority.
vinerm 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 & Negative volume in 3D mahzironrazak FLUENT 97 December 28, 2020 22:09
How can I solve the mesh dependancy problem? amirlachraf Mesh Generation & Pre-Processing 1 July 20, 2019 01:57
How can I solve the mesh dependancy problem? amirlachraf FLUENT 0 June 16, 2019 03:59
Mesh, Solutions, Model, results doneatlast FLUENT 0 March 12, 2014 16:18
Dynamic Mesh moving interface help akash.iitb FLUENT 0 August 23, 2010 23:53


All times are GMT -4. The time now is 00:23.