Fluids

Fluids

UDF: edge length of a mesh cell

    • Bibill
      Subscriber
      Dear all,nnIs it possible to access the edge length of a mesh cell in a UDF ? In other words, i want to determine (dx,dy,dz) for each cell of the mesh.nnThanks in advance!n
    • Rob
      Ansys Employee
      Yes and no. The cell, facet and node data is available but you'd need to then figure out the dimensions. n
    • YasserSelima
      Subscriber
      F_AREA(A,f,t) nThis macro returns the face area vector ... A[0] , A[1], A[2] in the x, y, anz z direction ...nNV_MAG(A) would give you the magnitude of the above vectornnIf you are in a cell and want to loop over the faces, use c_face_loopnAlso search the manual for C_FACE and C_FACE_THREAD ... if you want to access data on the cell facesn
Viewing 2 reply threads
  • You must be logged in to reply to this topic.