Page 1 of 1

Logical answer to Mat Function

Posted: 20 Apr 2012, 12:11
by Bdefleur
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

Re: Logical answer to Mat Function

Posted: 20 Apr 2012, 12:27
by raback
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

Re: Logical answer to Mat Function

Posted: 20 Nov 2018, 10:44
by marcothomus
Hello Guys,


I use this code

Code: Select all

mat(obj, ...)
mat(obj) <- value

but I have a problem can't solve this please send the example & details.


Thanks in advance!

Re: Logical answer to Mat Function

Posted: 20 Nov 2018, 11:33
by mzenker
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