question
stringlengths
19
6.88k
answer
stringlengths
38
33.3k
Problem Statement: How do I register Aspen Basic Engineering workspace with Smartplant?
Solution: To register a workspace with a Smartplant plant: 1 In the Aspen Basic Engineering Administration Application right click the workspace to be registered and select the pull-down menu option All Tasks | Smartplant Registration. 2 Enter the URL for the Smartplant server in the following format: http://<nodename>/<virtual directory>, where <nodename> is the name of the Smartplant server and <virtual directory> is the name of the Smartplant virtual directory (typically, SPFASP). 3 From the pull-down list select the name of the Smartplant plant you want to use with this Basic Engineering workspace and click Finish. 4 You will receive a message confirming successful registration. Click OK to finish. Keywords: SPF, smart plant, register References: None
Problem Statement: Why can I not add Medium Description and Code in the Piping Material Specification Schedule?
Solution: In order to add Medium and Material Codes in the Piping Material Specification schedule sheet, Medium Code Schedule and Material of Construction Schedule sheets have to be first created. However, if the Medium Code Schedule is created under different case than the Piping Material Specification schedule sheet then medium data will not be available in Piping Specification sheet. The reason for such behavior is that the Medium Code Schedule is case specific so to add a Medium Description and Code in Piping Material Specification Schedule sheet, the Medium Code Schedule must be created under same case. Keywords: Medium Code Schedule, Piping Material Specification Schedule References: None
Problem Statement: RESET doesn't reset all the variables.
Solution: The RESET function has been changed between 10.2 and 11.1, it is not a bug. In 11.1: RESETresets the FREE and RATEINITIAL variables to their default value, leaves Fixed and Initial variables untouched In 10.2: RESET resets all variables RESTART will rewind the simulation to time 0, unless you have changed the simulation structure while running it, in which case RESTART will rewind to the time at which the simulation has been modified. Keywords: References: None
Problem Statement: Are there any diagrams that demonstrate the difference between No U-bends, U-bends in Alternate Passes and U-bends in Every Pass?
Solution: Please see the diagrams below to explain the difference between No U-bends, U-bends in Alternate Passes and U-bends in Every Pass: Keywords: U-bends, alternate, passes, nozzles, headers References: None
Problem Statement: What is the accuracy reported in the Simulation Messages window, when using FEASOPT optimization method? This is also reported when using maximum log likelihood in estimation method with the same optimization method.
Solution: FEASOPT accuracy is calculated with the following formula: acc = abs(sigma(Gi*DXi)) + sigma(abs(MUk*Ck)) where Gi is the gradient of the objective function wrt optimization variable i DXi is the next step on variable Xi (that is, the next iteration is X = Xi + DXi) predicted by the SQP code MUk is the Lagrange multiplier for constraint k (shadow price) Ck is the value of the kth constraint The accuracy is a measure of How much the objective function will decrease in the next step and How much the complimentary of the Karush-Kuhn-Tucker condition for optimality is satisifed. In other words, a measure of how close we are to the optimum and how close the inequalities and equalities are satisified. The smaller the number, the more accurate theSolution. The ACM optimisation simulation will terminate when acc is less than your optimizationSolution Convergence Tolerance. Keywords: References: None
Problem Statement: Can you explain how to handle boundary conditions for two dimensions distributions?
Solution: The issue to consider is how to handle the corners of the domain. Let's look for example at this model: dq/dt = d2q/dx2 + d2q/dy2 for the domain x = [0,1] and domain y = [0,1] with the boundary conditions: q(0,y) = 3 for y in [0,1] q(1,y) = 3 for y in [0,1] q(x,0) = 3 for x in [0,1] q(x,1) = 3 for x in [0,1] This can be written in ACM as follows: Model test2D x as domain (highestorderderivative:2); y as domain (highestorderderivative:2); q as distribution2d (xdomain is x, ydomain is y); for ix in x.interior do for iy in y.interior do $q(ix,iy) = q(ix,iy).d2dx2 + q(ix,iy).d2dy2; q(ix,iy) : 0, initial; endfor endfor // BC (incorrect) q(0,[0:y.endnode]) = 3; q(x.endnode,[0:y.endnode]) = 3; q([0:x.endnode], 0) = 3; q([0:x.endnode],y.endnode) = 3; End but this leads to an overspecification by 4. The reason is that we have specified the boundary conditions for the corners ((0,0), (1,0), (0,1) and (1,1)) twice, which is not correct. The correct way is either like this: q(0,[0:y.endnode]) = 3; q(x.endnode,[0:y.endnode]) = 3; q([1:x.endnode-1], 0) = 3; q([1:x.endnode-1],y.endnode) = 3; or like this: q(0,[1:y.endnode-1]) = 3; q(x.endnode,[1:y.endnode-1]) = 3; q([0:x.endnode], 0) = 3; q([0:x.endnode],y.endnode) = 3; The following diagram shows the twoSolutions in a graphical way. Keywords: References: None
Problem Statement: Project data are not visible when restoring workspace backup file
Solution: When restoring backup file which includes Project, it is necessary to have the same privileges.xml file used when the backup was taken. Therefore, when backing up the workspace with Project, you need to keep a copy of the privileges.xml file located in the workspace folder. After restoring the backup, copy the associated privileges.xml file in the workspace folder. Keywords: Backup Project References: None
Problem Statement: What is the difference between a linear, explicit, nonlinear and torn group in the block decomposition?
Solution: Decomposition information could be accessed in the All Items pane of the Simulation Explorer --> Diagnostics. This diagnostic information only becomes available after a simulation is run. If there are structural errors with the simulation this information is not available. Group Type Description Linear A linear group featuring a system of linear equations Explicit A linear group featuring one single equation Non-linear Non-linear equations involved Torn A block that could contain any of the above types (used with procedures) To find out block types and variables involved, go to the simulation explorer --> Diagnostics --> Click on Initilization decomposition or dynamic decomposition. To view the information on the type of blocks in your simulation, right-click in the Contents pane of the Simulation Explorer and choose Details. Keywords: block, decomposition, linear, explicit, nonlinear, torn, run, diagnostics References: None
Problem Statement: Why is the text converted to Latin when a PDF is created in Russian(Cyrillic), copied and then pasted into a sketch field within a datasheet?
Solution: This is a known MicroSoft issue and it will not be fixed in Aspen Basic Engineering. To workaround this problem, export the drawing to a dwg or zyq file and then import into the datasheet sketch field. Keywords: Russian, Latin, Cyrillic References: None
Problem Statement: What is the model discontinuity tolerance on the Integrator tab?
Solution: The model discontinuity tolerance (integrator solver options tab) specifies the model discontinuity tolerance, within which the time of the triggering of model events will be determined. Range is any positive real. This is the tolerance to which model discontinuities are located. Default if 1.e-5 and range is any positive real value. A bisection technique is used to find a time interval that is less than the value of the tolerance and within which the model discontinuity occured. In some rare cases, depending on the integrator tolerances and non-linearity of your problem, the bisection algorithm may fail to compute the correct interval, and the discontinuity may have to be located a second time. The Locate Model Discontinuities controls if the integrator will detect when model discontinuities (task implicit events, IF and switch statements changing branch) occur, locate where they occur within the Discontinuity tolerance, step to that point and restart the integrator. When unchecked (default) , model discontinuities are not located and the integrator simply steps over them. The integrator uses linear interpolation within its last step to locate implicit events (including task ones) and can introduce small errors by doing so. In some cases, this makes the task fire twice (apparently) - there needs to be a dead band in the task to prevent this. Here's a simple example to illustrate this issue: Model testmodel x as realvariable; x = sin(time); End Task test runs always //print (0)wait; WAIT FOR B1.x > 0.9; //print (0) above; WAIT FOR B1.x < 0.9; print (0) reached from below + convertto(string, time); End The task should trigger at time = 2.0218 hr (pi - arcsin(0.9) to be precise), that is once B1.x has been greater than 0.9 and becomes smaller than 0.9. When the option locate model discontinuities is off, it prints: reached from below 2.03 which is correct, as it shows that the time of the event is detected at the next communication interval. If we activate the integrator option locate model discontinuities and change the maximum integration step size to 0.005 (same as initial step size) and we get two messages: reached from below 2.02183 reached from below 2.02185 Why does it trigger twice? This repetition happens randomly, because if you leave the example running, the event occurs again at 2 pi + 2.02 = 8.31, but it does not get repeated. The work around is to add a dead band in the task, i.e. replace Task test runs always //print (0)wait; WAIT FOR B1.x > 0.9001; //print (0) above; WAIT FOR B1.x < 0.9; print (0) reached from below + convertto(string, time); End Keywords: task References: None
Problem Statement: Why are the tube side input and output fouling resistance values different?
Solution: In Aspen Acol+ and other Aspen HTFS+ programs, the outer bare diameter of the tube is normalized. The overall heat transfer coefficient U is found by: 1/U = ( 1/hx + rx )(Ao/At) + rw + ( 1/hi + ri )(Do/Di) where: h = heat transfer coefficient r = resistance of fouling layer A = area D = diameter and subscripts: x = finned surface t = area with fins o = area based on bare tube / outer i = inner w = wall For the outputs displayed by Aspen Acol+, this normalization has been applied so that you can sum the resistances and then multiply by the bare tube area and the temperature difference to get the duty. If you have supplied information based on the finned area then you will need to multiply this by (Ao/At) which means divide by the area ratio. If it is referenced to the bare tube area, then no correction is necessary. Keywords: fouling, resistance, tube, diameter, outer, inner, normalized, area, surface References: None
Problem Statement: Why is the file size in Aspen Acol+ larger than it is in AEROTRAN?
Solution: The primary reason the Aspen Acol+ (EDR) files are larger than the Aerotran (BJT) files is the file format used in writing the files. The EDR files use XML as the format for storing all the inputs and results. The BJT files were using a proprietary binary format which was more condensed than the XML format. Although the BJT file format is more condensed, its disadvantage was that any application that wanted to read the format had to use custom code to read and parse it. The XML format on the other hand is an industry standard through which any user could access the information via standard XML interfaces. Another reason for the increased size in the EDR files is the additional input and result data stored in the file. The stream physical properties have been expanded to allow for more pressure level curves and more properties. The results also contain more interval analysis results as well as detailed tube layout and setting plan drawing information. As a consequence, the EDR files created by the new HTFS+ suite are larger than the heritage BJT files. Keywords: file size, format, XML, EDR, BJT References: None
Problem Statement: When I open my custom modeling or dynamics simulation, I get warning message saying that properties have not been initialized. What should I do? Root Cause It can happen when you are opening an older version or if properties are not embedded in the simulation and were externally created.
Solution: A good practice is to always save the properties file in the same directory as your custom modeling or dynamics file. When this happens in custom modeler, it is usually because the properties file is in a separate location from the custom modeling simulation. Simply move the properties file you generated setting up the simulation to the same folder if you have moved the file from the original location. For a Dynamics file generate the aspen properties file from Aspen Plus and put it in the same directory. To generate an aspen properties file, navigate to the properties section, then go to File | export, and select either .aprbkp or aprpdf as the extension. Make sure that this properties file is always with your dynamic simulation in case properties somehow become no longer embedded in the simulation. Alternatively, you can choose to load properties from a different location. When prompted to load properties, select the “import Aspen Properties file,” option if the extension is .aprbkp or aprinp for your properties file. Select0” use properties definition file” if it is an aprpdf file. Keywords: Aspen properties, Aspen Plus Dynamics, Custom Modeler, import properties References: None
Problem Statement: How to create a new Physical Quantity for ACM?
Solution: The predefined physical quantity names are specified in the file OnNewDocumentScript.vb that is located in c:\program files\aspentech\AMSystem 11.1\bin (or AMSystem 12.1\bin for version 12.1). This is a VBScript file, which you can edit with Notepad. You can find the syntax in ACM on-line help. See Defining Physical Quantities, Units of Measurement, and Conversions in Modeling Language Keywords: References: . You can modify the OnNewDocumentScript.vb to add your new units of measure. Make sure to keep a copy of the original. In a nutshell, AddPhysicalQuantity method is used to define a new physical quantity name, as well as its base unit of measurement. Then DefineConversion method can be called to define alternative units of measure, with factor and offset for the conversion. Finally, you can specify for a UOMSet which unit you want to use (otherwise ACM simply display the value in its base units - you can still change the units for display for a variable from the tables). Let's say for example you want to create a new physical quantity SI_moles. You could add something like this, at the end of the OnNewDocumentScript.vb file: '*** SI_Moles *** bOK = UOM.AddPhysicalQuantity(SI_Moles, mol) bOK = UOM.DefineConversion (SI_Moles, lbmol, 0.45359237e3, 0.0) bOK = UOM.DefineConversion (SI_Moles, kmol, 1e3, 0.0) bOK = UOM.DefaultDisplayUOM (Metric, SI_Moles, mol) The OnNewDocumentScript.vb is executed automatically when you open a simulation in ACM. This will then allow you to define in ACM a new variable type: Variable si_mol PhysicalQuantity : SI_Moles; End The tables will then display the value of these variables in mol, kmol or lbmol. The variables in the model (equations) will always be in mol, regardless of what's selected on the table.
Problem Statement: Whenever I try to open a custom modeler product, I get the following message in the simulation messages box: Failed to load file [File pathname], working directory is in use
Solution: You need to set it so that the working directory can be changed for the program at any time. To do this, navigate to Tools | Settings | Preferences. On the pop up window, select the option that says “Allow setting of working folder location,” and your file will now open Keywords: Custom Modeler, Dynamics, working directory, file not opening References: None
Problem Statement: I have some Timedata blocks in my flow-sheet and I would like to put the active parameter for all of them to Off. Is there a way to do that? Applicable Versions V7.3 and higher.
Solution: Create a script and use the following command: Blocks(B2).Active.Value = Off” Keywords: Timedata, active parameter. References: None
Problem Statement: What is the use for the Compare Datasheet/Diagram in right-click menu in Explorer?
Solution: This feature is used under Inter-disciplinary Work Flow(IDWF), which was introduced in v 7.0. The Inter-disciplinary Work Flow enables disciplines working on a project to interact and exchange data in a controlled way. All data owned by a user?s discipline remains private to members of that discipline until it is formally released. Other disciplines can see the released data as read-only data and can import the data by retrieving it. After a user of another discipline retrieves a release, users of that discipline can add additional information and share their work with other disciplines by releasing it Now with compare Datasheet/Diagram option, you can compare an unreleased datasheets/diagram with a released version of the same type. IF IDWF is enabled, to compare datasheet, you can follow the below procedure 1. Right-click the unreleased datasheet and click Select Datasheet to Compare. 2. In the release folder, right-click the appropriate datasheet to compare and click Compare Datasheets. The first datasheet you selected is opened. Data that differs will appear in red. Keywords: References: None
Problem Statement: How do I troubleshoot a SQL workspace issue when trying to create a manual SQL workspace?
Solution: NOTE: These are troubleshooting steps only; it does not tell you how to create a manual SQL workspace. For creating manual SQL workspace please refer toSolution ID: 126008 You should check following things when creating a manual SQL workspace issue: 1. Make sure that you create a database in the SQL server. In below screenshot, ABE-test is the SQL database name that is created on the SQL server before creating the workspace. 2. Make sure you specify the correct database name that you have created inside SQL server as shown in screenshot below. 3. You must use unique new SQL database for each new workspace. 4. Make sure you specify correct SQL server name with SQL instance name if you have any. In below screenshot, SQL server name is SQLServer1 and instance name is SQLEXPRESS 5. If your SQL server is located on different machine then make sure that you can communicate to SQL server from Aspen Basic Engineering (ABE) server machine. 6. User who is creating a workspace must be a part of Zyqad Administrators group which is located on ABE server machine. 7. Username that you provide in screenshot below must have database creator, read and write access to SQL database. In below screenshot, ABE is the username which is already created on SQL server and it does have read, write and database creator access. 8. Username in below screenshot must have SQL authentication on SQL server. 9. You must use unique workspace name Keywords: cannot create workspace, SQL workspace, error, Zyqad, ABE, basic engineering References: None
Problem Statement: How do I resolve COM errors in the bridge application? Error: Com Error Line xxx in AZBridgeDoc
Solution: Generally COM errors in bridge are seen due to not enough access rights to the working directory. Once you provide read and write access to Workspaces folder and WorkspaceLibraries folder then you should not see this error message. Keywords: com error, error in AZBridgeDoc References: None
Problem Statement: I have an ACM model that contains the following IF structure: If (CONV<=CONV_START) Then Executable statement 1 Else Executable statement 2 Endif; In the second branch of the IF statement, I would like to use a parameter whose value is equal to the time when the model entered that branch. For example, during the run I would like to obtain the time at which CONV becomes greater than CONV_START.
Solution: AssociatedSolution 106431 entitled “Which variable values are used for the dead_time block (DELAY)? There is currently no feature in ACM to allow the user to directly utilize the simulation time as a variable. Use can be made of some equation which integrates a time variable until the condition is satisfied. Please see the file attached to thisSolution developed for version 7.2 Model test CONV as realvariable (initial); CONV_START as realvariable (fixed, 2); time1_ as realvariable (initial, 0); $conv=1; If (CONV<=CONV_START) Then $time1_ = 1; //Executable statement 1 Else //Executable statement 2 $time1_ = 0; Endif; End; Keywords: simulation time, if block References: None
Problem Statement: How can we enter Twisted Tape pitch in Air Cooled Exchanger?
Solution: Tube enhancements can be specified in Input | Program Options | Methods/Correlations | Tube Side Enhancement tab. The enhancement type with Twisted Tapes, the start and finish tube pass number containing the inserts can be provided. The tapes when compared to no tube side enhancement can decrease the heat duty with decrease in tube side pressure drop. Keywords: Tube Pitch, twisted tape, twist pitch, tube side enhancement. References: None
Problem Statement: In the Aspen Exchanger Design and Rating (EDR) suite, the heat transfer coefficients presented are based on the bare tube outer diameter. One of the advantages of this method is that the resistances can simply be summed, then the reciprocal taken to give the overall dirty heat transfer coefficient.
Solution: The Overall heat transfer coefficient can be normalized to the bare tube outer diameter from; where D is the tube diameter (o,i = bare tube outside, inside), A is the Area (o,t = bare tube surface, extended surface), r = resistance, with i fouling inside the tube, x fouling on the crossflow side, w the wall and α is the heat transfer coefficient, x on the cross side based on the finned area and I inside the tubes based on the inner diameter. The wall resistance may be found from; Wall thickness / Thermal Conductivity * Do / Dw, with Dw = ½ *(Do + Di) The tubeside fouling entered into Air Cooled exchanger from the Process Data is based on the inside diameter and when normalized is shown as ri * (Do/Di). The outside fouling entered is based on the bare tube outer diameter (not the finned area). If the finned fouling resistance was given, then this would need to multiplied by the ratio (Ao/At) which can be found from Results | Results Summary | API sheet on line 7 taking the reciprocal of the Area ratio or Results | Mechanical Summary | Exchanger Data | General tab as the reciprocal of the Area ratio finned to bare. From Results | Thermal / Hydraulics Summary | Performance | Overall Performance tab, the U dirty and film coefficients on the outside and tubeside are shown (these are all related to the bare tube OD). In the Resistance Distribution tab for the column “Dirty� the resistances are shown, which are all normalized to the bare tube diameter. Summing these together and taking the reciprocal will give the overall dirty heat transfer coefficient. Keywords: Overall heat transfer coefficient, calculations References: None
Problem Statement: When a datasheet is exported in Excel, it may happen that radio buttons which have been selected are not printed correctly.
Solution: This problem can be solved by un-selecting the Black and White options in the excel source file or in the exported excel file. With Office 2003, the option can be found in Page Setup=>Sheet tab. With Office 2007 and Office 2010, the option can be found in Page Layout=>Page Setup=>Margins=>Custom Margins=>Sheet Tab. Keywords: Datasheet Editor Print Excel Export References: None
Problem Statement: How to use the EDI emulation with ACM?
Solution: In SPEEDUP 5.5-6 there is a functionality called External Data Interface or in short EDI. This is superceded by the Simulation Access Extension in ACM, or SAX in short. This example could help to find out how to migrate a SPEEDUP simulation using EDI to the new ACM environment. For the conversion of the SPEEDUP file, the SPEEDUP to ACM converter can be used. Documentation on the EDI emulation is available in the on-line help of the converter (or search for EDI in ACM online help). We provide a C function to emulate the EDI functionality in ACM. The code is available in the ACM installation (in AMSystem 11.1\Procedures\EDI_emulation.*). In the attached file, you will find: the original SPEEDUP simulation the ACM simulation edi.f : the EDI code to be used in ACM (with comments on functions that are supported) makefile.txt: the makefile to rebuild the dll If you want to use all the features of SAX, you need a C/C++ compiler. Note also that ACM automation provides another way of interfacing an ACM simulation to external data (with VB programs in Visual Basic or macros in Excel). Keywords: References: None
Problem Statement: Will running a delete query on MS SQL corrupt my workspace?
Solution: Changing data with SQL scripts should be avoided at all costs. The ABE object-oriented database enables users to query and change selected attributes with mimimal effort (most scripts are extremely small). The SQL database should only be queried directly to fix database integrity problems that cannot be fixed with a Query Editor script. Changing data via SQL queries can corrupt a workspace. Keywords: SQL query, ABE Query editor, Workspace integrity errors. References: None
Problem Statement: Why does the ribbon bar in Excel datasheet editor disappear when clicking elsewhere on the screen?
Solution: The Excel datasheet editor Ribbon bar is designed to help you quickly find the commands that you need to complete a task. To reduce screen clutter, you can minimize the ribbon and show only tabs. To do that: · Right-click any empty space on Aspen Datasheet ribbon bar. ·  In the list, click Minimize the Ribbon. Please note that when Minimize the Ribbon option is checked, then Excel datasheet editor ribbon bar will disappears when you will click anywhere else. To change the behavior, uncheck Minimize the Ribbon option. Keywords: interface, ribbon References: None
Problem Statement: How can I link multiports with sub-models? Say for example that I have a submodel: Model submod in_f as input multiport of Fport; out_p as output Fport; out_p.F = sigma(in_f.connection.F); End The Mixer model declares one instance of the submod model. What is the syntax to use if we wish to link the input and output ports of the Mixer model to the ports of the submodel? The following code does not work for the input ports. Model mixer in_f as input multiport of Fport; out_p as output Fport; b as submod; link in_f and b.in_f; link out_p and b.out_p; End The variable F does not appear on input streams connected to the input port of a Mixer block.
Solution: You must use a for loop for the multiport to repeat the link statement for each stream connected to the multiport. Model mixer in_f as input multiport of Fport; out_p as output Fport; b as submod; for i in in_f.connectionset do link in_f.connection(i) and b.in_f; endfor link out_p and b.out_p; End Keywords: multiport submodel References: None
Problem Statement: How do I scale multiple objects for current drawing in drawing editor?
Solution: Follow below mentioned steps to scale multiple objects for current drawing. 1. Open Drawing editor application, connect to workspace and open PFD drawing type for which you need to scale multiple objects. 2. Select objects for which you need to change the scale by using ctrl key and left mouse button. 3. Click on Scale button from Modify toolbar as shown in screen shot below. If you don't see the modify toolbar then you can activate it from View | Toolbar from Menu item and select Modify option. 4. Once you click on scale button, it will bring a scale factor drop down box. In here you can type desired value (i.e 1.50 will scale your drawing 1.5 times the current size) 5. This will allow you to move scaled object on current drawing. Keywords: scale, multiple object, change size, modify size References: None
Problem Statement: What is Acol+?
Solution: Acol+ combines Aspen HTFS with Aspen B-JAC. Click on this link to find out more: Acol+ Overview Keywords: ACOL; Air Coolers; Heat Exchange; Design; Rating References: None
Problem Statement: How can I add more font types in 'text' menu in the drawing editor?
Solution: The list of the font in this menu comes from System fonts folder. If you want to add new fonts there( TrueType Only), you should go to Control Panel=>Fonts folder and add the font file there. Keywords: None References: None
Problem Statement: The last version on which the converter was available is AES version 11.1sp1. The converter is no longer released with version 12.1 or above. What can be done if I need to convert now a file from SPEEDUP to ACM?
Solution: The firstSolution is to get your AES 11.1 CDs and install Aspen Custom Modeler. You don't need a license to install the software, and you don't need a license to run the SPEEDUP to ACM converter. The secondSolution is to install the command line version of the converter. Unfortunately, the GUI of the converter requires the full installation of ACM, but the command line gives you access to all functionalities of the converter. To use the converter from the command line: - unzip the files to a convenient folder which must be added to your environment variable PATH - at the dos prompt, type su5convert [options] filename.spe options: -p : ignore existing preferences file (i.e. create a new preference file) -c : exclude comment transfer (i.e. remove comments) -e : allow extended character set -f : relaxed port type matching -s : ignore results sections -h : preserve HELP sections as comments -z : suppress stream instances and types This zip file contains the version of the converter released with ACM 11.1sp1. Please note that converting files from SPEEDUP to ACM could also be done as a paid service if you want us to do this work for you. Keywords: References: None
Problem Statement: How to perform a steady state parameter estimation in Aspen Custom Modeler (ACM) when experimental reaction data (eg. conversion) is available and it is necessary to estimate the rate constant for the reaction.
Solution: The first step is to make sure that the steady state ACM file runs with no errors. It is a good idea to carry out a sensitivity analysis of the ACM model by varying the values for the fixed variables at the inlet of the model and observe the convergence. In the attached file the reaction occurs between A and B as follows: 2A + B --> A2B In the ACM model, the rate of reaction has been expressed as: RATE = RK1*Output1.M(A)^2*Output1.M(B)/(1.0+RK2*Output1.M(A)); Where RK1 and RK2 are the reaction rate constants and the output variable provides the output flowrate from the reactor. The following experimental conversion data, for the reaction between reactants A and B are available Flow of A into the reactor Flow of B into the reactor conversion 9.0 1.0 0.180143 8.0 1.5 0.21 3.0 6.0 0.4 1.0 9.0 0.65 6.0 4.0 0.5 From the Tools ribbon the estimation option can be selected and the rate constants RK1 and RK2 variables can be selected from the all variable table of the model and dropped onto the Estimated Variable tab in the Estimation Wizard. The measured variable, reactor conversion, can also be dragged and dropped from the all variable table onto the estimation wizard field. Then the steady state experimental data can be entered or pasted from Excel. Next the run mode should be changed to estimation and run the file. The estimated values for the rate constants can be seen in the Estimated Variables tab. Keywords: steady state Estimation, Estimated Variables, Measured Variables References: None
Problem Statement: How do I troubleshoot SQL workspace issues when trying to create a default SQL workspace?
Solution: NOTE: These are troubleshooting steps only; it does not tell you how to create a??Default SQL workspacea??. For creating Default SQL workspace please refer toSolution ID: 126006 You should check following things to troubleshoot a??creating Manual SQL workspace issuea??. 1. You must use unique workspace name 2. Make sure SQL database does not contain database with a same name as the workspace you are trying to create. 3. A Make sure you specify correct SQL server name with SQL instance name if you have any in broker.ini file. In below screenshot, SQL server name is a??SQLServer1a?? and instance name is a??SQLEXPRESSa?? 4. You must re-start a??AZ162brokera?? service after you make any changes in broker.ini file 5. If your SQL server is located on different machine then make sure that you can communicate to SQL server from Aspen Basic Engineering (ABE) server machine. 6. User who is creating a workspace must be a part of ZyqadAdministrators group which is located on ABE server machine. 7. Username that you provide in screenshot below must have database creator, read and write access to SQL database. In below screenshot, ABE is the username which is already created on SQL server and it does have read, write and database creator access. 8. Username in below screenshot must have SQL authentication on SQL server. Keywords: can not create workspace, SQL workspace, error, zyqad, abe, basic engineering References: None
Problem Statement: Where can I find e apmodelcatalog.xml for Aspen Custom Modeler version 2006 and above?
Solution: The file apmodelcatalog.xml registers the installation of ACM model extensions and points out the route for the dll files. The location path has changed significantly from older versions of our process modelling suite. The old path was: C:\Documents and Settings\All Users\Application Data\ASPENTECH\Aspen Plus xxx\ Where xxx corresponds with the Aspen Plus version installed. Documents and Settings folder no longer exists since the release of Windows Vista. The new location can currently be found in: C:\ProgramData\AspenTech\AES You can modify the apmodelcatalog.xml to perform a manual installation of an ACM model if needed. To do this: Go to C:\ProgramData\AspenTech\AES and edit apmodelcatalog.xml with notepad. You need to have activated the option to show hidden files and folders. The file should look something like this: Add a new line following the format shown above, with the model name, the version of ACM used to create the model and the path to the dll. Copy the dynamic library (dll) into the folder specified in the xml. The dll can be stored at any location in your machine as long as it is consistent with the path registered in the xml. The default path can be found at: C:\ProgramData\AspenTech\AES\AMModels\�ACM version�\�model name�\�model name�.dll For more information on manual installation and uninstallation of ACM models, check the followingSolutions:Solution ID: 112191 and 141281. Keywords: ACM, export models, manual installation, xml, dll. References: None
Problem Statement: How to call the procedures to return the enthalpy and the density of non-conventional components?
Solution: See the attached example which illustrates how to call the procedures available from the Modeler library to return: - mass density of a mixture of non-conventional components: pDens_Mass_NCSolid - mass enthalpy of a mixture of non-conventional components: pEnth_Mass_NCSolid The procedures are described in the on-line help but having a working example will help. (There's a misspelling in the pressure variable type in the example for the density, and the variable type for the mass density is pos_small, the value is returned in tonne/m3). This will be modified in a future version. You also need to make sure no stringset is empty, as passing an empty array to the procedure does not work. To set up the physical properties, we create a file in Aspen Plus. In the component specifications we declare a non-conventional component COAL. In the property set up we have specified HCOALGEN method for the enthalpy and DCOALIGT for the density. Other methods could be specified. These methods will require the PROXANAL, ULTANAL and SULFANAL component attributes. In the flowsheet environment, a simple heater block with 1 feed and 1 product have been created. The MIXNC stream class has been specified in the simulation Setup (to have a MIXED substream for water, and a NC substream for the non-conventional components). This is not so important for ACM, but we need to complete the simulation. The physical properties file is generated in this way: 1. Save the simulation file as bkp file type. 2. Run the simulation, save the simulation as an apw file type(Aspen Plus Document). 3. We can discard the apw file (since we have the bkp) but the process of saving as apw will generate the appdf file which we can referred to in Aspen Custom Modeler (under Component Lists, Configure Properties). In ACM, the NC(non-conventional) component list has been created with just COAL as the component. The model test shows how to calculate the enthalpy and the density of the non-conventional component. The attributes have been specified directly in the model (this matches the feed stream specified in Aspen Plus). Keywords: NC, pEnth_mass_NCSolid, pDens_mass_NCSolid References: None
Problem Statement: How do I create an included library (*.azci) file?
Solution: To create an *.azci file: 1. Open class library editor. 2. Click insert menu on the top and pick library. 3. You will be directed to save azci file under your datamodel folder. Do NOT change the location as *azci should be in the same location as *.azcl file. 4. Provide a name and click open. You will get a prompt that ...The file doesn't exist. Create the file ?. Say YES. 5. You will see it listed under included libraries. Keywords: data model, add library, configuration References: None
Problem Statement: My simulation file fails to open in version 2006. It was ok in version 2004.1.
Solution: Check the error messages displayed in the simulation messages window. If you simply double click the file to open it, this window may not be displayed. A better way to open the file to troubleshoot this issue is to first start ACM, then open the file with File, Open. A potential cause is the new keyword RunMode, which has been added in version 2006. If your model already declared this as a variable or a parameter, you will get a syntax error in version 2006. The onlySolution is to rename your parameter. You need to open the file with a good text editor (if you use Notepad, make sure the option Word Wrap is OFF) and replace all but one occurrence of RunMode with for example RunMode_. The occurrence in the OPTIONS section should be left unchanged (it reads RunMode: Dynamic; or another run mode - this should not be modified). The following documentation of the RunMode parameter will be added to the next version of ACM help. You can access the value of the current simulation mode using the RunMode keyword. This will have one of the following values: Steady State Optimization Estimation Dynamic Initialization You can use this to change the equations used depending upon run mode, for example: If RunMode = Dynamic then $X = 2; Else X = 3; Endif Keywords: None References: None
Problem Statement: How do I resolve the error message invalid descriptive text in the datasheet editor?
Solution: If you enter a text in numeric field in the datasheet, which is not the part of DescriptiveText.txt file, you should see above error message. All the prefix, postfix and substitution text should be part of DescriptiveText.txt, which by default is located under..\\AspenZyqadServer\Basic Engineering**.*\WorkspaceLibraries\AdditionalFiles. You can check the default texts, which are already there but if you want any additional entry, you can open this file in Notepad and make the changes. Keywords: editor, text References: None
Problem Statement: What is the order of execution of CCF calcs versus CTRAN calcs?
Solution: The order goes like this: Get PCS data Perform Custom input Transforms (CTRANI) Perform CCF input Calcs Perform Standard input transforms (STRANI) Run validation and control engine Perform Standard output transforms (STRANO) Perform CCF output Calcs Perform Custom ouput Transforms (CTRANO) LSTCHK Put PCS data Keywords: ccf, calcs, dmc, dmcplus, aspen, ctran References: None
Problem Statement: Calculation modes of Aspen Plate
Solution: Aspen Plate has four calculation modes. They are (1) Design, (2) Checking, (3) Simulation and (4) Design (given plate). (1) Design and (4) Design (given plate) The program provides one or more designs, based on a notional set of plates held within the program (Design), or on one specified plate (Design (given plate)). The program provides one or more designs, based on a notional set of plates held within the program. Design and Design (given plate) calculations use a number of simplifications, such as using average heat transfer coefficients and assuming linear temperature-enthalpy relations for each stream. For exchangers with only single phase streams, these assumptions should not lead to significant inaccuracies, but in other cases, Checking calculations should be performed once an initial design has been found in Design or Design (given plate) mode. In Design mode, exchangers are designed by selecting from a notional set of plates. These have: a range of 10 port diameters from 25 mm to 400 mm a range of 4 chevron angles 30, 45, 50, 65 (degrees) a short, medium and long plate of each type. The plate geometries from which the program selects are not linked to products of any particular manufacturer. The corresponding performance data assumed by the program are also typical values, which do not relate to a particular manufacturer's products. Design and Design (given plate) modes (but not Simulation or Checking) assume that condensing streams are in single pass downflow. Design (given plate) The program provides a design (or designs) of an exchanger (or exchangers) using a plate type which you specify, but adjusting the number of plates and the pass arrangement to achieve a specified duty. Design and Design (with given plate) calculations use a number of simplifications, such as using average heat transfer coefficients and assuming linear temperature-enthalpy relations for each stream. For exchangers with only single phase streams, these assumptions should not lead to significant inaccuracies, but in other cases, Checking calculations should be performed once an initial design has been found in Design or Design (given plate) mode. Design and Design (given plate) modes (but not Simulation or Checking) assume that condensing streams are in single pass downflow. (2) Checking The program checks whether a heat exchanger of specified geometry will achieve a specified duty, or specified stream outlet conditions. The result of this calculation is the ratio of the actual to the required surface area. Checking or Simulation calculations are performed on a step by step basis along each pass of the exchanger. 25 calculation steps are used and detailed allowance can be made for non-linear heat load curves and fluid properties which vary significantly within the exchanger. (3) Simulation You specify the exchanger geometry and the inlet conditions of the hot and cold streams. The program calculates the stream outlet conditions. Checking or Simulation calculations are performed on a step by step basis along each pass of the exchanger. 25 calculation steps are used and detailed allowance can be made for non-linear heat load curves and fluid properties which vary significantly within the exchanger. (4) Design (given plate) Described with number (1). Keywords: Calculation modes, plate, frame, plate and frame References: None
Problem Statement: How to create a linked object and what exactly is the linked object?
Solution: To create one or more linked objects: 1. On the diagram, select the object you want to copy a link to. 2. From the Edit menu, click Copy. 3. From the Edit menu, click Paste Special. 4. In the Paste Special dialog box, select Paste Link.A rectangle appears on the diagram. 5. Move the rectangle to the desired position for the copied link, then left-click with the mouse. The copied link now appears on the diagram at the position of the rectangle. Object created by Linked Object method is another reference to the original object, and the two are completely linked Keywords: References: None
Problem Statement: Can I export Aspen Air Cooled Exchanger program results to Microsoft Word?
Solution: Yes, this can be done. Run the file then select File | Export to | Word document. Next, choose the Select all results check box then click Export Keywords: Microsoft Word, Results References: None
Problem Statement: How do I specify a non-standard SQL port?
Solution: You can specify a non-standard SQL port in the Workspace.udl file by using a comma after the server name as shown in the screenshot below: The Workspace.udl file is located inside your Workspaces folder. i.e. For workspace with a name AZ162, workspace.udl file should be located at ...\\AspenZyqadServer\Workspaces\AZ162 folder. Keywords: udl file, SQL port, database port References: None
Problem Statement: In Aspen Air Cooled Exchanger program, on Results | Mechanical Summary | Exchanger Data | General tab, in Bundle section, a value for ''Effective tube length'' is reported, that is different from the ''Total tube length''. The ''Effective tube length'' is the proportion of the tube that is available for heat transfer. This
Solution: explains how the ''Effective tube length'' is determined if not specified. Solution The ''Effective Tube Length'' is calculated from the ''Total Tube Length'' minus ''Support Plate Thickness'' times ''Number of Supports'', minus ''Tubesheet Thickness'' times ''Number of Tubesheets''. The corresponding mathematic equation is: Le = L - Ts*N - Tt*M where Le is ''Effective Tube Length'', L is ''Total Tube Length'', Ts is ''Support Plate Thickness'', N is number of ''support plates'', Tt is ''Tubesheet Thickness'' M is ''Number of Tubesheet'' (equals 1 if the air cooler is a ''No U-bend'' configuration, or 2 if the air cooler is a ''U-bends in alternate pass'' or ''U-bends in every pass'' configuration) These parameters can be input by users, as shown in the below screenshots. Total tube Length (L): Tube Support Plate Thickness (Ts) & Number of Tube Supports (N): Tubesheet Thickness (Tt) & Number or Tubesheet (M): Apart from letting the program calculate the value of ''Effective tube length'', users can also manually specify the value on Input | Exchanger Geometry | Bundle | Bundle tab. Then the program will use this specification during the calculation, rather than calculate it from the equation described above. Keywords: Effective tube length, Total tube length, Support Plate thickness, Number of support plates, Tubesheet thickness References: None
Problem Statement: How will Aspen Custom Modeler and Aspen Dynamics locate custom binary files such as dynamic linked library (DLL) for procedures or simulation access extension (SAX)?
Solution: Aspen Custom Molder (ACM) and Aspen Dynamics (AD) use the same approach as all other Windows program to locate a dynamic link library (dll), details please see http://msdn2.microsoft.com/en-US/library/ms682586.aspx ACM/AD also will search in: - the folder where the dynf/acmf file is located (GUI working folder) - the simulation working folder (typically AM_simulation name created under GUI working folder Finally, you can also specify the full path to the dll in the Simulation access extension window or in the procedure definition (LIBRARY: specified with full path). The preferred option is to put the dll in the same folder as the dynf/acmf. The next best is to update the PATH environment variable. If you want to deploy smoothly the dll to various users, then the best is to put it in bin folder of ACM/AD (for example, c:\program files\aspentech\AMSystem 2006\bin). Note that this is applicable only to dll loaded directly by ACM/AD. When the user code is dynamically loading other dlls, then it is the user's responsibility to work out how to load those dlls. Keywords: DLL, dynamic link library, search, locate, binary, custom code, fortran References: None
Problem Statement: How do I improve performance when getting and setting variables in the Aspen Custom Modeler COM interface?
Solution: Here are a couple of tips for speeding up the access to variables. 1) Read the Help topic Improving the Speed of Visual Basic Scripts in the Automation Keywords: Automation, COM, getvariable setvariable. References: section. Even though it refers to VB scripts, it is really talking about the Automation Interface in general. It will apply to any programming language. 2) Under the section Automation Methods and Properties, look at the GetVariableValues() and SetVariableValues() methods for blocks, streams, structures and flowsheet objects. These methods allow the getting and setting of values on a collection of variables in one call thus saving on the per call overhead.
Problem Statement:
Solution: you can use Changesinputs command under Option list while declaring procedure. For example: PROCEDURE PressureCal CALL : pres; LIBRARY : C:\Examples\mysim; INPUTS : Flow, geomatry factor; OUTPUTS : pressure-drop; OPTIONS : ChangesInputs; LANGUAGE: Fortran; IMPLEMENTATION : SUBROUTINE C:\Examples\pressureCal; END In the option list chnagesinputs statement will allow you to change the value of an input variable in the external code. You can use this to calculate and return an initial estimate for a variable. you can combine this another option command called PRECALL to call procedure before the run starts as required. you need to be careful using this features because the effect of changing the value of a structural parameter, or of a runtime parameter during the run, is undefined, and changing the value of an input variable may cause the simulation to fail, unless the procedure is torn.. Keywords: PRECALL, Procedure, References: None
Problem Statement: What is the purpose of PermanentRevisionMarks in the Aspen Basic Engineering configuration file?
Solution: In the Aspen Basic Engineering configuration file, StandardlibrarySet.cfg, there is a setting called PermanentRevisionMarks. It is set to False by default. If PermanentRevisionMarks =False, then the RevisionMark on the datasheet will only stay when the linked field is updated and the last revision number will appear in the Revision field. If PermanentRevisionMarks =True, then the RevisionMark on the datasheet will stay and will be updated only when the linked field changes If you set it to true, the revision mark will be kept on the datasheet and updated only when there is a change on one the fields linked to this revision mark. Keywords: features, settings, configuration References: None
Problem Statement: Why are table attributes in Aspen Custom Modeler sometimes missing even though they have been selected correctly in the properties table?
Solution: Somehow the value of column width in the local variables form has been set to zero. Please delete the following registry key: HKEY_CURRENT_USER\Software\AspenTech\AMSystem\XX.X\Explorer\Settings This will remove any saved column widths for all forms. It will not do any harm to delete all the settings, the forms will display with default column widths. Unfortunately it is not possible to find just the local variables form because the forms are not clearly identified by name. Keywords: Column Width, Local Variable References: None
Problem Statement: How can I compile and link the source code of my procedure with the Intel fortran?
Solution: Starting with version 2006, ACM supports only the intel compiler for fortran procedures. It generates the appropriate makefile (makeusercode) which is invoked when you go to tools, generate procedure code and leave the option to execute the makefile active. In some cases it may be convenient to build the dll from the graphical user interface of Visual Studio .NET 2003. To do this, you need to create a new fortran dll project, remove the template code, and add the code of the procedures and the wrappers. You need also to modify the project settings: - under Fortran, External Procedures, set the Calling Convention to CVF - under Linker, General, set the Additional Library Directories to c:\program files\aspentech\AMSystem 2004.1\procedures - under Linker, Input set the Additional Dependencies to libsax.lib libatdll.lib You can then compile and link the dll from the Visual Studio environment. (You will get a warning from the linker about a default library, you can ignore this message). An example is attached. Keywords: References: None
Problem Statement: When I try to create a HTRI input file for air coolers I get the error below: Error:<AZError Desc=Failed to find ClassView for Htri HR=E_FAIL File=.\ReadView.cpp Line=279 /> <AZError Desc=Failed to find ClassView for Htri HR=E_FAIL File=.\Main.cpp Line=142 /> <AZError Desc=Failed to find ClassView for Htri Src=AZDataServiceModule::ProcessRequest HR=E_FAIL File=azdbserver\AZDataServiceModule.h Line=1833 /> <AZError Desc=Failed to find ClassView for Htri Src=AZDBMappingSvcs::ReadView HR=E_FAIL /> <AZError Desc=Failed to find ClassView for Htri Src=SAXSchemaParser::endElement() Activity=Parsing element ReadView(Ln 2, Col 91) HR=E_FAIL /> <AZError Desc=Failed to find ClassView for Htri HR=E_FAIL File=.\ReadView.cpp Line=206 /> <AZError Desc=Failed to find ClassView for Htri Src=ReadViewParser::ReadViewObject HR=E_FAIL File=.\ReadView.cpp Line=314 /> <AZError Desc=Failed to find ClassView for Htri Src=ReadViewParser::QueryClassView HR=E_FAIL />
Solution: Currently, thermal design interface does not export/import air coolers to HTRI. ClassView for HTRI is mapped to class ShellAndTubeHeatExchenger. Keywords: HTRI, aircoolers, AirCooledExchanger class References: None
Problem Statement: Why doesn't the availble sheet connector window appear when I click on link sheet connectors?
Solution: If the stream connector is not linked properly to the connection, then 'available sheet connector' window will not appear when you will click on the 'link sheet connectors'. To make sure if the connection is linked to sheet connector, click on the connection to select it. If you see a black dot connection, it is correct but if you see a pink dot connection, it is wrong. Then you need to drag the connection and place it correctly. See below the right connection and wrong connection snapshot: Keywords: interface, GUI stream connectors, formatting References: None
Problem Statement: How do I create a customized excel template for exporting the EDR results?
Solution: To create your own customized excel template for the results from EDR, first make a copy of the *blank.xlt template located in the Aspen Exchanger Design and Rating\Excel Templates sub-directory and rename it to use as your template for the customized results form. The steps to customize the excel template are: 1. Open the new (renamed) template in Excel. 2. Enable the macros. 3. Now by selecting various sections of the output results in EDR, you can drag and drop into your template. 4. You can change what information is moved from EDR by right-clicking and selecting Drag-drop format. You can select to the value or units of measure only or to the Caption, Value, and Units (see the below image). After your customized template is complete and saved, every time EDR is run, you can open your customized template to review the results from the run. To do this go to File | Export to | Excel using Specified Template and select the customized excel template. Keywords: customized, template, excel, results, export References: None
Problem Statement: Why do Aspen Custom Modeler (ACM) and Aspen Plus OLE interfaces behave differently as automation servers? When Aspen Plus is used as an automation server, several references to the application object can be created and maintained. While when ACM is used as an automation server, only one reference to the application object is maintained.
Solution: This is an incomplete observation. In a client application, multiple handles to Aspen Plus and ACM can be created and maintained. However, the user neesd to understand the different implementations of OLE interface in the two products. With Aspen Plus OLE interface, a new application object is always created when a documented is loaded. With ACM OLE interface, an application object can open a document, or close the current one and then open a different document. A new application object does not have to be created. From software standpoint, ACM OLE interface is a single document application fully compliant to Microsoft definition. For integration developers, multiple application objects of Aspen Plus and ACM can be created and maintained. The difference is that a new Aspen Plus application object will be created automatically every time a document is opened. Multiple ACM application objects have to be created from different references in client applications as following: Dim ACMApp1 As Object Dim ACMApp2 As Object ACMApp1 = CreateObject(ACM Application) ACMApp1.Visible = True ACMApp2 = CreateObject(ACM Application) ACMApp2.Visible = True Keywords: ACM OLE References: None
Problem Statement: Is it possible to use hiTRAN wire matrix inserts in Aspen Air Cooled Exchanger?
Solution: Starting with V7.2, Aspen Air Cooled Exchanger can now model the proprietary hiTRAN wire matrix inserts made by Cal Gavin Ltd. To use this option, you must have access to the software component (dll) provided by Cal Gavin (www.calgavin.co.uk) for these inserts. There are three hiTRAN calculations options: 1. Find Optimum Insert which determines the most effective insert type (defined by a 50 digit part number) which conforms to a specified allowable tube-side pressure drop. 2. Use Previous Insert, in which an insert determined by a previous Find Optimum Insert calculation can be used in an AirCooled design, simulation, or checking calculation 3. Specify New Insert, in which the user can specify the hiTRAN insert 50 digit part number to be used in an AirCooled calculation. Within an AirCooled calculation, the user can specify up to three different insert types (under Input | Program Options | Methods/Correlations | Tube side Enhancement | Enhancement type )defined on the basis of tube-side passes. The inserts are intended primarily for single phase duties, but the program will estimate heat transfer and pressure drop for 2-phase flows using performance curves. Keywords: hiTRAN, Aircooled exchanger, Tube side enhancement, inserts, wire matrix. References: None
Problem Statement: How do I perform a dew point or bubble point calculation using submodel Props_Flash2?
Solution: In Aspen Custom Modeler, the submodel Props_flash2 can be used to calculate dew point and bubble point. To perform a two phase dew point calculation, the following code can be used: Pflash2 as Props_flash2 (T=T, P=P, z=zin, h=hout); Pflash2.vfR: Fixed, 1; Here T is temperature (C), P is pressure (bar), z is overall model fraction, h is overall enthalpy (GJ/kmol). Variable vfR is required vapor fraction, fixed to be 1 for dew point and 0 for bubble point. When vfR is fixed, one other variable among T, P, h should also be fixed directly or indirectly. Keywords: dew point, bubble point References: None
Problem Statement: Which LMTD equations are are used in the pLMTD procedure call?
Solution: ACM uses the standard equations for LMTD based on countercurrent and cocurrent flows when the pLMTD call is executed. The call is determined off of the input conditions that are specified. You can see how this call can be implemented in the source code of the Aspen Dynamics HeatX model, if you have a license for Aspen Dynamics. Go to the Simulation Explorer window and select Simulation / Libraries / Dynamics / Heat Exchangers and right click on the HeatX block and select edit (this path is valid for version 2006, other versions may have small differences.) For example: // heat transfer IF (GlobalRFlow AND PDriven) THEN // ensure LMTD flow direction is consistent IF (LMTDFlowDir == Countercurrent) THEN IF (ColdSide.In_F_F >= 0 AND HotSide.In_F_F >= 0) OR (ColdSide.In_F_F < 0 AND HotSide.In_F_F < 0) THEN // both flows in same direction call (LMTD) = pLMTD (ColdSide.Tin, HotSide.Tin, ColdSide.T, HotSide.T, Countercurrent); ELSE call (LMTD) = pLMTD (ColdSide.Tin, HotSide.Tin, ColdSide.T, HotSide.T, Cocurrent); ENDIF ELSE IF (ColdSide.In_F_F >= 0 AND HotSide.In_F_F >= 0) OR (ColdSide.In_F_F < 0 AND HotSide.In_F_F < 0) THEN // both flows in same direction call (LMTD) = pLMTD (ColdSide.Tin, HotSide.Tin, ColdSide.T, HotSide.T, Cocurrent); ELSE call (LMTD) = pLMTD (ColdSide.Tin, HotSide.Tin, ColdSide.T, HotSide.T, Countercurrent); ENDIF ENDIF ELSE call (LMTD) = pLMTD (ColdSide.In_F_T, HotSide.In_F_T, ColdSide.Out_P_T, HotSide.Out_P_T, LMTDFlowDir); ENDIF Keywords: LMTD, pLMTR, equation, ACM References: None
Problem Statement: Here is a demo case file of a custom model developed in Aspen Custom Modeler describing how to handle oil assays, stream and discrete output.
Solution: The attached files are demonstrations of Simplistic User Models created in Aspen Custom Modeler (ACM). These address the following issues: Show Organization of Data, Create Oil Assays Capture Physics Handling Streams & Discrete Output Model will reside in ASPEN server Discuss and exchange best practice Please see the attached files for details. Keywords: RPSEA, ACM, assay References: None
Problem Statement: How do I resolve a fatal error that occurs when the equipment type is set to Ducted Bundle in Aspen Air Cooled Exchanger?
Solution: Aspen Air Cooled Echanger can use a Ducted Bundle if specified under Input | Application Option and Equipment type. If the user is trying to specify extra tubes, the program will show a fatal error like the following: Input Error 8004: The data input for Bundle type is unacceptable. There is a difference in the default setting for U-bend configuration from Input | Exchanger Geometry | Headers & Nozzles | Headers tab between Ducted bundle and Air-cooled exchanger. If Air-cooled exchanger is selected for Equipment Type, the default is set to No U-bend. However, when Ducted bundle is selected for Equipment Type, the default is set to U-bend for every pass. This will not allow any extra tubes. In this case, the user can change the U-bend configuration from the default to No U-bend and then run. The program should run without the fatal error. Keywords: Ducted bundle, Equipment type References: None
Problem Statement: I want to use saturate natural gas as a fluid within the program. Can I do it in Aspen Air Cooled Exchanger?
Solution: No, it is not possible to do it within the software. The alternative is to use a software such as Aspen Plus or Aspen HYSYS to define a heat exchanger with the saturated natural gas stream. Then, use the import menu in the Aspen Air Cooled Exchanger to import the fluid properties into your simulation. Keywords: Saturate natural gas References: None
Problem Statement: Some time, an element in an array cannot be found on the variable table. For example, you may have an array named TEMP with 4 elements. On the all variable table, you only see TEMP[1] TEMP[3] Where is array element TEMP[2]?
Solution: In similar situations, if you check the appearance of TEMP elements in equations, you will find that TEMP[2] does not appear in any of the equations in your model. By design, Aspen Custom Modeler will not allocate the variables that do not appear in at least one equation. Keywords: missing array element, array References: None
Problem Statement: How can I scale my equations?
Solution: When ACM is solving a simulation which involves non-linear equations (which is almost always the case), the solver will iterate over the value of variables until the convergence criteria is satisfied. There are 2 convergence criteria available in ACM: - variable steps - residuals The first criteria is satisfied when the value of the variables between two iterations are no longer changing (steps). The second criteria is satisfied when the largest value of the residuals is smaller than the residual tolerance. As an example, let's take a trivial (and linear) equation: x = y; ACM will converge on the residual convergence criteria when (x-y) is smaller than the tolerance (default: 1e-5). This means that the values of x and y will be known with an absolute accuracy of 1e-5. When you select carefully the base units of measurement, this should be ok. The alternative is to use the variable steps convergence criteria or a combination of both. However, it is important to keep in mind that the residual convergence criteria is the default, so it is better if you can modify your models to converge on the residual convergence criteria. One way is to scale the equations by multiplying the left hand side and right hand side by the same factor: x * 1e4 = y * 1e4; In this case the residual convergence criteria will be satisfied when x - y is smaller than 1e-5 / 1e4 = 1e-9, which could be needed when both x and y are small values (say for example around 1e-5). This technique can be called static scaling, as the scaling factor is independent of x and y. This approach is typically used when you need to tune a model to improve its convergence for a specific problem. You can make the approach more flexible by using realparameters to define the scaling factor, e.g.: scalefac as realparameter (1e4); scalefac * x = scalefac * y; Another suggestion is to use dynamic scaling, where the scaling factor is a simple and adequate expression depending on the value of the variables. For example: x / max(1,abs(x)) = y / max(1,abs(x)); If you know for sure that x and y can never be zero, you may even consider using: x / y = 1; When you use these techniques, it can be useful to keep the original equation as a comment in the model and some explanation of why you have modified the equation. Keywords: References: None
Problem Statement: Why do I get this warning message? Group 1: B1.y Integrating from 0 to 0.01 Restarting integrator at 0 Warning: B1.x is a torn state variable!!! Simulation results may be unreliable! The model is: Model demo x as realvariable (initial); y as realvariable (free); a as realvariable (fixed, 2); $x = -a*x+y; call (x) = pCopy1(y) tear; end
Solution: Remove the tear keyword from the procedure call. A state variable is a variable for which the model is using the time derivative ($x or x.derivative) in some equations. In older versions this message was stating that the index of the simulation was greater than 1 and was an error instead of warning. From version 2004.1 it is a warning. You are still allowed to run the simulation, for backward compatibility reasons but typically the simulation will fail as the integration solver cannot deal with such a problem. We do not recommend tearing state variables. In the above example, you will see the value of x and y take infinite values very quickly. If you remove the tear keyword, then you will get a first order lag stable response, leading x down to 0. This is the correct result. Tearing procedure outputs is described in the on-line help. This is an advanced modeling technique which may help speeding up the simulation as it allows the decomposition to generate smaller groups of equations. It is used for example in the MaterialStream stream type (search for TEAR to locate the relevant code). Note that in that stream type, no state variables are being torn. Keywords: tear, procedure, index, DAE References: None
Problem Statement: Get Receive cim-io errors - Running cim-io to opc on dmcplus machine with a remote opc / generating get failures
Solution: FYI: Actually the industry standard is to connect the OPC client (cimio for opc) to an OPC server locally or directly to a remote system. This method does not require the OPC client to be installed on the OPC server system. What this configuration does it to direct the client to connect to a registered OPC server on the local system which is set via DCOM to run on a remote system. Suggestion: Remove the Node name from the startup command. If they using OPC Properties to configure the device they will have to remove it and read it without the node name. Remove the Server from the OPC Properties Add the Server back, using OPC Properties, omit the Node Name from the configuration and it will default to the local machine Keywords: cim-io, opc, client, server, read, t-api References: None
Problem Statement: How does CV Step Work? Note: The attachment to this
Solution: contains the following text with the addition of screen shots for better explanation.Solution The Aspen DMCplus code has been reviewed, and found that the documentation is a little misleading. The current documentation has the phrase, Use CVSTEP to limit the size of a steady-state target change per control cycle for a non-ramp dependent variable. It actually ties the maximum SSDEP to the current value of DEP by manipulating the operator limits. Based on this information we should be able to tell what is happening at the client site by looking at the DEPACT when this condition is occurring. He may have given us this information in the call, but the automated mail inclusion makes the information almost impossible to decipher. Here is an example run using COL5x3. If I set the CVSTEP for AI-2021 to 0.1, and then step the simulation I get the behavior that the customer is expecting. Note the DEPACT is SS Step Up. If I repeat the experiment but I change the limits of AI-2020, then I can force the CVSTEP to be violated, and it reports a DEPACT - Above Hi. This is also OK and expected behavior. There is quite a bit of logic in the transform code that attempts to deal with asymmetrical transforms where the size of CVSTEP in the transform space depends on where you are located along the curve and what direction you are moving. It calculates DEP + and - CVSTEP and then transforms DEP - CVSTEP, DEP, and DEP + CVSTEP and then does calculations in Xform space to determine which CVSTEP is most restrictive. It attempts to enforce this most restrictive CVSTEP. If this calculation is incorrect we could see the behavior that the customer is reporting. There are 2 possibilities; 1. DEPACT is Above Hi (or Below Lo) - the engine has had to give up on CVSTEP to enforce other constraints. 2. DEPACT is SS Step Up (or Down) and the CVSTEP is violated - the the transform Code is incorrectly setting the value of CVSTEP. 3. DEPACT is none of the above - again there is a bug in the transform code that needs to be investigated. If the customer reports case 2 or 3 then we will need to get their mdl file and attempt to duplicate the behavior in simulate so we can debug it. Keywords: None References: None
Problem Statement: Why most of the options in Datasheet definer or Excel Datasheet editor are grayed out?
Solution: When you will connect to workspace in Datasheet Definer or Excel Datasheet editor, the options will be grayed out till you will open the datasheet. So to make the options available, open the datasheet first. Keywords: . References: None
Problem Statement: Which databases are supported by Aspen Basic Engineering V7.3?
Solution: Aspen Basic Engineering supports these databases on 32-bit and 64-bit platforms: Microsoft SQL Server: Microsoft SQL Server 2005 SP3 (Standard Edition), Microsoft SQL Server 2005 SP3 (Enterprise Edition) or Microsoft SQL Server 2008 R2 (Enterprise Edition) Oracle: Oracle Database 10g Release 2 The bit type of the database should be consistent with the hardware on which the database tier is installed. Microsoft Access: Aspen Basic Engineering also supports Microsoft Access on 32-bit hardware. Access is NOT available for 64-bit platforms. Keywords: database, requirements References: None
Problem Statement: When I compile my models, I get warning messages such as: Warning at position 11: The assignment to external property x may conflict with other assignments made to the same property What does it mean? Should I worry?
Solution: Yes, this warning should not be ignored. Let's remind ourselves what is the purpose of the external keyword when used in submodels. This avoids duplication of variables that would be used both in the model and the submodel; instead of declaring a variable, the external keyword declares a pointer to the parent variable. It may be useful to see this as if the submodel borrows the variable from the parent model, but does not really own it - so there will be some limitations. Attached is an example that shows the inconsistent behaviour you may observe. The file is for version v7.1 so it cannot be opened with older versions of Aspen Custom Modeler. It simply consists of 3 models: Model sub x as external realvariable; y as realvariable; y = x; x : fixed; End Model sub2 x as external realvariable; y as realvariable; y = x; End Model mod x as realvariable; u as realvariable; u = x; s2 as sub2; s as sub; End We have 4 variables (x in mod, u in mod, y in sub and y in sub2). We have 3 equations. So we need one specification. Depending on the order in which you compile the submodels, the simulation will end up correctly specified, or underspecified by 1. Why? The submodel sub assigns the external variable x the specification fixed. If you compile this submodel last, then the simulation is square. On the other hand, if you recompile the model sub2, then the simulation becomes underspecified - since this submodel sub2 does not declare x as fixed (and the default specification free is then used). Having a simulation that behaved differently according to the order in which the models are compiled is not very practical. On the other hand, most of ACM models do not execute in some sequence over which the user has control, and there is nothing in the language to alter the order in which assignments are processed. The correct approach to avoid this problem is to specify the variable x in the model mod and not in the submodel, according to the philosophy that only mod owns the variable. The other option is of course to not use the external keyword and modify the submodel declarations accordingly. Keywords: References: None
Problem Statement: 当使用Aspen EDR(Exchanger Design and Rating)程序取代Aspen B-Jac程序进行设计时,用户可能已经没有B-Jac的使用授权。(更多关于Aspen产品不同版本的技术支持有效期的信息,请到Aspen技术支持官方网站搜索'product lifecycle'关键词) 本解决方案讲解,除了使用如何'File Conversion Utility' (
Solution: 125142)之外,如何在EDR程序界面内部将B-Jac模型文件转换为EDR 模型文件。 Solution 让我们用转换Areotran to AirCooled exchanger (空冷换热器)作为例子。您需要进行以下步骤: ? 您需要打开一个新的EDR程序窗口,选择'Aerotran - Air-cooled & economizer thermal design'. ? 一个空白的'Areotran' 文件会被建立。在程序的顶端目录里找到File > Open,找到您要转换的Aerotran文件,选中并打开它。您会看到Aerotran的模型文件会在其相应的应用窗口中被打开,即便有关于Aerotran授权缺失的警告信息, 因为用户已没有Aerotran的使用授权。但是此Aerotran授权的缺失只会使用户无法运行Aerotran模型,却并不影响模型的应用窗口的打开。 ? 现在到Run > Tranfser,选择'Air Cooled Exchanger'. ? 点击'OK'. 您应该看到数据已经被传输进了AirCooled模型应用里面. 您会被告知,当下次您尝试保存此文件时,一个EDR文件而非BJAC文件会被保存. ? 现在您会看到Aerotran窗口仍然在最前方. 别担心, 因为当您缩小或最小化当前的Aerotran窗口时,您就会看到其实AirCooled应用窗口已经打开, 建立, 并接纳了Aerotran的数据, 只不过之前它被隐藏在Aerotran窗口的后方. ? 在最小化Aerotran 窗口之后,你会看到AirCooled应用窗口包含了所有从Aerotran传输过来的数据. 您应该能够运行AirCooled模型了. ? 假设既然用户已没有Aerotran使用授权,用户可以选择在保存当前文件的时候移除Aerotran模型应用. 您可以到File > Remove Application, 选中Aerotran点击 'OK'. 现在,这个文件就只包含AirCooled应用了. 您可以选在保存它. 我们建议您选在把它保存为另一个文件,区别于之前的Aerotran起始文件. 这样可以避免覆盖之前的可作为备份的原始Aerotran文件. 转换Hetran到Shell&Tube (管壳换热器), 转换Teams 到Shell&Tube Mechanical (管壳换热器机械设计),和上面描述的转换Aerotran到AirCooled是一样的过程. Keywords: 转换 BJAC, B-Jac, EDR, Hetran, Aerotran, Teams, Shell&Tube, AirCooled, Shell&Tube Mechanical, 管壳换热器,空冷换热器,管壳换热器机械设计, CN- References: None
Problem Statement: Why is the Browse button disabled when we open the Open workspace dialouge box and choose connect to a workspace?
Solution: When server name is empty, ABE (Aspen Basic Engineering) will not allow user to browse for workspace name. To enable browse button, you should provide valid ABE server name. Keywords: disabled button, browse button, open workspace References: None
Problem Statement: How do I prevent the display of a stream in the summary sheet?
Solution: You can apply 'Filters' in the summary sheet. To filter stream XX in the summary sheet, you can use the below code: [?Class=PipingSystem, DisplayName=PipingnotXX?]  AZFilter PipingnotXX( )  PipingnotXX = true if Self.ItemNumber = XX Then  PipingnotXX = false End if End AZFilter Keywords: References: None
Problem Statement: How can I read the value of some variables from a file before a run, then write the value of other variable values to a file after the run?
Solution: A simple approach is to use the FileSystemObject provided by the VBScript language. For example, the following script reads the value of B1.T and B1.p from the file d:\input.txt. Const ForReading = 1, ForWriting = 2 Dim fso, f Set fso = CreateObject(Scripting.FileSystemObject) Set f = fso.OpenTextFile(d:\input.txt, ForReading, True) line = f.ReadLine B1.t.value = CDBl(line) line = f.ReadLine B1.p.value = CDBl(line) f.Close The following script can be used to write the value of B1.z to a file: Const ForReading = 1, ForWriting = 2 Dim fso, f Set fso = CreateObject(Scripting.FileSystemObject) Set f = fso.OpenTextFile(d:\output.txt, ForWriting, True) f.WriteLine Cstr(B1.z.value) f.Close Finally, the following script invokes both scripts and runs the simulation. invoke read_vars application.simulation.run(true) invoke write_vars Naturally, an improved implementation would test for errors (e.g. if the file is not present, etc). You would have to change the code to add On Error Goto or On Error Resume Next and check for Err.Number <> 0. The scripts in the attached example file do some error checking. Keywords: References: None
Problem Statement: How snapshots tool infers whether there are structural changes or not when a parameter value is changed?
Solution: At the moment a parameter value is changed, Aspen Custom Modeler checks whether the parameter is used to dimension an object. If a parameter value is changed but the parameter is not used to dimension anything in the model, then ACM determines that there is no structural changes and as such keeps the existing snapshots as snapshots rather than marking them as results. Note that the snapshot tool should carry on the Copy Values action without warning dialog of structural changes when copying values from a snapshot to current simulation. On the other hand, if the parameter is used to dimension a variable, regardless the variable itself is used any where by the model or not, ACM will mark all existing snapshots in snapshot tool as results. Consequently, the snapshot tool considers the parameter value change a structural change when copying values from a snapshot to current simulation. To observe this behavior, simply load the attached model, run and take a snapshot right away. Next, change the parameter 'length' value and open up the snapshot tool. You will observe the snapshot has already became a result. Click on the Copy Values button and you would see the warning message of structural changes in place. Next, comment out the dummyArray line in the model code such that the parameter 'length' will not be used any where. Save As the model to another name and reload the new model. Repeat the above steps and you would see snapshots survive length values changes and you would be able to carry on Copy Values button action without warning messages. Note that reloading is necessary since code editing and compiling trumps all other actions and forces all snapshots to become results and as such the structural changes clause becomes true. Keywords: Snapshot, Parameter, Value, Structural Changes References: None
Problem Statement: New Feature in Aspen Custom Modeler V7.2 - New Model Editor
Solution: Aspen Custom Modeler V7.2 includes a new model editor which includes a number of usability enhancements and time-saving features including: Split screen editing Automatic completion of keywords Popup lists of available types Code outlining/folding Automatic indenting Automatic highlighting of matching parentheses F1 Help on selected keywords Inserting variable names using drag & drop in to the editor Improved Search and Replace commands Split Screen Editing Split screen editing allows you to view two sections of the model concurrently. For example, you might want to view the variable definitions while writing equations elsewhere in the same model. You can split the screen vertically or horizontally. Auto-Completion and Pop-Up Lists The new editor supports auto-completion for Variables, Parameters, Ports, Models and Structures. This improves your efficiency while developing models. Use ALT+V to get a list of variable types. Code Outlining and Folding Code outlining and folding lets you collapse chunks of code using the ?+? and ?-? icons on the left side of the screen. For example, you might choose to temporarily fold the contents of a for loop to see the code above and below the loop. Code Folding lets you temporarily hide a block of equations in order to view the context of the equations. Automatic Indenting In V7.2 you can use the tab key to indent a section of code. Subsequent lines within the same block of code will retain the indent. Indenting makes your models easier to read and understand. Parenthesis Matching The V7.2 editor highlights matching parenthesis, making it much easier to troubleshoot complex equations with many nested sets of parenthesis. F1 Help on Selected Keywords: The V7.2 editor includes context-sensitive help. Place the cursor over any blue keyword and hit 'F1' to get help on the keyword including usage, syntax, and examples. Drag and Drop Variables into the Editor With V7.2 you can drag variables from any model table or the variable finder and drop them directly into an equation in the editor. Improved Find and Replace Text search and replace functionality has been substantially improved in the V7.2 editor. You can replace items instance-by-instance, within a selected section, or over the whole document. References: None
Problem Statement: Is it possible to modify the flowsheet constraints with automation, such as for example using a script?
Solution: The flowsheet constraints let a user specify additional equations and variables in the Flowsheet folder. In those equations you can access variables from any block or stream. This may be useful as an alternative to control signals and control models. It is possible to specify the flowsheet constraints code using automation. Let's review the relevant methods. You can retrieve the current code in a string variable with the following flowsheet script: s = Simulation.GetTypeText(Flowsheet) application.msg s You cannot modify portions of the flowsheet constraints. You can only replace the code completely. The flowsheet script below shows how to do this: ' specify the code in string variable s s = CONSTRAINTS & vbLF & _ y as realvariable; & vbLF & _ END ' replace the code Simulation.SetTypeText Flowsheet, s ' compile the code Simulation.CompileType Flowsheet SetTypeText sets the code of the flowsheet constraints, then you need to use CompileType to compile it. If it returns an error, it means something went wrong (a compilation error). Those methods are documented in the on-line help, under Automation Keywords: vbscript, VBA References: .
Problem Statement: New Feature in Aspen Custom Modeler V7.2 - Active Models
Solution: The Active Models feature acts on a selected instance of a model. Right click on an object and select Active Model to view, create, or create and apply (use) an active model from the selected model. Models can contain conditional statements that change the equations used depending upon the configuration of the model. The configuration is determined by the values of model parameters. The equations that are actually used are called the active equations. The new Active Models feature lets you create a model that contains only the active equations that are being used for a given block. Viewing the active model makes it easier to understand the equations that are actually being used in your simulation. Also, the active model is also a good starting point for customization of a model for a particular application. This feature is particularly useful when you are working with complex general purpose models like those in Aspen Plus Dynamics. Switching an instance of a block to its corresponding Active Model can reduce the complexity of the flowsheet and will reduce the time required to load the model. The Active Model feature requires a Custom Modeling license. It can only be applied to public models. Keywords: None References: None
Problem Statement: If multiple versions of the Intel Fortran compiler are installed, how do you set a specific version to be used to compile a Fortran procedure?
Solution: Intel FORTRAN versions 9.0, 9.1, 10.0, 10.1, 11.0 or 11.1 are supported versions for ACM V7.2. The compiler must be configured so that it can be used from the command line. If multiple versions of the compiler are installed, by default the most recent version is used. To specify a particular version, set the environment variable IFORT_COMPILERxx to any value, where xx is the required version, for example, IFORT_COMPILER91. Valid values of xx are 110, 11, 101, 100, 10, 91, and 90. Keywords: Fortran, Intel compiler, Intel Fortran, compiler version References: None
Problem Statement: How licenses are allocated in Aspen Basic Engineering?
Solution: In Aspen Basic Engineering, licenses are checked per workspace/ per user/per client machine basis. There can be following scenarios:  When first connecting to a workspace, a license is checked out. This is done on a per user basis; a second user will check out a second license and so on. No additional licenses are checked out when you launch and connect further client applications to the same workspace. However, this only applies if you are logged in under the same user name and are connecting from the same client computer.  Connecting to another workspace will result in another license to be checked out. Again you can launch and connect any number of client applications on the same machine to this additional workspace without needing further licenses.  Connecting to a workspace from a second client computer will cause an additional license to be checked out. Once connected you can connect multiple client applications to the same workspace from this second machine under the same user account without requiring further licenses. For further clarifications on how your pool of licenses operate, within the terms of your software license agreement, you can contact your business support or sales representative. Keywords: License, workspace, user, client machine. References: None
Problem Statement: What can be reasons of The remote procedure call failed. error message, as shown below? <AZError Desc=The remote procedure call failed. Src=AZBroker::TestWorkspaceConnection Activity=Initializing workspace server HR=0x800706be File=.\AZBroker.cpp Line=372 /> <AZError Desc=The remote procedure call failed. HR=0x800706be /> The following information was included with the event: <AZError Desc=The remote procedure call failed. Src=AZBroker::CreateWorkspace Activity=Creating workspace.cfg file HR=0x800706be File=.\AZBroker.cpp Line=729 /> <AZError Desc=The remote procedure call failed. Src=AZBroker::TestWorkspaceConnection Activity=Initializing workspace server HR=0x800706be File=.\AZBroker.cpp Line=372 /> <AZError Desc=The remote procedure call failed. HR=0x800706be />
Solution: This error may occur due to one of below reasons. You can check the following: 1. Ensure that AZBroker service is running. You can open services either from control panel | administrative tools | Services or using services.msc on the run command. If it is not running, you can start it. Also make sure that it is set to auto start. 2. Ensure the Broker Service is configured under the correct account and that the correct password is set. You can Right mouse click on the AZBroker service and select properties. Click the Log On tab. This allows to check the account and password. In case of standalone installation, log on as ?local system account? may be used. 3. If you are running ABE on client-server environment, make sure the log on identity for AZBroker service is a domain account. Also ensure that domain account is a ZyqadAdministrator. Keywords: Broker services, SQL/ Access user accounts. References: None
Problem Statement: Can I run a query directly in SQL, rather than using the Aspen Basic Engineering query editor?
Solution: The SQL database should only be queried directly as a last resort when Query Editor scripts cannot be used, e.g., to fix database integrity problems that cannot be fixed with a Query Editor script. Changing data via SQL queries can corrupt a workspace. Keywords: SQL query, ABE Query editor, workspace integrity errors References: None
Problem Statement: I need to make sure my Visual Basic code calling GetObject is starting a specific version of ACM. How can I select it?
Solution: There is no user-friendly method to do this. In fact, we recommend using the CreateObject method for which the version can be specified. With GetObject, we rely on the Windows registry which specifies how a file extension (e.g. .acmf) is related to a specific software. This is set at installation time. If you install ACM version 12.1 then ACM version 2004, GetObject will open your files with version 2004 (unless the file is already opened - in which case it will use the current session). The same applies when you install version 2004.1 after 2004: the files will then be opened with version 2004.1 by the GetObject method. As a work around, you can use the following technique to update the registry to a specific version of ACM: - open a command window - go to the folder c:\program files\aspentech\Aspen Custom Modeler vvv\bin - type regsvr32 amproduct.dll To be consistent, you should apply the same trick to all products based on Aspen Modeler, such as Aspen Dynamics to make sure they select the same version. For more recent versions of ACM, you can also use the Restore File Associations shortcut (from the Start menu). The recommended approach is to update your code. If your code uses the GetObject: Private Sub CommandButton1_Click() Dim acm As Object Set acm = GetObject(d:\test.acmf) acm.Application.Visible = True End Sub you need to change the code to use the CreateObject method: Private Sub CommandButton1_Click() Dim acm As Object Set acm = CreateObject(ACM Application 1210) acm.Application.Visible = True acm.OpenDocument (d:\test.acmf) End Sub The version numbers to be used are: - 1210 for version 12.1 - 1310 for version 2004 - 1320 for version 2004.1 - 2000 for version 2006 - 2100 for version 2006.5 - 2200 for version v7.0 - 2300 for version v7.1 - 2400 for version v7.2 Keywords: References: None
Problem Statement: A user has created library, and would like to run without the default library. How to do this?
Solution: Aspen Custom Modeler offers a command line option /Nodefaultlibraries. With this option, the default Aspen Custom Modeler libraries will not be loaded and only the user created library is used. The attached document contains the detailed instruction on how to apply this command line option. Keywords: default library, user library, command line option. References: None
Problem Statement: How does Aspen Custom Modeler calculate the standard deviation of estimated parameters?
Solution: The attached document explains how Aspen Custom Modeler calculates the standard deviation of the estimated parameters when using the weighted least squares method. Keywords: References: None
Problem Statement: How do you access the stream and block variables in ACM/AD for cases in which a stream and block have the same name?
Solution: For a situation where both a block and a stream have the same name, for example S1, the variables for the one that is created first will be implicitly referenced (in say the Varibale Find tool, Profile plots, Scripts etc...) by the simple abbreviation, S1.variablename But when the second is added, say the block, it will need to be referenced explicitly (in say the Varibale Find tool, Profile plots, Scripts etc...) as: blocks(S1).varname This is as opposed to naming both explicitly as: blocks(S1).varname streams(S1).varname Keywords: Accessing variable names variable names Stream referencing Block referencing variable find tool variable find find profile plot profile plot script References: None
Problem Statement: Does Aspen Custom Modeler support multiple inheritance?
Solution: An Aspen Custom Modeler language construction such as: MODEL xxx USES p1 ... END is correct in Aspen Custom Modeler, and makes the model xxx inherit all of the equations and variables (and other properties) of its parent model p1. However there is no construction like: MODEL yyy USES p1 USES p2 ... END This syntax is invalid. You can, however, express multiple inheritance by creating an intermediate model, in this case p1 MODEL p1 USES p2 ... END MODEL xxx USES p1 ... END See the Aspen Custom Modeler 10.2 Modeling Language Keywords: Multiple Inheritance Submodels References: , page 1-21 for documentation on inheritance. An alternative strategy is to use the submodel feature. You get most of the functionality of multiple inheritance by using submodels, but you can get more flexibility: you can map the variables with different names between the container model and submodel. you can clearly see the structure of the hierarchy once the model is placed on the flowsheet from the Simulation Explorer you can turn off submodels by instancing them in an array of submodels, and defining the the array as empty See the Aspen Custom Modeler 10.2 Modeling Language Reference, page 4-40, for documentation on submodels. The same reference gives an example of how to turn off submodels with empty arrays on page 4-41.
Problem Statement: Say for example I have an integer parameter n and an array x([1:n]). How to apply only on odd elements of x (x(1), x(3), x(5), etc)? In other words, what's the right syntax in Aspen Custom Modeler for the following statements? for i in ??? do x(i) = some expression; endfor
Solution: Strictly speaking, the loop is not like in other programming languages repeated over odd values of the index i. In fact, we need to set up the right set expression to obtain an integerset with only odd integer values. The range operator : in integerset expressions always assumes an increment of 1. This cannot be changed. We suggest the following set expression: odd as integerset; odd : union (foreach (i in [0:truncate((n-1)/2)]) [2*i+1]); for i in odd do x(i) = some expression; endfor You can also write: for i in union (foreach (j in [0:truncate((n-1)/2)]) [2*j+1]) do x(i) = some expression; endfor However you may find having the integerset odd useful to check the elements or if you want to use the same set in other statements of your model. Keywords: None References: None
Problem Statement: Why is the filter button grayed out?
Solution: There can be two reasons of why Filter button in Excel Datasheet editor is grayed out: 1. The Filter button is only applicable to summary sheets. If you are working with object datasheets, it will not be active. 2. The Filter button is grayed out when you open summary sheet for first time. To activate it, you need to click on any field in summary sheet. Keywords: settings, object datasheets References: None
Problem Statement: When I open ABE Administration Tool, an 'AZServer.exe' process for each workspace will briefly run before the admin tool open, and then the Administration Tool will open slowly. Why is this process running?
Solution: If a user's login is not a member of the ZyqadAdministrators group, an AZServer.exe process will be launched to determine if user has rights to administer each workspace as the Administration Tool builds its workspace list. Roles and Access Rights are stored in separate privlege.xml files for each workspace. Members of the ZyqadAdministrators group will be able to open the Administration tool more quickly. Keywords: References: None
Problem Statement: How do I make Aspen Basic Engineering Server recognize KBs or *.net modules?
Solution: It is possible that the KBs or *.net modules are on different server than installation directory or UNC path name specified in the configuration file. You must copy the *Net KBs to a folder on same machine as the server program files and point to the KBs using the ManagedKBs directory keyword in workspace library config file. The location of KBs must not be specified using a UNC pathname. For example following is not allowed: ManagedKBsDirectory=\\ABEServer\test\KB You must use a pathname directly on the server machine e.g. ManagedKBsDirectory=C:\ABE\Library\KB Keywords: settings, knowledge base, links References: None
Problem Statement: In ACM, there can be two types of tasks, event-driven and callable. Where should callable tasks be entered?
Solution: A callable task can not be executed by itself, and can only be used as a statement in a event-drive task. A callable task should be entered at the following places: 1) Simulation | Custom Modeling | Tasks 2) Simulation | Flowsheet Keywords: callable task References: None
Problem Statement: New Features in Aspen Custom Modeler V7.2 - Overview
Solution: Aspen Custom Modeler V7.2 includes the following new capabilities: New editor Creation of Active Models Improved diagnostics Model Export usability improvements Return to last converged step Faster Opening of Simulations Improved Overall Quality New Editor The text editor is used to edit type definitions, for example models, and to edit tasks and scripts. The editor has been completely re-implemented, and includes many advanced features including: Split screen editing Popup lists of available types Code outlining/folding Automatic indenting Automatic highlighting of matching parentheses F1 Help on selected keywords Inserting variable names using drag & drop in to the editor Improved Find and Replace commands More Microsoft Word-like behavior Auto completion of keywords Creation of Active Models Models can contain conditional statements that change the equations used depending upon the configuration of the model. The configuration is determined by the values of model parameters. The equations that are actually used are called the active equations. The new Active Models feature lets you create a model that contains only the active equations that are being used for a given block. Viewing the active model makes it easier to understand the equations that are actually being used in your simulation. Also, the active model is also a good starting point for customization of a model for a particular application. Active Models is particularly useful when you are working with complex general purpose models like those in Aspen Plus Dynamics. Improved Diagnostics The existing diagnostics view lets you see all variables that appear in an equation. In this release, we have added the ability to see all equations in which a variable is used. If a variable value looks suspect, this will help diagnose how this value was calculated. When you are viewing the list of variables in a group, a new column now shows whether a variable is on its bound. You can click on the header of this column to sort the variables to show all variables that are on their bound. If you think bounds may be the cause of a convergence failure, this is a useful way to see which variables are on their bound. The new Go to first unconverged option on the context menu for the Diagnostics node lets you jump directly to the first unconverged group. This is usually the group that you need to analyze to find the cause of a convergence failure. When a variable value is shown as being calculated in a previous group, you can click on a hyperlink to open that group in a new Simulation Explorer window. If the calculated value appears to be wrong, this helps you investigate the cause of this. Model Export Usability Improvements You can export ACM models for use in Aspen Plus, HYSYS, or PIMS. The exported model can include a VB script for initializating the model called Presolve. You can now automatically generate a Presolve script that initializes the values of all calculated variables in the model to the currentSolution within Aspen Custom Modeler. You can use this script to initialize the model to a typical convergedSolution, and so improve the convergence robustness of the model. A new option has been added to export a model directly to a dll on your PC, eliminating the need to create and run an MSI file. The MSI option is still present to enable you to deploy a model to another PC. A new Model Export toolbar has been added with buttons to create the Presolve script, Export the model to a dll or MSI, and to uninstall models exported as dlls. Return to Last Converged Step Currently, if theSolution of a dynamic simulation step fails, the values of the simulation variables are left at their unconverged values from the failed step. This is useful for diagnosing the cause of the step failure. The new integrator solver option Restore last step on failure has been added. When selected, if a dynamic simulation fails during integration, after the failure the solver will restore the variable values to those for the last converged step, and the simulation time will be set to the time for this step. If the failure was caused by a change you have made to a Fixed variable, this enables you to try a smaller or different change and see if the simulation is able to continue. Faster Opening of Simulations The time to open simulations has been reduced by up to 30%. The reduction is greatest for simulations that have large numbers of blocks, or blocks with large numbers of submodels. Improved Overall Quality Special emphasis was placed on the quality and robustness of Aspen Custom Modeler V7.2. Hundreds of defects, some dating back many years, have been resolved. In addition, a number of minor user-requested enhancements have been implemented. We believe ACM V7.2 is the fastest and most reliable version published to date. Keywords: None References: None
Problem Statement: What is the difference between open and close enumeration?
Solution: An enumeration can be defined as Open or Closed: Open An open enumeration has an initial option list defined in the definition but this is not considered to be comple set of possible options. A user can use the value available in the list or type in an alternative value. Closed A closed enumeration is one where the user cannot enter options not specified in the closed enumeration definition. User can only use the values available in the list. Keywords: References: None
Problem Statement: Where can I find a list of examples for Aspen Plate Exchanger?
Solution: In the installation folder, there are some example files which are delivered with the installation, these examples can be found typically in: C:\Program Files (x86)\AspenTech\Aspen Exchanger Design and Rating V9.0\Examples There is one example file per calculation mode, the description of which can be found in the table below. Title Description File Name Design a Plate Exchanger for given heat load Design case. Liquid phase only on both sides This will find the best geometry for a given duty. In this calculation mode, exchangers are designed by selecting from a notional set of plates, not linked to a particular manufacturer: · a range of 10 port diameters from 25 mm to 400 mm · a range of 4 chevron angles 30, 45, 50, 65 (degrees) · a short, medium and long plate of each type. Water-Water_Design_PlateFrame.EDR Simulate a Plate Exchanger Simulation case for 1 pass/1 pass exchanger. Phase change on hot side and liquid phase on cold side In this calculation mode, the full geometry and the inlet conditions for the hot and cold streams are given. The program calculates the stream outlet conditions Steam-Water_Simulation_PlateFrame.EDR Check heat load on a Plate Exchanger Checking case for 1 pass/2 pass exchanger. Liquid phase only on both sides. In this calculation mode, the full geometry, inlet and outlet conditions need to be provided. EDR ensures that a heat exchanger of specified geometry will achieve a specified duty, or specified stream outlet conditions. The result of this calculation is the ratio of the actual to the required surface area. Water-Water_Rating_PlateFrame.EDR Design a Plate Exchanger for a given Plate geometry Design with given plate case. Phase change on hot side and liquid phase on cold side. In this calculation mode, the program will calculate how many passes and the flow arrangement for a given plate. The plate can be selected from a manufacturer’s list or the geometry details of the plate can be given Condenser_DesignGivenPlate_PlateFrame.EDR Keywords: Aspen Plate Exchanger, example files References: None
Problem Statement: Estimation run is too slow
Solution: For some dynamic simulations when there is much communication between the GUI and server, enhanced performance can be obtained by relaxing the synchronization between the GUI and server. For a reasonable size simulation, increasing the value of the environment ACM_STEP_SYNC can give optimum performance improvement. This is especially so for a non-cpu intensive simulation with dynamic parameter estimation or dynamic optimization. To do this, set the environment variable ACM_STEP_SYNC to the number of solver steps that the system should allow the GUI to get behind the solver. A value of 5 will be sufficient for most dynamic simulations togive you maximum performance improvement. This means that at any time, the values displayed in the GUI can be up to 5 solver intervals behind where the solver is at that time. When you pause the simulation the GUI will catch up. Note--Do not use this environment variable in conjunction with OLE automation if you want to get or put simulation data during a run. Setting data up for a run and looking at results after the run has finished via OLE automation is not a problem. To set variable for WinNT, Go to the Start menu option Settings and select the Control Panel. Select the System icon from the Control Panel and then the select the Environment tab. Type in ACM_STEP_SYNC under Variable and the value required under Value. Press the Set button! To set variable for Win98, Edit the autoexec.bat file and type in the statement, SET ACM_STEP_SYNC=## Reboot Although a value of 5 is a reasonable starting point, it may be worth experimenting with values up to 10. Fixed in Version: Speed improvements have been made for version 10.2 and 11.1. The ACM_STEP_SYNC variable is automatically set for estimation in 10.2 and later versions. It is not advisable to change this variable unless you are using Aspen Custom Modeler 10.1. Keywords: dynamic estimation dynamic estimation dynamic optimization optimization performance speed cpu acm_step_sync step sync References: None
Problem Statement: How to double server performance by disabling folder security?
Solution: Performance Improvement by disabling folder security By default, Aspen Basic Engineering supports folder security: users with sufficient privilege can set the security options on a folder which is then applied to its contents. This capability results in both a performance and workspace size overhead. When folder security is enabled, each time an attribute is read or written to, the object holding that attribute is retrieved and all folders associated with that object are checked, and all parent folders for each folder are checked. That means every Equipment Breakdown folder and potentially every Status Breakdown folder is checked each time an attribute is read. Many companies do not use the folder security feature. Even if folder security is not being used, the security checks described above are enacted, leading to an un-necessary performance overhead. If you are not using the folder security feature, we recommend that you disable it. Disabling folder security has the potential of making the server at least twice as fast and half the size. To disable folder security, add the following line in your configuration file: DisableFolderSecurity = True This line can be added to either the library configuration file (for example, StandardLibrarySet.cfg), which is found in the ..\WorkspaceLibraries folder of your installation, or in the workspace configuration file (always called WorkSpace.cfg), which is found in the ..\Workspaces\<Workspacename> folder. Setting it in the library configuration file applies the setting to all workspaces that use that library set; setting it in Workspace.cfg applies the setting only to this workspace, which means that the setting can be different for different workspaces (if for example, folder security is used in some workspaces but not others) DisableFolderSecurity is set to False by default for backward compatibility. Keywords: References: None
Problem Statement: Why can't I remove or rename components in explorer?
Solution: In Aspen Basic Engineering explorer, the Remove/Rename components button is grayed out under Edit|Component management. This is because this is a privilege which is assigned to only specific users as shown below: If you want to have this privilege, contact your administrator. Keywords: set up, access, permissions References: None
Problem Statement: When importing data from Capital Cost Estimator to a workspace based on our libraries there is always an error reported at the end of the transfer and no report of the transfer is shown. All data associated with the equipment object appears to be transferred. The problem may be related to the failure of linking the equipment to the Plot Area through an association which occurs OK with the standard libraries but not with our libraries. Is there a supporting KB required or how can this Plot Area functionality be disabled as it is not of interest to our required functionality?
Solution: There is a PlotPlan KB that can be removed from the workspace's configuration. However, the Cost Mapper will attempt to call Rule within the PlotPlan KB to set up the associations. This call may be failing. To eliminate the error, it may be possible to change the PlotPlan KB so that only the CreateAssociationsAfterCostMapping rule is the only registered function in the KB. The code in this rule can be commented out or removed to satisfy the Cost Mapper call. The modified KB should be made part of the workspace's configuration. Else, add the rule: AZRule CreateAssociationsAfterCostMapping () ' server.trace 1, CreateAssociationsAfterCostMapping called End AZRule To one of your scripts and that will stop the error occurring. Keywords: Capital cost estimator, Plot Area, PlatPlan, CreateAssociationsAfterCostMapping rule. References: None
Problem Statement: Can you select one higher/ lower signal values comparing between two?
Solution: One can use HiloSelect control model to compare two output values and select higher or lower of them. If you want to select which value to pick, you need to right click on the model and click configure. From the table, you need to select which input to select. Keywords: Output, Signal, Configure References: None
Problem Statement: How do I remove a deleted workspace from the list of workspaces displayed in administration tool?
Solution: Sometimes the workspace is not removed from administration tool after it has been deleted. You can remove it by restarting the AZBroker service. Please be careful before you restart the Broker service as it will disconnect all the workspace connections. Keywords: References: None
Problem Statement: While trying to export data to an Exchanger Design & Rating (EDR) file from Aspen Basic Engineering (ABE) using the Thermal Design Interface, I am getting the following error: Error: on creating default file in Tasc+ working directory for export using registered template. Error Details: Invalid root in registry key HKLM\Software\AspenTech\B-JAC\CurVer\. Operation completed with errors and/or warnings. I do not have the root HKLM\Software\AspenTech\B-JAC\CurVer\ on my PC. When trying to run the EDR Version Control Utility to register my current EDR version I get the below warning: EDR is currently on a Virtual Box. Aspen Basic Engineering is on my desktop.
Solution: This issue arises because EDR is running on virtual machine and ABE is running locally. Because EDR is not installed locally on PC the root, the directory HKLM\Software\AspenTech\B-JAC\CurVer\ does not exist and ABE cannot find the registered template. Install both EDR and ABE locally on the PC to have Thermal Design Interface to work. Keywords: Thermal Design Interface, EDR. References: None