When trying to implement define_dpm_switch udf in ansys fluent above line is throwing an erro
It is showing error: expression is not assignable.
Please can you help me in rectifying it
That’s the macro for species mass source from the DPM parcel. How are you planning on altering it? You may be able to augment it using a UDF. Don’t forget to remove more DPM mass if you do!
It is the same udf what is present in udf manual I am trying to implement.
The below mentioned lines are working without throwing any error
C_DPMS_ENERGY(c,t) -= mp_dot*dpm_relax*MATERIAL_PROP(sp,PROP_Cp)*(C_T(c,t)-298.15); C_DPMS_ENERGY(c,t) -= mp_dot*dpm_relax*MATERIAL_PROP(sp,PROP_latent_heat);
And I dont understand why C_DPMS_YI(c,t,0) += mp_dot*dpm_relax; is stating not assignable
OK, I assume species are turned on?
Yes ofcourse and vapor has index 0
Read to the bottom of the table on the link I sent - search for C_DPMS_YI on the page & then scroll down for the "Note".
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.
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.
© 2022 Copyright ANSYS, Inc. All rights reserved.
Please Login to Report Topic
Please Login to Share Feed