From be6483cf6b3a19067d932b00d9cc50ebd7dfa512 Mon Sep 17 00:00:00 2001 From: sbosse Date: Wed, 28 Aug 2024 21:39:11 +0200 Subject: [PATCH] Wed 28 Aug 21:38:52 CEST 2024 --- src/SimNDT/core/transducer.py | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 src/SimNDT/core/transducer.py diff --git a/src/SimNDT/core/transducer.py b/src/SimNDT/core/transducer.py new file mode 100644 index 0000000..9ce8f18 --- /dev/null +++ b/src/SimNDT/core/transducer.py @@ -0,0 +1,33 @@ +#!/usr/bin/env python +# encoding: utf-8 +""" +transducer.py + +Created by Miguel Molero on 2013-09-25. +Copyright (c) 2013 MMolero. All rights reserved. +""" + + + +class Transducer: + + def __init__(self, name = 'emisor', + Size = 10, CenterOffset = 0, BorderOffset = 0, Location = "Top", + PointSource = False, EnableWindow = False, Field=False, PZT=False): + self.Name = name + self.Size = Size + self.CenterOffset = CenterOffset + self.BorderOffset = BorderOffset + self.SizePixel = 0 + self.Location = Location + self.PointSource = PointSource + self.Window = EnableWindow + self.Field = Field + self.PZT = PZT + + + def __str__(self): + return "Transducer: " + + def __repr__(self): + return "Transducer: "