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.
take concentration profile at outlet and use it for inflow boundary condition
Posted Apr 19, 2012, 11:17 p.m. EDT Fluid & Heat, Microfluidics, Chemical Reaction Engineering, Parameters, Variables, & Functions Version 4.2a 11 Replies
Please login with a confirmed email address before reporting spam
how do I take the concentration profile at the outlet from the first transport of dilute species (variable c) and use it as the inlet boundary condition for my second transport of dilute species (variable c2)?
Attachments:
Please login with a confirmed email address before reporting spam
Please login with a confirmed email address before reporting spam
Attachments:
Please login with a confirmed email address before reporting spam
this is the case by default, you must change the referencing in the "dependent variable" sub node of your solver tree
--
Good luck
Ivar
Please login with a confirmed email address before reporting spam
Hi
this is the case by default, you must change the referencing in the "dependent variable" sub node of your solver tree
--
Good luck
Ivar
Hi Ivar,
Thanks for replying,
Could you please clarify what you mean when you say "change the referencing in the "dependent variable" subnode"?
Please login with a confirmed email address before reporting spam
Open the Solver node structure and search for the node: "Dependent Variables"
Therein the initial conditions for each dependent variable can be set to default "0" or to a solution already existing.
COMSOl will only join them "automatically" (To use the results of the first as initial conditions for the second one etc) if you define severalsolvers under the same study i.e. a stationary + time dependent solver sequence within the same study
--
Good luck
Ivar
Please login with a confirmed email address before reporting spam
I believe that is what I did, but I would still get the same concentration profile across the length of the channel for both studies.
Does it have anything to do with the inlet concentration? I am setting the inflow of a boundary to a number (i.e. 1 mol/m^3). Should this be a variable? It seems to me when I run the second study using the previous solution, the inflow boundary would still initialize with 1 mol/m^3 as opposed to the concentration at the outflow boundary from the previous study.
Thanks,
Dan
Please login with a confirmed email address before reporting spam
Please login with a confirmed email address before reporting spam
COMSOL distinguishes the initial conditions for variables solved for and the others, depending on how you set up your model and the multiphyiscs, perhaps you need to check both entries
--
Good luck
Ivar
Please login with a confirmed email address before reporting spam
Thanks for all your help so far. However, I am still having the same problem. I apologize if I am causing you any frustration
the second dependent variable still does not seem to use the previous solution as initial conditions...
attached is the model I am trying to get it to work in. It would solve, but I have the same solutions for all my stationary steps, even though I set the dependent variables to use the previous solutions.
Attachments:
Please login with a confirmed email address before reporting spam
My way to transfer outflow concentration profile to inflow - in the next run - is presented in the attached files.
Brief description of performed operations:
1. Outflow-to-inflow-1 model was created and run.
2. Outflow concentration profile was exported to an external file conc-out.csv.
3. Outflow-to-inflow-2 model was created.
4. conc-out.csv file was imported and stored as an interpolation function (int1).
5. int1 was imposed as the inflow boundary condition.
6. Outflow-to-inflow-2 model was run.
Maybe a simpler way exists. I don't know.
Best regards,
Andrzej
Attachments:
Please login with a confirmed email address before reporting spam
@ Ivar, I tried using the periodic flow condition, but there wasn't really good documentation on how to use it.. Thanks for your help.
@ Andrzej, That is what I ended up doing, thanks!
I also tried using COMSOL with MATLAB, but kept getting errors, so i figured it would be easiest to just export interpolation data and use it for my next run.
Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.