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.

"Duplicate Variable Name" Error

Please login with a confirmed email address before reporting spam

Hi,

I am getting a duplicate variable name error (see attached). Any help is very much appreciated.

Jim


12 Replies Last Post 12 juil. 2011, 22:31 UTC−4
Ivar KJELBERG COMSOL Multiphysics(r) fan, retired, former "Senior Expert" at CSEM SA (CH)

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 3 mai 2011, 01:17 UTC−4
Hi

it's most probably because you have FSI which contains "structural solid" physics and "Solid" physics in the same model. You are duplicating many features, and if you do not use different dependent variable names you might get "duplicated names" error. Still the names on the list are puzzling, they are coordinates and not dependent variables.

Anyhow, with FSI normally you do not need to add solid, as its already contained in FSI, under subsection Structural

--
Good luck
Ivar
Hi it's most probably because you have FSI which contains "structural solid" physics and "Solid" physics in the same model. You are duplicating many features, and if you do not use different dependent variable names you might get "duplicated names" error. Still the names on the list are puzzling, they are coordinates and not dependent variables. Anyhow, with FSI normally you do not need to add solid, as its already contained in FSI, under subsection Structural -- Good luck Ivar

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 3 mai 2011, 02:19 UTC−4
I've decided to just use FSI. Now I get this error : "Failed to create temporary file on server." Any ideas?

Thanks,
Jim
I've decided to just use FSI. Now I get this error : "Failed to create temporary file on server." Any ideas? Thanks, Jim

Ivar KJELBERG COMSOL Multiphysics(r) fan, retired, former "Senior Expert" at CSEM SA (CH)

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 3 mai 2011, 02:26 UTC−4
Hi

that depends on the installation, COMSOL needs to store temporary files somewhere (check the release notes)

It might store in a user defined scratch region, in your ...user ... temp location or for your case on a server somewhere. This location might get clogged up (depends on Comsol version) and might need to be cleaned up a bit ;)

--
Good luck
Ivar
Hi that depends on the installation, COMSOL needs to store temporary files somewhere (check the release notes) It might store in a user defined scratch region, in your ...user ... temp location or for your case on a server somewhere. This location might get clogged up (depends on Comsol version) and might need to be cleaned up a bit ;) -- Good luck Ivar

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 3 mai 2011, 02:56 UTC−4
How do change where these temp files are stored in COMSOL? Can't find it in the release notes. Any ideas?

Jim
How do change where these temp files are stored in COMSOL? Can't find it in the release notes. Any ideas? Jim

Ivar KJELBERG COMSOL Multiphysics(r) fan, retired, former "Senior Expert" at CSEM SA (CH)

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 3 mai 2011, 03:26 UTC−4
Hi

Then Check the KB (Knowledge Base of the main site above) as well as the forum (try a search on "temporary files") this was discussed and I believe top remember that one of the COMSOL employees gave some hints here on the Forum some weeks ago

--
Good luck
Ivar
Hi Then Check the KB (Knowledge Base of the main site above) as well as the forum (try a search on "temporary files") this was discussed and I believe top remember that one of the COMSOL employees gave some hints here on the Forum some weeks ago -- Good luck Ivar

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 3 mai 2011, 04:00 UTC−4
Thank you! I have fixed that problem. I am getting an error saying "Detail: mod1.fsi.vWallx, mod1.fsi.vWally." Yet I filled in all that was asked for. Any advice would be very much appreciated.

Jim
Thank you! I have fixed that problem. I am getting an error saying "Detail: mod1.fsi.vWallx, mod1.fsi.vWally." Yet I filled in all that was asked for. Any advice would be very much appreciated. Jim


Ivar KJELBERG COMSOL Multiphysics(r) fan, retired, former "Senior Expert" at CSEM SA (CH)

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 3 mai 2011, 04:04 UTC−4
Hi

that means you have chosen turbulent mode and use wall variables, and something is not well set up, take a closer look on the main physics node of the fluid solid interface

--
Good luck
Ivar
Hi that means you have chosen turbulent mode and use wall variables, and something is not well set up, take a closer look on the main physics node of the fluid solid interface -- Good luck Ivar

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 3 mai 2011, 04:18 UTC−4
Hmm, I selected "None" for "Turbulence Model Type" and everything else looks okay. I selected both the fluid and solid domains in the FSI's main node, but it does not allow me to select the boundaries under "Fluid-Structure Interface Boundary," labeling all of them as "not applicable." What to make of this?

Thanks
Jim
Hmm, I selected "None" for "Turbulence Model Type" and everything else looks okay. I selected both the fluid and solid domains in the FSI's main node, but it does not allow me to select the boundaries under "Fluid-Structure Interface Boundary," labeling all of them as "not applicable." What to make of this? Thanks Jim

Ivar KJELBERG COMSOL Multiphysics(r) fan, retired, former "Senior Expert" at CSEM SA (CH)

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 3 mai 2011, 05:41 UTC−4
Hi, in FSI you have a main node for all domains (fluid + solid) and then you have two sub nodes, one for the fluid only and one for the solid (you might need to add one of these two manually, it might not be there by default). Then you "wall" is set up as default for the I/F boundaries between the fluid and solid. You may add several nodes and also the same nodes, if you have different materials or physics to apply, on the boundary nodes ^some are additive some are exclusive (check the icons and the doc)

An entity (domain or boundary) that is tagged "(overridden)" has simply been redefined by another node further own the tree model. An Entity tagged "(not applicable)" does not fit the physics selected or is not related to the specific physics.

one need to get used to this chaining and potential overriding of properties, but it is very handy for multiple cases studies. one can add or disable a later node and change the simulation case simply and rapidly. In next release I hope COMSOL manages to have these disable/enable also driven by the different solver selected

--
Good luck
Ivar
Hi, in FSI you have a main node for all domains (fluid + solid) and then you have two sub nodes, one for the fluid only and one for the solid (you might need to add one of these two manually, it might not be there by default). Then you "wall" is set up as default for the I/F boundaries between the fluid and solid. You may add several nodes and also the same nodes, if you have different materials or physics to apply, on the boundary nodes ^some are additive some are exclusive (check the icons and the doc) An entity (domain or boundary) that is tagged "(overridden)" has simply been redefined by another node further own the tree model. An Entity tagged "(not applicable)" does not fit the physics selected or is not related to the specific physics. one need to get used to this chaining and potential overriding of properties, but it is very handy for multiple cases studies. one can add or disable a later node and change the simulation case simply and rapidly. In next release I hope COMSOL manages to have these disable/enable also driven by the different solver selected -- Good luck Ivar

Magnus Ringh COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 3 mai 2011, 05:44 UTC−4
Hi,

COMSOL automatically identifies the boundaries that form the fluid-solid interface. In the model both domains seem to be defined as fluids. A first step here is to add, for example, a Linear Elastic Material Model node to domain 2 to represent the solid. The boundary selection in the Fluid-Solid Interface Boundary node is then updated to include the four boundaries that separate the solid from the fluid.

Best regards,
Magnus Ringh, COMSOL
Hi, COMSOL automatically identifies the boundaries that form the fluid-solid interface. In the model both domains seem to be defined as fluids. A first step here is to add, for example, a Linear Elastic Material Model node to domain 2 to represent the solid. The boundary selection in the Fluid-Solid Interface Boundary node is then updated to include the four boundaries that separate the solid from the fluid. Best regards, Magnus Ringh, COMSOL

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 3 mai 2011, 07:09 UTC−4
I appreciate all the help. I have one more error: "Failed to find consistent initial values.
Last time step is not converged." My initial conditions seem to be ok. Might it be something else?

Thank you,
Jim
I appreciate all the help. I have one more error: "Failed to find consistent initial values. Last time step is not converged." My initial conditions seem to be ok. Might it be something else? Thank you, Jim


Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 12 juil. 2011, 22:31 UTC−4
Hi all,

I am getting the same error (but 42 errors instead of just 28) when I involve "ale" in simulating the basic electrostatic actuation problem of a cantiever. Is it possible to help me get rid of this message?

I downloaded a file from COMSOL called "ale_cantilever_beam_3d", and I just follow what it does with my own switch (except for the symmetry part), but I keep getting the error message described above. In fact, I use Moving Mesh, Solid Mechanics and Electrostatics modules together.

Thank you very much for your help and time.

Looking forward to read your valuable feedback.

Ahmed
Hi all, I am getting the same error (but 42 errors instead of just 28) when I involve "ale" in simulating the basic electrostatic actuation problem of a cantiever. Is it possible to help me get rid of this message? I downloaded a file from COMSOL called "ale_cantilever_beam_3d", and I just follow what it does with my own switch (except for the symmetry part), but I keep getting the error message described above. In fact, I use Moving Mesh, Solid Mechanics and Electrostatics modules together. Thank you very much for your help and time. Looking forward to read your valuable feedback. Ahmed

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.