Note: This discussion is about an older version of the COMSOL Multiphysics® software. The information provided may be out of date.
Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.
Updating variables in user defined settings: connecting concentration to conductivity.
Posted Nov 3, 2016, 5:37 p.m. EDT Low-Frequency Electromagnetics, Microfluidics Version 4.4 2 Replies
Please login with a confirmed email address before reporting spam
I am using the Microfluidics module to model the electric field when different buffer plugs are loaded into a capillary. Because each buffer plug has significantly different resistance values I cannot use the same conductance value for the entire 2D-channel. To try and resolve this I created a buffer plug using a rectangular pulse function in the Transport of Diluted Species module. Under "Electric Current>>Current Conservation>>Conductance" I set the conductance using a user defined setting by subtracting the concentration (c) from some nominal background value. This works great and I'm able to calculate the electric field, creeping flow w/ electroosmosis to see the buffer plug move in a time dependent study.
My problem is that conductance does not update with the moving buffer plug when I use it in a time-depedent study or in a separate sequential study. My expression for conductance in the user defined function is (sigma-(c*sigma/a) where sigma is a nominal conductance value (S/m), c is concentration,a is a scalar to normalize the conductance. I assumed that c was a global variable for concentration and would use the current value in the solver from the Transport of Diluted species. But regardless it always uses the intial location of the buffer plug to determine conductance.
Is there a better way to connect a variable to a user defined setting?
Do I have to explicitly update a concentration variable with each new iteration of the Transport of Diluted species?
I am fairly new to Comsol so any advice would be appreciated!
My problem is that conductance does not update with the moving buffer plug when I use it in a time-depedent study or in a separate sequential study. My expression for conductance in the user defined function is (sigma-(c*sigma/a) where sigma is a nominal conductance value (S/m), c is concentration,a is a scalar to normalize the conductance. I assumed that c was a global variable for concentration and would use the current value in the solver from the Transport of Diluted species. But regardless it always uses the intial location of the buffer plug to determine conductance.
Is there a better way to connect a variable to a user defined setting?
Do I have to explicitly update a concentration variable with each new iteration of the Transport of Diluted species?
I am fairly new to Comsol so any advice would be appreciated!
2 Replies Last Post Nov 4, 2016, 9:45 a.m. EDT