-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Debug elecslop adelchi #35
Open
maxlevesque
wants to merge
19
commits into
master
Choose a base branch
from
Debug-elecslop-ADELCHI
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
We had n1, n2, n3 strictly equivalent to lx, ly, lz in the same file / routine. Let's get coherent!
I had not understood at first the difference between rho_ch and rho_0. Adelchi tells me there is no difference. So we removed rho_ch from laboetie and replaced it everywhere with rho_0. Plus, there was a division by 0 in the definition of rho_ch only in salt-free simulations.
whenever lamda_D = 0, rho_0 = 0, thus a division by zero takes place in tot_diff_plus and tot_diff_minus. The division by rho_0 was replaced by FactPlus and FactMinus<
flux_site_plus(ip,jp,kp) and flux_site_minus(ip,jp,kp) were not being computed in smolu.f90. Useless comments in just_eq_smolu and smolu were also removed.
Minor change for postprocessing: solute_force is printed in the temporal loop of equilibration.f90 in order to observe if the values are correct. This is mainly for debugging purposes.
solute_force was not being initialised at the beginning of smolu ; thus numerical values would become too large and code would stop. This is now solved. Code works with the following input file: lx = 1 ly = 1 lz = 11 geometryLabel = 1 f_ext = 0.0 0.0 0.0 print_every = 30 sigma = -0.1 timestepmax_for_PoissonNernstPlanck = 1000000 bjl = 0.4 lambda_D = 1.0 lncb_slope = 0.0 0.0 0.0 charge_distrib = int D_plus = 0.05 D_minus = 0.05 D_iter = 1 elec_slope = 0.0 0.0 0.0 However there seems to be an issue when elec_slope is activated. Future work.... p.s. Some extra write were added, in order to produce output for both debugging and postprocessing.
Modifications in charges_init and poisson_nernst_planck to feed analytical solutions for slit case, in order to accelerate convergence in SOR. Alpha input value is computed with CodeValidation.py and needs to be inserted in lb.in for the given configuration. capacitor config added : one wall negatively charged and the other positively charged. To be used for debugging purposes.
-an option was added in order to give the correct profiles for phi, c_plus and c_minus as starting guesses, to accelerate convergence in SLIT CASE -convergence criterion was changed in PNP and SOR -just_eq_smolu modified to have time only positive -Other geometries were added because of PBC related problems -PNP and SOR were corrected
- Fully capable of LBE - EOF simulations with and without salt are now possible - Attempt coding of restart files to avoid PNP for same reference system (to be finshed) - Capable to cylinder and slit geometry All known bugs are fixed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.