|
[Sponsors] |
July 8, 2016, 06:11 |
Access data of different phases
|
#1 |
New Member
Julian Zoller
Join Date: Jun 2016
Posts: 4
Rep Power: 10 |
Hi,
i´m trying to model flow through non-equilibrium porous media. How can i get the temperature of the fluid and the solid cell zone in this model? I tryed the following UDF but it causes an fatal error. Please help me. #include "udf.h" DEFINE_ADJUST(Get_solid_Temperature,mixture_domain ) { int Domain_ID_solid=2; /* From Cell Zone Conditions Task Page */ int Thread_ID_solid=3; /* From Boundary Conditions Task Page */ Domain *d_solid=Get_Domain(Domain_ID_solid); /* returned Domain-Pointer */ Thread *t_solid=Lookup_Thread(d_solid,Thread_ID_solid); /* returned Thread-Pointer */ cell_t c; begin_c_loop(c,t_solid){ C_UDMI(c,t_solid,0)=C_T(c,t_solid); }end_c_loop(c,t_solid) } |
|
Tags |
data access, multiphase, porous media, temperature |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Run OpenFoam in 2 nodes of a cluster | WhiteW | OpenFOAM Running, Solving & CFD | 16 | December 20, 2016 01:51 |
multiphaseEulerFoam: PtrDictionary<phaseModel> phases_ of multiphasesystem fluid | maybee | OpenFOAM Programming & Development | 9 | January 27, 2014 07:24 |
Near-wall node data access | Silmaril | CFX | 3 | March 8, 2012 23:17 |
access cell data | SePe | OpenFOAM Post-Processing | 4 | December 7, 2011 11:47 |
How to update polyPatchbs localPoints | liu | OpenFOAM Running, Solving & CFD | 6 | December 30, 2005 18:27 |