Jump to content



Featured Articles

Check out the latest featured articles.

File Library

Check out the latest downloads available in the File Library.

New Article

Product Viscosity vs. Shear

Featured File

Vertical Tank Selection

New Blog Entry

Low Flow in Pipes- posted in Ankur's blog

1-st Order Differential Equation In Acm


This topic has been archived. This means that you cannot reply to this topic.
No replies to this topic
Share this topic:
| More

#1 Koranten

Koranten

    Brand New Member

  • Members
  • 1 posts

Posted 16 December 2008 - 02:39 AM

Hi everyone,

I am trying to solve a 1-st order differential equation in space with Aspen Custom Modeler and I am having a problem with my boundary condition.

Since my ODE is 1-st order, I should need only ONE boundary condition, for instance T(0)=100, but ACM tells me that my problem is underspecified by one fixed variable. It seems ACM needs a second boundary condition. I do not understand that.

For instance, I could solve my ODE using Excel by setting only T(0)=100 with explicit Euler method, so mathematically speaking, this is ok. I don't get it.

When I want to solve a 2-nd order ODE, I am typing two boundary conditions (one Dirichlet and one Neuman), this is ok, and this works.

So what is the problem with my 1-st order?

Here is the code, very simple, but underspecified by one fixed variable :

***

n as integerparameter (20);
L as realparameter;
z as LengthDomain(highestorderderivative:1,
length:L,spacingpreference:L/n);

T as Distribution1D(XDomain is z) of temperature;

T(0)=100;

T(z.interior).ddx = 1;

End

***

Could someone help me?

Thanks a lot smile.gif






Similar Topics