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

temperature data of symetry plane (symetric BC)

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 28, 2018, 07:36
Default temperature data of symetry plane (symetric BC)
  #1
New Member
 
christoph irrenfried
Join Date: Feb 2014
Posts: 8
Rep Power: 12
chi86 is on a distinguished road
Hi,
I would like to write the temperature distribution of the symetric plane used for the symetric boundary condition to a file. Fluent employes the boundary condition as volume. My UDF looks like this:


Code:
        d = Get_Domain(1);
        t = Lookup_Thread(d, 145);
        size=THREAD_N_ELEMENTS_INT(t);

        array = (real *)malloc(4* size * sizeof(real)); 



        begin_c_loop_int(c, t)
          {
            C_CENTROID(position, c, t);
            vol = C_VOLUME(c,t);

            temp = C_T(c, t);

            x = position[0];
            y = position[1];
            z = position[2];

            array[c]= x;
            array[c+size]= y;
            array[c+size*2]= z;
            /* array[c+size*3]= temp; */
          }
        end_c_loop_int(c, t)
just the coordinates work but as soon as I print the temperature it crashes.. Any idears?


Thanks
chi86 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
[OpenFOAM] How to get the coordinates of velocity data at all cells and at all times vidyadhar ParaView 9 May 20, 2020 20:06
Sampling data over a plane harsha_kulkarni OpenFOAM Post-Processing 0 March 11, 2017 22:32
[General] 2 datas on one plot Akuji ParaView 46 December 1, 2013 14:06
Possible Bug in pimpleFoam (or createPatch) (or fluent3DMeshToFoam) cfdonline2mohsen OpenFOAM 3 October 21, 2013 09:28
chtMultiRegionFoam - exchange data between flow field and temperature phsieh2005 OpenFOAM Running, Solving & CFD 0 February 7, 2012 09:16


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