General discussion about Elmer
Bdefleur
Posts: 9 Joined: 20 Apr 2012, 11:37
Antispam: Yes
Post
by Bdefleur » 20 Apr 2012, 12:11
Hi
I was wondering if it was possible to apply a spatialy variable logical condition using Matc function.
The code I am currently using seems to fail to fix the condition :
Code: Select all
Open Pipe = Variable coordinate 2
Logical Matc "if(tx>=400) TRUE else FALSE"
Is that failure just a syntax issue or should I go to a user function to fix this logical boundary.
Thanks
Basile
raback
Site Admin
Posts: 4868 Joined: 22 Aug 2009, 11:57
Antispam: Yes
Location: Espoo, Finland
Contact:
Post
by raback » 20 Apr 2012, 12:27
Hi
This is not possible. MATC is always assumed to return a real value.
There are True/False conditions used in Elmer for example in conjuction with conditional Dirichlet conditions. Then positive is True and Negative false. Maybe you could adopt similar approach.
-Peter
marcothomus
Posts: 1 Joined: 20 Nov 2018, 10:07
Antispam: Yes
Post
by marcothomus » 20 Nov 2018, 10:44
Hello Guys,
I use this code
but I have a problem can't solve this please send the example & details.
Thanks in advance!
mzenker
Posts: 1999 Joined: 07 Dec 2009, 11:49
Location: Germany
Post
by mzenker » 20 Nov 2018, 11:33
Hi,
I don't understand what you want to do. In order enable someone to help you, you need to provide more information.
* What is your physical problem?
* What is your geometry?
* etc...
You can find lots of information on Elmer in the documentation: Solver and Models Manual and Tutorials.
Matthias