b2api
B2000++ API Reference Manual, VERSION 4.6
 
Loading...
Searching...
No Matches
b2domain_property.H
1//------------------------------------------------------------------------
2// b2domain_property.H --
3//
4//
5// written by Mathias Doreille
6//
7// Copyright (c) 2004-2015,2016
8// SMR Engineering & Development SA
9// 2502 Bienne, Switzerland
10//
11// All Rights Reserved. Proprietary source code. The contents of
12// this file may not be disclosed to third parties, copied or
13// duplicated in any form, in whole or in part, without the prior
14// written permission of SMR.
15//------------------------------------------------------------------------
16
17#ifndef _B2_DOMAIN_PROPERTY_H_
18#define _B2_DOMAIN_PROPERTY_H_
19
20#include "model/b2case.H"
21#include "model/b2element.H"
22
23namespace b2000 { namespace b2dbv3 {
24
29public:
30 DomainProperty(Domain& domain_, int dim_ = 0, double facdrill_ = 0, double facrems_ = 0)
31 : domain(domain_), dim(dim_), facdrill(facdrill_), facrems(facrems_) {}
32
33 void set_case(b2000::Case& case_) {
34 dim = case_.get_int("GEOM", 3);
35 facdrill = case_.get_double("DRILLS", 0);
36 facrems = case_.get_double("REMSING", 0);
37 }
38
39 Domain& get_domain() { return domain; }
40
41 double get_drill_stiffness() const { return facdrill; }
42
43private:
44 Domain& domain;
45 int dim;
46 double facdrill;
47 double facrems;
48};
49
50}} // namespace b2000::b2dbv3
51
52#endif /* _B2_DOMAIN_PROPERTY_H_ */
Definition b2case.H:110
virtual double get_double(const std::string &key) const =0
virtual int get_int(const std::string &key) const =0
Definition b2domain_property.H:28
A in-core implementation of the b2dbv3::Domain. All the Element, Node and ElementProperty objects are...
Definition b2domain_database.H:62
Contains the base classes for implementing Finite Elements.
Definition b2boundary_condition.H:32