|
1
|
|
2
|
In the Application Libraries window, select COMSOL Multiphysics > Chemical Engineering > chemical_etching in the tree.
|
|
3
|
Click
|
|
1
|
|
2
|
|
1
|
|
2
|
|
3
|
|
1
|
|
2
|
|
3
|
|
4
|
Locate the Expressions section. In the table, enter the following settings:
|
|
5
|
|
1
|
|
2
|
|
1
|
|
2
|
|
3
|
|
4
|
|
5
|
|
6
|
|
1
|
|
2
|
|
3
|
|
4
|
|
5
|
|
6
|
|
7
|
In the f(xstart) text field, type 1 to avoid setting unphysical initial conditions for the Time Dependent solver.
|
|
8
|
|
9
|
Locate the Control Variable Discretization section. From the Control type list, choose Piecewise Bernstein polynomial.
|
|
10
|
|
1
|
In the Model Builder window, expand the Component 1 (comp1) > Laminar Flow (spf) node, then click Component 1 (comp1) > Transport of Diluted Species (tds) > Concentration 1.
|
|
2
|
|
3
|
|
1
|
|
2
|
|
3
|
|
1
|
|
2
|
|
3
|
|
4
|
|
5
|
|
6
|
|
7
|
|
8
|
|
1
|
|
2
|
|
3
|
|
4
|
|
5
|
Locate the Expression section. In the Expression text field, type if(isnan(genext1(y)),0, (y-genext1(y))^2) to avoid contributions where the asymmetry prevents retrieval of a y coordinate for the comparison.
|
|
1
|
|
2
|
Go to the Add Study window.
|
|
3
|
|
4
|
Click the Add Study button in the window toolbar.
|
|
5
|
|
1
|
|
2
|
|
1
|
|
2
|
In the Solve for column of the table, under Component 1 (comp1), clear the checkbox for Deformed Geometry.
|
|
1
|
|
2
|
|
3
|
|
4
|
|
5
|
|
6
|
Click Add Expression in the upper-right corner of the Objective Function section. From the menu, choose Component 1 (comp1) > Definitions > comp1.obj - Boundary Probe 2 - m².
|
|
7
|
Locate the Objective Function section. Find the Objective settings subsection. From the Objective scaling list, choose Initial solution based.
|
|
8
|
Click Add Expression in the upper-right corner of the Constraints section. From the menu, choose Component 1 (comp1) > Definitions > comp1.constr - Boundary Probe 1 - 1.
|
|
9
|
Locate the Constraints section. In the table, enter the following settings:
|
|
10
|
|
11
|
|
12
|
|
13
|
|
14
|
|
1
|
In the Model Builder window, under Results, Ctrl-click to select Concentration (tds), Velocity (spf), Pressure (spf), Deformed Geometry, Mesh, and Evaluation Group 1.
|
|
2
|
Right-click and choose Group.
|
|
1
|
|
2
|
|
3
|
|
4
|
|
5
|
|
6
|
|
1
|
|
2
|
|
3
|
Select the Plot checkbox.
|
|
4
|
|
1
|
In the Model Builder window, expand the Study 2: Optimization > Solver Configurations > Solution 3 (sol3) node, then click Optimization Solver 1.
|
|
2
|
|
3
|
Clear the Globally Convergent MMA checkbox.
|
|
4
|
Click to expand the Advanced section. From the Compensate for nojac terms list, choose Off to avoid warnings in the log.
|
|
5
|
In the Model Builder window, expand the Study 2: Optimization > Solver Configurations > Solution 3 (sol3) > Optimization Solver 1 > Time-Dependent Solver 1 node, then click Advanced.
|
|
6
|
|
7
|
Clear the Reuse sparsity pattern checkbox to avoid warnings in the log.
|
|
8
|
|
1
|
|
2
|
|
3
|
|
4
|
|
1
|
|
2
|
|
4
|
|
5
|
|
6
|
Select the Expression checkbox.
|
|
7
|
|
1
|
|
2
|
|
3
|
Select the Move checkbox.
|
|
4
|
|
1
|
In the Model Builder window, under Results > Concentration (tds) 1, Ctrl-click to select Surface 1 and Arrow Surface 1.
|
|
2
|
Right-click and choose Duplicate.
|
|
1
|
|
2
|
|
3
|
|
1
|
|
2
|
|
3
|
|
4
|
|
1
|
|
2
|
Click
|
|
1
|
|
2
|
|
3
|
|
1
|
|
2
|
|
3
|
|
4
|
|
5
|
|
6
|
|
7
|
|
1
|
|
2
|