Logical answer to Mat Function

General discussion about Elmer
Post Reply
Bdefleur
Posts: 9
Joined: 20 Apr 2012, 11:37
Antispam: Yes

Logical answer to Mat Function

Post 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
raback
Site Admin
Posts: 4812
Joined: 22 Aug 2009, 11:57
Antispam: Yes
Location: Espoo, Finland
Contact:

Re: Logical answer to Mat Function

Post 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
marcothomus
Posts: 1
Joined: 20 Nov 2018, 10:07
Antispam: Yes

Re: Logical answer to Mat Function

Post 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!
mzenker
Posts: 1999
Joined: 07 Dec 2009, 11:49
Location: Germany

Re: Logical answer to Mat Function

Post 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
Post Reply