Defining a quantity described by diff... Log Out | Topics | Search
Moderators | Register | Edit Profile

FlexPDE User's Forum » User Postings » Defining a quantity described by different functions « Previous Next »

Author Message
Top of pagePrevious messageNext messageBottom of page Link to this message

Ramki raman (greenoaks)
New member
Username: greenoaks

Post Number: 1
Registered: 05-2005
Posted on Tuesday, May 31, 2005 - 10:03 pm:   

I am simulating laser heating and would like to incorporate materials properties that vary with temperature. One such case is when a material has a laser absorption coefficient a1 below temperature T1 and another different one, a2, above T1. How can this be incorporated?
Thanks
RK
Top of pagePrevious messageNext messageBottom of page Link to this message

Robert G. Nelson (rgnelson)
Moderator
Username: rgnelson

Post Number: 370
Registered: 06-2003
Posted on Wednesday, June 01, 2005 - 01:22 am:   

As you will see from the documentation and examples, material parameters can be defined by any arithmetic expression or cascade of definitions which the mind of man can conceive, including table lookups.

You could, for example, define
A = if Temp < T1 then A1 else A2

This would NOT be a good idea.

FlexPDE controls the timestep by watching the smoothness of the variables in time. Discontinuous parameter values introduce high frequency components into the solution, causing instabilities and slow integration.

You should always program a continuous function with a transition width that is reasonable in the context of the current problem.

The built-in functions SWAGE and RAMP (see the Help index) allow you to define a "fuzzy IF" that is much better behaved.

Other mathematical expressions, like ARCTAN, could be used to achieve the same effect.

Alternatively, you could define a table of absorption coefficients that jumps from A1 to A2 over some sensible temperature difference.

Add Your Message Here
Post:
Username: Posting Information:
This is a private posting area. Only registered users and moderators may post messages here.
Password:
Options: Enable HTML code in message
Automatically activate URLs in message
Action:

Topics | Last Day | Last Week | Tree View | Search | Help/Instructions | Program Credits Administration