Forwarded from Hossein Mgh-SA
Forwarded from Hossein Mgh-SA
Modeling Helps Improve Safety in the Production of Teflon
http://www.comsol.com/story/modeling-helps-improve-safety-in-the-production-of-tef
http://www.comsol.com/story/modeling-helps-improve-safety-in-the-production-of-tef
به منظور ایجاد محیطی آسان و ماندگار جهت دسترسی به مطالب طرح شده در گروه و سایر موارد مهم آموزشی کامسول وبلاگی با کوشش مدیران گروه، وبلاگی ایجاد شده است که پیشنهاد می شود جهت دسترسی به این مطلب به آدرس اینترنتی : http://comsol-multiphysics.persianblog.ir/ مراجعه نمایید.
از دوستان گرامی خواهشمندم به منظور گسترش این طرح مطالب آموزشی مفید خود و یا پرسش و پاسخ هایی را که در گروه مطرح می شود را گرداوری کرده و برای مدیران گروه ارسال نمایید، تا به نام آن ها در وبلاگ به اشتراک گذاشته شود.
پسندیده است که مطالب ارسالی به صورت یکپارچه، کامل، و درخور بحث مورد نظر باشند.
در بالای بحث عنوان و در پایین نام نویسنده یا گردآورنده و در صورت صلاحدید، ایمیل یا شناسه کاربری تلگرام یا هر شبکۀ اجتماعی مورد نظر آورده شود.
همچنین برای مباحث ادامه دار، در ابتدای هر بحث مشخص شود که مطالب با چه قالبی ارسال خواهند شد.
از دوستان گرامی خواهشمندم به منظور گسترش این طرح مطالب آموزشی مفید خود و یا پرسش و پاسخ هایی را که در گروه مطرح می شود را گرداوری کرده و برای مدیران گروه ارسال نمایید، تا به نام آن ها در وبلاگ به اشتراک گذاشته شود.
پسندیده است که مطالب ارسالی به صورت یکپارچه، کامل، و درخور بحث مورد نظر باشند.
در بالای بحث عنوان و در پایین نام نویسنده یا گردآورنده و در صورت صلاحدید، ایمیل یا شناسه کاربری تلگرام یا هر شبکۀ اجتماعی مورد نظر آورده شود.
همچنین برای مباحث ادامه دار، در ابتدای هر بحث مشخص شود که مطالب با چه قالبی ارسال خواهند شد.
حل مشکل گرافیک در کامسول
اگر مشکل گرافیک در کامسول دارین، آخرین نسخه DirectX رو نصب کنین و بعد داخل کامسول:
Option>Preferences>Graphics
گزینه Rendering رو به DirectX تغییر بدین
اگر مشکل گرافیک در کامسول دارین، آخرین نسخه DirectX رو نصب کنین و بعد داخل کامسول:
Option>Preferences>Graphics
گزینه Rendering رو به DirectX تغییر بدین
تبدیل مدل 2D به 3D و مشاهده نتایج در مدل 3 بعدی
در Geometry یک Work Plane ایجاد کنید. سپس بر روی آن کلیک کنید و گزینه Import را نتخاب نمایید. فایل دو بعدی خود را بر روی آن صفحه وارد نمایید و گزینه Build را کلیک کنید. سپس بر روی Work Plane راست کلیک کنید و گزینه Revolve را انتخاب کنید (قابلیت Extrude کردن نیز وجود دارد) و انتخاب Build.
در Geometry یک Work Plane ایجاد کنید. سپس بر روی آن کلیک کنید و گزینه Import را نتخاب نمایید. فایل دو بعدی خود را بر روی آن صفحه وارد نمایید و گزینه Build را کلیک کنید. سپس بر روی Work Plane راست کلیک کنید و گزینه Revolve را انتخاب کنید (قابلیت Extrude کردن نیز وجود دارد) و انتخاب Build.
A number of people are getting similar issues relating to COMSOL not converging. This leads to an error message that might look like:
Failed to find a solution.
The relative residual (0.28) is greater than the relative tolerance.
Returned solution is not converged.
Messages similar to this are returned for nonlinear problems that fail to converge. Here are some possible causes and cures:
Your model is highly nonlinear. This is often the case in for instance mass transport models with fast reactions. Try to cancel some known nonlinearity in the problem and gently ramp it up with the parametric solver. For example, Stationary models with high reaction rates (high Ri), or more generally, large source terms, may result in convergence problems. You can for instance get error messages such as "No convergence, even when using the minimum damping factor", "NaN repeatedly found in solution", or "Error: Failed to find a solution".
Try to solve the problem using reduced source terms, and then gradually increase them, using the previous solution when solving, until you reach the solution to your original problem. The following approach uses the parametric solver to gradually increase the source term. COMSOL Multiphysics will now start to solve the problem using the first multiplication factor. Then, if that works, the solution will be used as the initial guess for the next parameter value. This process will continue until the last parameter value is reached. Because you specified the last parameter value to be unity, the last solution will correspond to your original problem fomulation.
Multiply the reaction (source) term (Ri) by a multiplication factor variable, for example "k".
Click the Stationary node and select the Continuation check box. Enter k for Continuation parameter.
In Parameter values, enter a range of increasing values, starting at a low value and increasing to unity, for example "1e-3 1e-2 1e-1 1".
Click Compute.
Use the time dependent solver. By making the problem time dependent, you usually get a smoother convergence. Make sure to solve the problem for large enough times, such that the solution does not vary any longer. This implies that the solution has reached steady-state. Thus, COMSOL Multiphysics has calculated the stationary solution.
Right-click the Model node and select Add Study. Select Time Dependent and click Finish.
In Times, enter a range of times to solve for, for example "0 1e3".
Click Compute.
Your boundary conditions are inconsistent, either with each other or with your initial guess. Check your equation system and boundary conditions.
There is no stationary solution to your problem. For example, a constantly positive heat source surrounded by insulating walls results in a temperature field that increases forever, and never reaches a stationary state. Running a time-dependent study can help you understand what is going on.
Non-unique solutions. For example, a cavity flow problem needs to have the pressure locked in some point or the problem will have an infinite number of solutions. Right-click the physics interface head node and select Pressure Point Constraint under Points. Constrain one point to an arbitrary pressure, for example 0.
The mesh is too coarse to resolve steep gradients. This is a common scenario, for example, near walls in natural convection problems. Try refining the mesh locally, where you expect spatial variations in the solution.
For time-dependent nonlinear models
When a time dependent solver has trouble converging, its default behavior is to slow down. Reducing the time step is a good strategy when convergence problems would otherwise arise due to some fast change in time. However, a failure to converge can also be the result of strong nonlinearities.
Failed to find a solution.
The relative residual (0.28) is greater than the relative tolerance.
Returned solution is not converged.
Messages similar to this are returned for nonlinear problems that fail to converge. Here are some possible causes and cures:
Your model is highly nonlinear. This is often the case in for instance mass transport models with fast reactions. Try to cancel some known nonlinearity in the problem and gently ramp it up with the parametric solver. For example, Stationary models with high reaction rates (high Ri), or more generally, large source terms, may result in convergence problems. You can for instance get error messages such as "No convergence, even when using the minimum damping factor", "NaN repeatedly found in solution", or "Error: Failed to find a solution".
Try to solve the problem using reduced source terms, and then gradually increase them, using the previous solution when solving, until you reach the solution to your original problem. The following approach uses the parametric solver to gradually increase the source term. COMSOL Multiphysics will now start to solve the problem using the first multiplication factor. Then, if that works, the solution will be used as the initial guess for the next parameter value. This process will continue until the last parameter value is reached. Because you specified the last parameter value to be unity, the last solution will correspond to your original problem fomulation.
Multiply the reaction (source) term (Ri) by a multiplication factor variable, for example "k".
Click the Stationary node and select the Continuation check box. Enter k for Continuation parameter.
In Parameter values, enter a range of increasing values, starting at a low value and increasing to unity, for example "1e-3 1e-2 1e-1 1".
Click Compute.
Use the time dependent solver. By making the problem time dependent, you usually get a smoother convergence. Make sure to solve the problem for large enough times, such that the solution does not vary any longer. This implies that the solution has reached steady-state. Thus, COMSOL Multiphysics has calculated the stationary solution.
Right-click the Model node and select Add Study. Select Time Dependent and click Finish.
In Times, enter a range of times to solve for, for example "0 1e3".
Click Compute.
Your boundary conditions are inconsistent, either with each other or with your initial guess. Check your equation system and boundary conditions.
There is no stationary solution to your problem. For example, a constantly positive heat source surrounded by insulating walls results in a temperature field that increases forever, and never reaches a stationary state. Running a time-dependent study can help you understand what is going on.
Non-unique solutions. For example, a cavity flow problem needs to have the pressure locked in some point or the problem will have an infinite number of solutions. Right-click the physics interface head node and select Pressure Point Constraint under Points. Constrain one point to an arbitrary pressure, for example 0.
The mesh is too coarse to resolve steep gradients. This is a common scenario, for example, near walls in natural convection problems. Try refining the mesh locally, where you expect spatial variations in the solution.
For time-dependent nonlinear models
When a time dependent solver has trouble converging, its default behavior is to slow down. Reducing the time step is a good strategy when convergence problems would otherwise arise due to some fast change in time. However, a failure to converge can also be the result of strong nonlinearities.
ome settings that might help include: browse down to the Fully Coupled node inside your study. In order to make this node appear, you may need to first right-click the Study node and select Show Default Solver. While in the Fully Coupled node, click the Settings tab and make the settings -> Jacobian update (from Minimal to On every iteration), the Maximum number of iterations (from 4 to 25), and the Tolerance factor (from 1 to 1e-3). Updating the Jacobian on every iteration increases the stability of the nonlinear process. The maximum number of iterations sets a limit to how many iterations can be performed; a process otherwise controlled by the tolerance factor.
For time-dependent waves models
The accuracy in a model solving an equation for electromagnetic, structural, or any other kind of waves is often limited by how well the mesh resolves the waves. Time-dependent wave equations also put constraints on the time steps used by the solver. This article describes how you can control the mesh and the solver settings to get an accurate solution.
Start by deciding what mesh size you want to use. Just like in the frequency domain, you will need at least approximately 5 second-order mesh elements per wavelength. Keep in mind that in a time domain model, your wave does not consist of just one frequency, but can rather be described as a frequency spectrum. For example assume a model that uses Gaussian pulses with a standard deviation of √2/(2πf0). With this expression, most of the energy content in the pulse (95.5%) will be distributed over frequencies lower than f0. If you want to resolve these frequencies, the maximum allowed mesh element size becomes h0 = c/(N*f0), where c is the local speed of light or sound, and N = 5 the number of mesh elements per wavelength.
You should aim for a time step that resolves the wave equally well in time as the mesh does in space. Any longer time steps will not make optimal use of the mesh, and any shorter time steps will lead to longer solution times with no considerable improvements to the results. The relationship between mesh size and time step length is known as the CFL number: CFL = c*Δt/h, where Δt is the time step and h is the mesh size. In practice, with the default second order mesh elements, a CFL number of 0.2 proves to be near optimal.
By default, the time dependent solver will continuously adjust the time step in order to fulfill your specified tolerances. If you already know the time step that you want the solver to take, it is easier and more efficient to set it manually. This is done on the Settings tab of the Time-Dependent Solver node. In order to make this node appear, you may need to right-click the Study node and select Show Default Solver. Note that changing the number of output times in the Step 1: Time Dependent node controls the output times, but has little effect on the time steps actually taken by the solver.
For time-dependent waves models
The accuracy in a model solving an equation for electromagnetic, structural, or any other kind of waves is often limited by how well the mesh resolves the waves. Time-dependent wave equations also put constraints on the time steps used by the solver. This article describes how you can control the mesh and the solver settings to get an accurate solution.
Start by deciding what mesh size you want to use. Just like in the frequency domain, you will need at least approximately 5 second-order mesh elements per wavelength. Keep in mind that in a time domain model, your wave does not consist of just one frequency, but can rather be described as a frequency spectrum. For example assume a model that uses Gaussian pulses with a standard deviation of √2/(2πf0). With this expression, most of the energy content in the pulse (95.5%) will be distributed over frequencies lower than f0. If you want to resolve these frequencies, the maximum allowed mesh element size becomes h0 = c/(N*f0), where c is the local speed of light or sound, and N = 5 the number of mesh elements per wavelength.
You should aim for a time step that resolves the wave equally well in time as the mesh does in space. Any longer time steps will not make optimal use of the mesh, and any shorter time steps will lead to longer solution times with no considerable improvements to the results. The relationship between mesh size and time step length is known as the CFL number: CFL = c*Δt/h, where Δt is the time step and h is the mesh size. In practice, with the default second order mesh elements, a CFL number of 0.2 proves to be near optimal.
By default, the time dependent solver will continuously adjust the time step in order to fulfill your specified tolerances. If you already know the time step that you want the solver to take, it is easier and more efficient to set it manually. This is done on the Settings tab of the Time-Dependent Solver node. In order to make this node appear, you may need to right-click the Study node and select Show Default Solver. Note that changing the number of output times in the Step 1: Time Dependent node controls the output times, but has little effect on the time steps actually taken by the solver.
استفاده از قابلیت Continue در نرم افزار کامسول
در کامسول این امکان وجود دارد که تحلیل را متوقف نمود و ادامه آن را بعد از مدتی Resume کرد. جهت متوقف نمودن، هنگام تحلیل، در زبانه Progress بر روی Stop کلیک کنید (ترجیحا Solution)
در کامسول این امکان وجود دارد که تحلیل را متوقف نمود و ادامه آن را بعد از مدتی Resume کرد. جهت متوقف نمودن، هنگام تحلیل، در زبانه Progress بر روی Stop کلیک کنید (ترجیحا Solution)
سپس در قسمت Study، گزینه Continue فعال خواهد شد.
میتوانید فایل را ذخیره نمایید و تحلیل را در یک سیستم دیگر ادامه دهید.
میتوانید فایل را ذخیره نمایید و تحلیل را در یک سیستم دیگر ادامه دهید.