-
-
March 18, 2021 at 8:56 am
tpsagaro
SubscriberHi,
Sure I'm missing something. The purpose is to use a scalar (UDS) with a source term that depends on the horizontal coordinate X (no convection, no diffusion). As a test, I have written the following source term that once compiled generates a non-continuous output showing a staircase behavior at fixed intervals of 1 m. I expected a continuous behavior so I do not know what is wrong here.
#include "udf.h"
DEFINE_SOURCE(source_test,c,t,dS,eqn)
{
real x[ND_ND];
real source;
{
source = x[0];
dS[eqn] = 0.;
}
return source;
}
March 18, 2021 at 11:27 amtpsagaro
SubscriberSolved:nThere should be a:nC_CENTROID(x,c,t); nbelow the: real source; linenAnd initialize the case.nMarch 18, 2021 at 1:11 pmKarthik R
AdministratorGlad you were able to resolve. Thank you for posting the answer.nKarthiknViewing 2 reply threads- You must be logged in to reply to this topic.
Ansys Innovation SpaceEarth 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.
Ansys Blog
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
- Floating point exception in Fluent
- What are the differences between CFX and Fluent?
- Heat transfer coefficient
- Getting graph and tabular data from result in workbench mechanical
- The solver failed with a non-zero exit code of : 2
- Difference between K-epsilon and K-omega Turbulence Model
- Time Step Size and Courant Number
- Mesh Interfaces in ANSYS FLUENT
- error in cfd post
Top Contributors-
2688
-
2130
-
1349
-
1136
-
461
Top Rated Tags© 2023 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.
-