How to plot velocity with respect to z-coordinate of centroid of each face in a thread ( for a udf)?
September 29, 2020 at 1:14 pmVaiju1997Subscriber
I wrote the following snippet in order to obtain a power law velocity profile for my inlet BC. The z is the z co-ordinate and while I was able to interpret and hook the UDF, as soon as start calculating the velocity, the continuity and all 3 velocities remain zero in residuals and only k & w are iterating.
My main aim is to do for transient k-w SST simulations but I also switched to steady just to check but it didn't work (velocity remains zero). Pls enlighten me as I am new to UDF.
Another I would want to know is how to plot velocity vs z-coordinate while calculating solution
pls see the attachments. The attachment shows the plots that I am getting for c_d and values for x-velocity, y - velocity and z - velocity
real coord[ND_ND]; /* this will hold the position vector */
begin_f_loop(f,thread) /* loops over all faces in the thread passed
in the DEFINE macro argument */
F_PROFILE(f,thread,index)= 80.6715 * pow(z/323, 0.3584);
Please help me out where I am going wrong.September 30, 2020 at 1:47 amKarthik RAdministratorHello,nWere you able to compile the UDF without any errors?nAlso, are you seeing the correct values if you use the fprintf statement? Could you please use these statement to see if the code is working as it is supposed to be?nThanks.nKarthiknViewing 1 reply thread
Ansys Innovation Space
- You must be logged in to reply to this topic.
Simulation World 2022
Check out more than 70 different sessions now available on demand. Get inspired as you hear from visionary companies, leading researchers and educators from around the globe on a variety of topics from life-saving improvements in healthcare, to bold new realities of space travel. Take a leap of certainty and check out a session today here.
Earth Rescue – An Ansys Online Series
The climate crisis is here. But so is the human ingenuity to fight it. Earth Rescue reveals what visionary companies are doing today to engineer radical new ideas in the fight against climate change. Click here to watch the first episode.
Subscribe to the Ansys Blog to get great new content about the power of simulation delivered right to your email on a weekly basis. With content from Ansys experts, partners and customers you will learn about product development advances, thought leadership and trends and tips to better use Ansys tools. Sign up here.Trending discussions
- Suppress Fluent to open with GUI while performing in journal file
- Heat transfer coefficient
- What are the differences between CFX and Fluent?
- Floating point exception in Fluent
- The solver failed with a non-zero exit code of : 2
- Difference between K-epsilon and K-omega Turbulence Model
- Getting graph and tabular data from result in workbench mechanical
- Time Step Size and Courant Number
- Mesh Interfaces in ANSYS FLUENT
- error in cfd post
Top Rated Tags
© 2022 Copyright ANSYS, Inc. All rights reserved.Ansys does not support the usage of unauthorized Ansys software. Please visit www.ansys.com to obtain an official distribution.