亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? optexp.f

?? 對工業(yè)生產(chǎn)過程結(jié)晶過程的一個仿真程序軟件包
?? F
?? 第 1 頁 / 共 2 頁
字號:
* Copyright c 1998-2002 The Board of Trustees of the University of Illinois
* 		  All rights reserved.
* Developed by:	Large Scale Systems Research Laboratory
*               Professor Richard Braatz, Director*               Department of Chemical Engineering*		University of Illinois
*		http://brahms.scs.uiuc.edu
* 
* Permission hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal with the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the 
* Software is furnished to do so, subject to the following conditions:
* 		1. Redistributions of source code must retain the above copyright
*		   notice, this list of conditions and the following disclaimers.
*		2. Redistributions in binary form must reproduce the above 
*		   copyright notice, this list of conditions and the following 
*		   disclaimers in the documentation and/or other materials 
*		   provided with the distribution.
*		3. Neither the names of Large Scale Research Systems Laboratory,
*		   University of Illinois, nor the names of its contributors may
*		   be used to endorse or promote products derived from this 
*		   Software without specific prior written permission.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 
* THE CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
* DEALINGS IN THE SOFTWARE.
*
*	optexp.f
*	
*
*	This program calculates the temperature profile and
*	initial seed distribution for optimizing the experimental 
*	design.  The temperature profile is formed by piecewise 
*	linear trajectories (see the subroutine Temp).  The 
*	following parameters (in the given subroutine) should be 
*	set to the number of discretizations:
*
*		Subroutine/Program	Parameter
*		------------------	---------
*		Main			ntemp
*		FCN			Ntemp1
*		cntr			Ntemp2
*		Temp			Ntemp3 
*
*	The initial seed distribution is characterized by the
*	total mass, mean size, and width of the distribution.
*
*	Parameter inputs are "best guesses" for the growth and 
*       nucleation kinetic parameters (g, kg, b, and kb)
*
*	The optimization problem is solved using the sequential
*       quadratic program subroutine FFSQP by Jian L. Zhou, Andre L. 
*	Tits, and C.T. Lawrence.  FFSQP and the attached subroutines
*	are included.
*	
*
*       Date:    July 6, 1998
*       Authors: Serena H. Chung and Richard D. Braatz
*	Modified:March 20, 2000
*	By:      David L. Ma and Richard D. Braatz
*                Department of Chemical Engineering
*                University of Illinois at Urbana-Champaign
*
************************************************************************
*      PROGRAM MAIN
	 use MSIMSL

*	The main program initializes the variables used by the
*	FFSQP subroutine.  Explanation of the variables is given 
*	in the FFSQP subroutine, except ntemp, which is the number of
*	temperature discretizations.  After initialization the program
*	calls the FFSQP subroutine to solve the nonlinear constrained 
*	optimization problem which computes the experimental design.

      INTEGER nparam, nf, nineqn, nineq, neqn, neq, iwsize, nwsize
      INTEGER mode, iprint,miter
      INTEGER inform, ntemp
      PARAMETER(ntemp = 8, nparam=ntemp+3,nf=1, 
     &		nineq=1, neq=0)
      PARAMETER(mode=100,miter=10000)
      PARAMETER(iwsize=6*nparam+8*(nineq+neq)+7*(nf)+30) 
      PARAMETER(nwsize=4*nparam**2+5*(nineq+neq)*nparam+
     &		3*(nf)*nparam+
     &		26*(nparam+nf)+45*(nineq+neq)+100) 
      INTEGER iw(iwsize)
      INTEGER I
      REAL*8 bigbnd, eps, epseqn, udelta
      REAL*8 x(nparam), bl(nparam), bu(nparam)
      REAL*8 f(nf),g1(nineq+neq),w(nwsize)
	REAL*8 g,kg,b,kb
      REAL*8 scale(nparam)
      EXTERNAL FCN,cntr,grobfd,grcnfd
	COMMON /GROWTH_DATA/kg, g
      COMMON /BIRTH_DATA/kb, b

      bigbnd=1.0D12
      eps=1.0D-4
      epseqn=0.0D0
      udelta=0.0D0
      iprint=3
      nineqn=0
      neqn=0

* Initial guess:
* x(1) to x(ntemp) are the slopes of the linear pieces for the
* the temperature profile.  x(ntemp+1) is the total mass of seed
* in grams. x(ntemp+2) is the first moment of the seed distribution 
* in micron/g solvent.  x(ntemp+3) is the width (in microns) of the 
* domain of the crystal size distribution function.

*      x(1) = -1.0000000000000D-01
*      x(2) =  2.6636175466309D-33
*      x(3) = -1.0000000000000D-01
*      x(4) = -1.0000000000000D-01
*      x(5) = -1.0000000000000D-01
*      x(6) = -1.0000000000000D-01
*      x(7) = 4.0325592487296D-34
*      x(8) = 4.0325592487296D-34
*      x(9) = 5.0D0
*      x(10) = 600.0D0
*      x(11) = 95.0D0


      x(1) =-0.1D0
      x(2) =-0.1D0
      x(3) =-0.1D0
      x(4) =-0.1D0
      x(5) =-0.1D-8
      x(6) =-0.1D-8
      x(7) =-0.1D0
      x(8) =-0.1D-8
      x(9) = 5.0D0
      x(10) = 600.0D0
      x(11) = 95.0D0

*	Read g, kg, b, kb  
	OPEN(UNIT=20, FILE='param.dat', FORM='FORMATTED',
     &     ACCESS='SEQUENTIAL', STATUS='OLD')
	READ(20,*)g
	READ(20,*)kg
	READ(20,*)b
	READ(20,*)kb
	CLOSE(UNIT=20)
	kg=DEXP(kg)
	kb=DEXP(kb)
	

	
*Scaling factors for the parameters

      DO 202 I = 1, ntemp
202	scale(I)=1.0D0
        scale(ntemp+1)=1.0D-3
        scale(ntemp+2)=1.0D-3
        scale(ntemp+3)=1.0D0

      DO 201 I = 1, nparam
201	x(I)=scale(I)*x(I)


* Lower bound for the parameter:
      DO 666 I = 1, ntemp
666	bl(I)=-0.5D0
*	bl(I)=-0.1D0
      bl(ntemp+1)=5.0D0*scale(ntemp+1)
      bl(ntemp+2)=5.0D0*scale(ntemp+2)
      bl(ntemp+3)=5.0D0*scale(ntemp+3)

* Upper bound for the parameters:
      DO 667 I = 1, ntemp
667	bu(I)=-1.0D-9
      bu(ntemp+1)=110000.0D0*scale(ntemp+1)
      bu(ntemp+2)=600.0D0*scale(ntemp+2)
      bu(ntemp+3)=95.0D0*scale(ntemp+3)

      call FFSQP(nparam,nf,nineqn,nineq,neqn,neq,mode,iprint,
     *           miter,inform,bigbnd,eps,epseqn,udelta,bl,bu,x,f,g1,
     *           iw,iwsize,w,nwsize,FCN,cntr,grobfd,grcnfd)


	OPEN(UNIT=20, FILE='slope.dat', FORM='FORMATTED',
     &     ACCESS='SEQUENTIAL', STATUS='UNKNOWN')

      PRINT*,'Final Solution'
      DO I = 1, nparam 
      	PRINT*,x(I)/scale(I)
	    WRITE(20,700)x(I)/scale(I)
	ENDDO
700	FORMAT(E27.16)
      PRINT*,'objective = ', f


	CLOSE(UNIT=20)
	


      STOP
      END

******************************************************************
      SUBROUTINE FCN(Nvar,jjj,x,fj)
      INTEGER Nvar,jjj,Ntemp1	
      PARAMETER (Ntemp1=8)
      REAL*8 x(*), fj
      REAL*8 Coeff(Ntemp1+3)
      INTEGER NSTEP, NEQ, MXPARM, NTHETA, NU
      PARAMETER (NSTEP=161,NEQ=33,MXPARM=50,NTHETA=4, NU=6)
      INTEGER I, J, K, M, N
      INTEGER Norder, LDA, LDB, IPATH
      PARAMETER(Norder=3, LDA=3, LDB=3,IPATH=1)
      REAL*8 T, Y(NEQ)
      REAL*8 F(NU*(NSTEP-1), NTHETA)
      REAL*8 FTVF(NTHETA, NTHETA)
      REAL*8 FTV(NTHETA,NU*(NSTEP-1))
      REAL*8 delt, tfinal, Msolv
      REAL*8 mu00
      REAL*8 cell_length, kv, ka, densityc, densitys
      REAL*8 r0, alpha, g, kg, b, kb
      REAL*8 moment0(NSTEP), moment1(NSTEP), moment2(NSTEP)
      REAL*8 moment3(NSTEP), moment4(NSTEP)
      REAL*8 time (NSTEP), concentration(NSTEP), seed_moment1(NSTEP)
      REAL*8 seed_moment2(NSTEP), seed_moment3(NSTEP)
      REAL*8 temperature(NSTEP), relsatn(NSTEP)
      REAL*8 Temp, Csat, detFTVF
      REAL*8 derivtheta(NSTEP,NU,NTHETA)
      REAL*8 conc_variance, mu0_variance, mu1_variance
      REAL*8 mu3_variance, mu4_variance, mu2_variance
      REAL*8 AA(3,3), BB(3), gamma1(3), lmin, lmax


*lsodes' parameters
      
      INTEGER itol, iopt, itask, istate, mf
      INTEGER lrw, liw, iwork(900)
      REAL*8  rtol, atol, rwork(5000)    

      EXTERNAL MOMENTS, MOMENTSJ
      COMMON /GROWTH_DATA/kg, g
      COMMON /BIRTH_DATA/kb, b 
      COMMON /EXP_DATA/r0, alpha, mu00
      COMMON Coeff

      DO 628 I = 1, Nvar
         Coeff(I)=X(I)
628   CONTINUE


*	print*, "in Fcn"


*Simulation parameters
*     controller time step in minutes
      delt = 1.0D0
*     final time in minutes
      tfinal = DFLOAT(NSTEP)*delt

*Parameters for experimental set-up
*     cell length for spectrophotometer in millimeter
*     This was modified from that in Miller's thesis because
*     his value (2.0) did not agree with his simulation results
      cell_length=1.77D0
*     mass of solvent in grams, converted from 2000 gallons
      Msolv=7.57D6
*     volume shape factor (Appendix C in Miller)
      kv=1.0D0
*     area shape factor (Appendix C in Miller)
      ka=6.0D0
*     heat transfer coefficient multiplied by surface area
*     in calorie/minute/degree C 
*     density of solvent in g/cm^3 (solvent is water)
      densitys=1.0D0
*     density of crystal in g/cm^3 (Appendix C in Miller)
      densityc=2.11D0
*     seed size at nucleation
      r0=0.0D0
*     crystal density*volume shape factor,
*     in gram crystal/micron^3/particle
*     (alpha*L^3=mass of particle)
      alpha=kv*densityc*(1.0D-4)**3

*Growth and nucleation kinetic parameters (Table 4.6 in Miller)
*     (dimensionaless)
*      g=1.32D0
*     (mirons/minute)
*      kg=DEXP(8.849D0)
*     (dimensionless)
*      b=1.78D0
*     (number of particles/cm^3/minute) 
*     (the units have been corrected from that reported in
*     Table 3.1 in Miller)
*      kb=DEXP(17.142D0)

*Noise estimates
      mu0_variance=0.1456D0
      mu1_variance=9.3523D0
      mu2_variance=3484.3446D0
      mu3_variance=1.6221D6
      mu4_variance=7.043D8
      conc_variance=3.53D-4

*Initial conditions
*     initial concentration, g/g solvent
      concentration(1) = 0.493D0
*
*       The initial moments were computed using the following
*       population density function:
*
*       f_0(L)= aL^2 + b*L + c
*
*	The distribution function is assumed to be symmetrical
*	with the peak at L_bar.  The function is equal to zero 
*	at L=L_bar-w/2 and L=L_bar+w/2, where w is the width 
*	paramter. In the program THETA_(Ntemp1+1) is the total
*	seed, THETA(Ntemp1+2) is L_bar, and THETA_T(Ntemp1+3)
*	is the width.  Given the total mass, L_bar, and width w, 
*	the coefficient a, b, and c can be calcuted from the
*	following system of equlations.  Let
*	
*	lmin = L_bar - w/2
*	lmax = L_bar + w/2
*	mass = total seed mass 
*
*	Then
*
*	(lmax^6-lmin^6)/6 a + (lmax^5-lmin^5)/5 b + (lmax^4-lmin^4)/4 c =
*	mass/(mass_solvent*crystal_density)
*
*	lmax^2 a + lmax b + c = 0
*	lmin^2 a + lmax b + c = 0
*
*	Note: In the implementation, the first equation is scaled.
*

      lmin = x(Ntemp1+2)*1.0D3-
     &	     x(Ntemp1+3)*(1.0D-2)*x(Ntemp1+2)*1.0D3
      lmax = x(Ntemp1+2)*1.0D3+
     &       x(Ntemp1+3)*(1.0D-2)*x(Ntemp1+2)*1.0D3

      AA(1,1) = (lmax**6-lmin**6)/6.0D0/1.0D12 
      AA(1,2) = (lmax**5-lmin**5)/5.0D0/1.0D12
      AA(1,3) = (lmax**4-lmin**4)/4.0D0/1.0D12
      AA(2,1) = lmin**2
      AA(2,2) = lmin
      AA(2,3) = 1.0D0
      AA(3,1) = lmax**2
      AA(3,2) = lmax
      AA(3,3) = 1.0D0
      BB(1)=x(Ntemp1+1)*1.0D3/
     &		(Msolv*densityc)*(1.0D4)**3/1.0D12
      BB(2)=0.0D0
      BB(3)=0.0D0


      CALL DLSARG (Norder, AA, LDA, BB, IPATH, gamma1)


*     initial zeroth moment, number of particle/g solvent
      mu00 = gamma1(1)*(lmax**3-lmin**3)/3.0D0+
     &	     gamma1(2)*(lmax**2-lmin**2)/2.0D0+
     &	     gamma1(3)*(lmax-lmin)
      moment0(1)= mu00

*     initial first moment, micron/g solvent
      moment1(1) = gamma1(1)*(lmax**4-lmin**4)/4.0D0+
     &		   gamma1(2)*(lmax**3-lmin**3)/3.0D0+
     &	           gamma1(3)*(lmax**2-lmin**2)/2.0D0
      seed_moment1(1)=moment1(1)
*     initia1 second moment, micron^2/g solvent
      moment2(1) = gamma1(1)*(lmax**5-lmin**5)/5.0D0+
     &		   gamma1(2)*(lmax**4-lmin**4)/4.0D0+
     &	           gamma1(3)*(lmax**3-lmin**3)/3.0D0
      seed_moment2(1)=moment2(1)
*     initial third moment, micron^3/g solvent
      moment3(1) = gamma1(1)*(lmax**6-lmin**6)/6.0D0+
     &		   gamma1(2)*(lmax**5-lmin**5)/5.0D0+
     &	           gamma1(3)*(lmax**4-lmin**4)/4.0D0
      seed_moment3(1)=moment3(1)
*	print*,moment3(1)*Msolv*densityc*(1.0e-12)
*	print*,THETA_T(Ntemp1+1)
*     initial fourth moment, micron^4/g solvent
      moment4(1) = gamma1(1)*(lmax**7-lmin**7)/7.0D0+
     &		   gamma1(2)*(lmax**6-lmin**6)/6.0D0+
     &	           gamma1(3)*(lmax**5-lmin**5)/5.0D0

*     initial relative supersaturation
      relsatn(1)=(concentration(1)-Csat(Temp(0.0D0)))/
     &     Csat(Temp(0.0D0))
	print*, moment0(1)
*     Initial conditions for derivatives wrt to theta
      DO 163 I = 1 , NU
         DO 164 J = 1 , NTHETA
            derivtheta(1,I,J)=0.0D0
164      CONTINUE
163   CONTINUE     


*Simulation parameters
*********************************************************
*
      mf=222
      itask=1
      istate =1
      iopt=0
      lrw=5000
      liw=900
      rtol=1.0d-11
      atol=1.0d-10
      itol=1

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩亚洲丝袜制服| 欧美色精品在线视频| 欧美国产精品v| 免费av成人在线| 国产精品嫩草99a| 欧美色中文字幕| 波多野结衣的一区二区三区| 奇米精品一区二区三区在线观看| 国产精品不卡视频| 日韩精品一区二| 在线日韩一区二区| 国产91丝袜在线18| 奇米888四色在线精品| 亚洲乱码中文字幕| 国产视频视频一区| 欧美一二三四在线| 欧美一a一片一级一片| 国产成人三级在线观看| 免费在线观看不卡| 一区二区三区毛片| 国产精品久久久久天堂| 精品福利一区二区三区| 欧美日韩国产a| 日本道在线观看一区二区| 色94色欧美sute亚洲线路二 | 伊人婷婷欧美激情| 久久一夜天堂av一区二区三区| 欧美人与z0zoxxxx视频| 91丨porny丨中文| 国产91清纯白嫩初高中在线观看| 久久成人久久鬼色| 亚洲五码中文字幕| 一级精品视频在线观看宜春院| 欧美国产欧美亚州国产日韩mv天天看完整| 日韩欧美精品三级| 日韩写真欧美这视频| 欧美色爱综合网| 色诱视频网站一区| 91视频在线观看| 99久久精品国产一区二区三区| 国产激情视频一区二区三区欧美 | 午夜精品久久久久久久蜜桃app| 亚洲私人影院在线观看| 欧美高清在线精品一区| 日本一区二区免费在线观看视频 | 色婷婷狠狠综合| 99re这里只有精品视频首页| 91一区一区三区| 色婷婷亚洲综合| 在线看日韩精品电影| 91国产免费看| 在线精品视频一区二区三四| 在线免费不卡视频| 欧美精品久久久久久久久老牛影院 | 精品盗摄一区二区三区| 欧美mv日韩mv亚洲| 国产午夜一区二区三区| 中文av一区特黄| 欧美久久免费观看| 欧美影片第一页| 日韩欧美你懂的| 有码一区二区三区| 成人久久18免费网站麻豆| 裸体健美xxxx欧美裸体表演| 日韩免费观看高清完整版在线观看| 欧美综合在线视频| 欧美精品视频www在线观看| 日韩视频一区在线观看| 国产亚洲一区二区三区在线观看| 国产视频一区不卡| 亚洲美女少妇撒尿| 日韩黄色小视频| 韩国av一区二区三区在线观看| 丁香另类激情小说| 在线免费观看视频一区| 日韩视频免费观看高清完整版在线观看 | 久久精品免费观看| 亚洲成人午夜影院| 亚洲黄色片在线观看| 视频在线观看91| 国产精品综合在线视频| 91一区在线观看| 日韩三级中文字幕| 中文字幕国产精品一区二区| 亚洲电影一区二区三区| 激情综合网av| 日本伦理一区二区| 2023国产精品自拍| 亚洲在线一区二区三区| 激情成人午夜视频| 欧美综合天天夜夜久久| 精品99一区二区| 亚洲一区二区av在线| 国产一区二区三区在线看麻豆| 99久久伊人精品| 日韩精品一区二区三区蜜臀 | 亚洲一区在线电影| 国产成人一区二区精品非洲| 在线精品观看国产| 久久久久88色偷偷免费| 亚洲高清视频的网址| 亚洲一区二区三区爽爽爽爽爽| 国产一区二区三区香蕉| 欧美日韩精品三区| 欧美国产日韩在线观看| 一区二区三区精密机械公司| 欧美老肥妇做.爰bbww视频| av动漫一区二区| 日韩久久久精品| 亚洲免费观看在线视频| 国产精品99久久不卡二区| 欧美精品1区2区| 亚洲三级在线看| 国产成人精品免费在线| 日韩欧美国产一二三区| 亚洲综合视频网| 99久久精品国产精品久久| 久久久久久麻豆| 麻豆一区二区99久久久久| 欧美性做爰猛烈叫床潮| 亚洲欧洲成人精品av97| 国产精品一区专区| 亚洲同性同志一二三专区| 国产麻豆精品在线观看| 日韩欧美123| 日本色综合中文字幕| 欧美人牲a欧美精品| 91在线国内视频| 婷婷丁香久久五月婷婷| 色婷婷狠狠综合| 国产精品久久久久久久久快鸭| 精品综合免费视频观看| 欧美一级在线观看| 亚洲成人免费看| 欧美在线免费播放| 亚洲综合久久久| 日本大香伊一区二区三区| 亚洲免费在线观看视频| 91美女片黄在线观看91美女| 亚洲欧洲99久久| 色婷婷一区二区三区四区| 亚洲欧美日韩综合aⅴ视频| 99re在线视频这里只有精品| 专区另类欧美日韩| 色诱亚洲精品久久久久久| 亚洲免费资源在线播放| 在线精品国精品国产尤物884a| 亚洲综合精品久久| 欧美日韩国产另类不卡| 日韩黄色免费网站| 日韩美女天天操| 国产剧情av麻豆香蕉精品| 欧美国产精品v| 97国产精品videossex| 亚洲精品国产高清久久伦理二区| 在线观看亚洲一区| 五月天激情小说综合| 欧美刺激午夜性久久久久久久| 久久99国产精品免费| 国产日韩v精品一区二区| av一区二区不卡| 亚洲一区精品在线| 欧美一级爆毛片| 成人精品视频.| 亚洲综合色区另类av| 精品欧美乱码久久久久久1区2区| 国产福利精品导航| 亚洲精品中文字幕在线观看| 欧美精品在线一区二区| 国产伦精品一区二区三区在线观看| 国产精品午夜免费| 欧美三级中文字幕在线观看| 免费成人在线观看| 国产精品免费视频网站| 欧美日韩国产高清一区二区 | 欧美一级精品在线| 国产成人av电影在线| 一区二区久久久久久| 日韩精品一区二区三区在线 | 亚洲影院久久精品| 日韩欧美在线综合网| 成人午夜又粗又硬又大| 亚洲国产精品久久久男人的天堂| 欧美本精品男人aⅴ天堂| 99精品视频在线观看| 蜜臀av一区二区| 亚洲裸体xxx| 精品理论电影在线| 在线视频一区二区免费| 国产精品99久久久久久久女警| 亚洲综合在线电影| 亚洲国产精品av| 日韩三级中文字幕| 在线欧美日韩国产| 国产成人精品在线看| 日韩经典一区二区| 亚洲免费观看在线视频| 欧美精品一区二区久久婷婷| 欧美亚洲一区二区三区四区| 国产宾馆实践打屁股91|