CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   Main CFD Forum (http://www.cfd-online.com/Forums/main/)
-   -   Imposing Summation Constraints (http://www.cfd-online.com/Forums/main/631-imposing-summation-constraints.html)

Darin S. Viehe March 11, 1999 22:49

Imposing Summation Constraints
 
I am currently attempting to implement automatic edge meshing using a hyperbolic tangental function, (ie: Y=a*tanh(X)+b, where Y=spacing along X) By using X(1),X(N),Y(1),Y(N) as boundary conditions the routine I have works fine. The problem is that I need to add the constraint: sum(Y)=X(N)-X(1). Any Suggestions on how to accomplish this? My feelings at this point are that an iterative method should be used.


All times are GMT -4. The time now is 12:15.