|
[Sponsors] |
updating boundary condition after one iteration and permanently |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 22, 2017, 22:19 |
updating boundary condition after one iteration and permanently
|
#1 |
Senior Member
Bobby
Join Date: Oct 2012
Location: Michigan
Posts: 454
Rep Power: 16 |
Dear Fellows
I want to implement a boundary condition in a somehow unique way. I want to start a simulation with a high value called . Immediately, after 1 iteration, I want to put this relation as the boundary condition: . Actually, that 1 iteraion is needed to calculate in the high value and then modifying boundary condition to a much smaller value. Here, the point is that comes from that first iteration. Basically, what I want to do is start a simulation with a high Dirichlet boundary condition and after first iteration, calculate surface normal gradient and find the new based on modification formula and continue simulation with new Dirichlet boundary condition. The new Dirichlet boundary condition remains intact throughout the simulation. So, in first iteration my boundary condition is and for the rest of simulation is . Any clue how to implement it? |
|
June 22, 2017, 22:58 |
|
#2 |
Senior Member
Arjun
Join Date: Mar 2009
Location: Nurenberg, Germany
Posts: 1,285
Rep Power: 34 |
I am trying to code it and most of it is done for now.
Here is my take, during the initialization of model, you first solve the poisson equation for this variable (Ue as you called it in other thread). After it is solved the field comes to be smooth. dUedn is no longer as sharp as it is in the start for cplus and cminus. So basically in my model init cplus, cminus from user. using cplus and cminus, solve poisson equation for Ue to initialize it. Iterations 1. Solve Ue poisson equation 2. Solve Cplus and Cminus transport. This is my rough outline. |
|
June 22, 2017, 23:15 |
|
#3 |
Senior Member
Bobby
Join Date: Oct 2012
Location: Michigan
Posts: 454
Rep Power: 16 |
||
|
|