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

About how to apply boundary conditions read from a file

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 15, 2013, 20:48
Question About how to apply boundary conditions read from a file
  #1
New Member
 
Sang-jin Lee
Join Date: Dec 2013
Posts: 1
Rep Power: 0
sangjin lee is on a distinguished road
Hi everyone
I'm a novice Fluent user but have to do something impressive with Fluent UDF.

What I have to do is FSI analysis with Fluent. I have developed a customized structure solver which works with Fluent by exchanging boundary conditions.

Given a fluid model, after finishing Fluent analysis new force values of nodes on a given surface(FSI surface) should be extracted(node id, coordinates and force value for each node) and saved in a text file and then, structure solver starts to solve with the new force conditions and generates new displacement and velocity conditions for the same surface and saves them in a text file. Fluent, in turn, reads the file and apply them on the surface and starts to analyze to generate new force conditions. (I heard that in this case dynamic mesh should be applied.)

This is what I have to do. I've finished developing structure solver but stopped at interacting with Fluent. I want to get some UDF examples for extracting forces on each nodes to a file and applying displacement and velocity conditions for each node from a file. Can you give me comments or advices for the issue?
I'm lost and don't know where I should go.

Any comments or advices will be appreciated.
Thank you.

Last edited by sangjin lee; December 16, 2013 at 03:27.
sangjin lee is offline   Reply With Quote

Old   January 14, 2014, 06:57
Default
  #2
New Member
 
Andrew Hallow
Join Date: Jan 2014
Posts: 4
Rep Power: 12
AndyH is on a distinguished road
Quote:
Originally Posted by sangjin lee View Post
Hi everyone
I'm a novice Fluent user but have to do something impressive with Fluent UDF.

What I have to do is FSI analysis with Fluent. I have developed a customized structure solver which works with Fluent by exchanging boundary conditions.

Given a fluid model, after finishing Fluent analysis new force values of nodes on a given surface(FSI surface) should be extracted(node id, coordinates and force value for each node) and saved in a text file and then, structure solver starts to solve with the new force conditions and generates new displacement and velocity conditions for the same surface and saves them in a text file. Fluent, in turn, reads the file and apply them on the surface and starts to analyze to generate new force conditions. (I heard that in this case dynamic mesh should be applied.)

This is what I have to do. I've finished developing structure solver but stopped at interacting with Fluent. I want to get some UDF examples for extracting forces on each nodes to a file and applying displacement and velocity conditions for each node from a file. Can you give me comments or advices for the issue?
I'm lost and don't know where I should go.

Any comments or advices will be appreciated.
Thank you.
First of all, in Fluent, you can only obtain forces on faces (via pressure and directed face area). Thus, if you need the resultant force at a node on a surface, then you should loop over each adjacent face of that node, get the face force, and finally average them out.

That done, you can loop over all nodes of the surface, and write the following information to a file: node id (integer), resultant force (3 x real), current coordinates (3 x real). That information can then be readily passed on to the structural solver for a FEM solution of the displacement.

That should get you started. Let me know how it goes!
AndyH is offline   Reply With Quote

Reply

Tags
dynamic mesh, fsi, udf


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
[swak4Foam] swak4foam building problem GGerber OpenFOAM Community Contributions 54 April 24, 2015 17:02
Trouble compiling utilities using source-built OpenFOAM Artur OpenFOAM Programming & Development 14 October 29, 2013 11:59
An error has occurred in cfx5solve: volo87 CFX 5 June 14, 2013 18:44
[swak4Foam] build problem swak4Foam OF 2.2.0 mcathela OpenFOAM Community Contributions 14 April 23, 2013 14:59
ParaView Compilation jakaranda OpenFOAM Installation 3 October 27, 2008 12:46


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