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

vibration UDF problems

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 13, 2017, 17:22
Default vibration UDF problems
  #1
New Member
 
jingguo fu
Join Date: Sep 2017
Posts: 2
Rep Power: 0
jingguo is on a distinguished road
Hi, everyone,

I am new to CFD and this forum. I am trying to use Fluent to simulate the vibration wall. It is a reciprocating movement.

At first, i use DEFINE_CG_MOTION macro to simulate the entie wall's reciprocating movement. and it works. But, later, when i use the DEFINE_PROFILE to define the wall's different vibration amplitude along the wall and use the DEFINE_CG_MOTION to simulate the wall's reciprocating movement. The UDF didnot work anymore.

so, i want to ask if there is some problems with my UDF or I used improper macros? if so, what should i do?

attachment is the UDF that i was write.
Attached Files
File Type: c amplitude.c (665 Bytes, 22 views)
jingguo is offline   Reply With Quote

Old   September 13, 2017, 22:58
Default
  #2
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
Hello!

Frankly speaking, I didn't use mesh motion. But it seems to me, that you are trying to move nodes of the same boundary to the different distances.

Could it be the problem?

Best regards
AlexanderZ is offline   Reply With Quote

Old   September 14, 2017, 00:01
Default
  #3
New Member
 
jingguo fu
Join Date: Sep 2017
Posts: 2
Rep Power: 0
jingguo is on a distinguished road
Quote:
Originally Posted by AlexanderZ View Post
Hello!

Frankly speaking, I didn't use mesh motion. But it seems to me, that you are trying to move nodes of the same boundary to the different distances.

Could it be the problem?

Best regards
Thanks for you reply.
yes. i want to move nodes of the same wall to different distances.
You mean i can you mesh motion to solve This problem?

Best Regards.
jingguo is offline   Reply With Quote

Old   September 14, 2017, 03:27
Default
  #4
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
I mean, that it looks like it is impossible to move nodes of the same boundary on different distances.
If you have a wall with 3 nodes (for example) A-B-C -> you can't move A on +1; B on -1 and C on +0.1.

On the other hand you may translate A-B-C nodes to +1, or rotate them on the same angle.

However, this is my vision, may be I'm wrong. I think you should check it.

Best regards.
AlexanderZ 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
How to solve UDF compilation problems in Fluent. pakk Fluent UDF and Scheme Programming 16 September 10, 2018 03:48
Windows Environment variables- to solve problems in compiling UDF in Fluent Modest Cat Fluent UDF and Scheme Programming 39 May 18, 2016 11:33
UDF problems with porous flow Nicolastheterminator Fluent UDF and Scheme Programming 0 April 8, 2014 10:12
Problems with interpolating UDF Topspin Fluent UDF and Scheme Programming 1 March 30, 2014 23:23
problems with UDF to set contact angle poiuy219 Main CFD Forum 0 April 30, 2009 11:43


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