CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

2D looping over cells or faces

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Search this Thread Display Modes
Old   November 17, 2012, 15:28
Question 2D looping over cells or faces
Join Date: Jul 2011
Location: My home :)
Posts: 81
Rep Power: 14
villager is on a distinguished road
1) I can't loop over cells or faces in 2D Fluent Case. Is it possible?

In this example, program works until line "begin_f_loop", where error happens: segmentation fault.

If it is important, I use parallel udf (lnamd64 arch).

#include "udf.h"

Domain *domain;
domain = Get_Domain(1);
face_t f;
Thread * f_thread;
thread_loop_f(f_thread, domain) /*loops over all face threads in domain*/
    Message("f_thread %d\n",*f_thread);

    begin_f_loop(f, f_thread)
    end_f_loop(f, f_thread)

2) I need to change net molar reaction rates in fluid zone, DEFINE_NET_REACTION_RATE doesn't provide possibility to get net rates just to change them m-times (I need smth like that: rr[i]=rr[i]*m). Is there any way to access net rates, calculated by FLUENT and to modify them?
villager is offline   Reply With Quote


2d case, begin_f_loop, define_net_reaction_rate, parallel, udf

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
AMI speed performance danny123 OpenFOAM 20 April 10, 2020 05:51
polyDualMesh results in non-planar faces and non-convex cells tomislav_maric OpenFOAM Running, Solving & CFD 4 September 13, 2012 10:32
[Commercial meshers] Converting a mesh with splitted cells using fluentMeshToFoam jlpelerin OpenFOAM Meshing & Mesh Conversion 4 April 25, 2011 16:56
[snappyHexMesh] snappyHexMesh won't work - zeros everywhere! sc298 OpenFOAM Meshing & Mesh Conversion 2 March 27, 2011 21:11
Mesh to points cells faces and boundaries files billy OpenFOAM Pre-Processing 19 April 18, 2006 15:38

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