CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   CFX (http://www.cfd-online.com/Forums/cfx/)
-   -   Creating ew material's properties. (http://www.cfd-online.com/Forums/cfx/92578-creating-ew-materials-properties.html)

 foo7 September 19, 2011 05:20

Creating ew material's properties.

Hello there.

Well, I'd like to know if it is possible to add new material properties, created by myself.

Thanks!

 ghorrocks September 19, 2011 06:14

Yes. Duplicate an existing material in the tree and edit it.

 foo7 September 19, 2011 07:00

Sorry, I guess I didn't make myseof clear. What I want is to create a new property for all materials. In a way that I could call it within CEL. For example, I would create a property called PROPERTY_x, açd within CEO I would be able to write: Fluid 1.PROPERTY_x

 ghorrocks September 19, 2011 07:36

You cannot do this.

What is the property you wish to add?

 foo7 September 19, 2011 07:47

I'm trying to simulate a gas mixture, formed by a few different gas components.
Each component's heat capacity is modeled by the following equation: a + b*T +c*T^2. In which T is the gas phase temperature and a,b and c are coefficients which vary from component to component.

So to have all the components heat capacity calculated I'd have to write the equation for each one of them. What I would like to do is create a set of material properties in which I could store the values of the parameters a,b, and c. And then call them in CEL. This way I would only need to write the equation once.

 ghorrocks September 19, 2011 08:00

Sorry, you cannot do this in CEL.

I would simply put the equation a+b*T+c*T^2 in as the heat capacity for each component, with the parameters substituted for a, b and c. Not very elegant but simple and CEL can handle it.

Also this sort of update is easier to do in the expression editor rather than the CFX-Pre GUI. That way you can easily copy and paste sections of CCL and CEL rather than zillions of clicks.

 All times are GMT -4. The time now is 17:44.