Mapping boundary conditions

Questions and remarks about code_saturne usage
Forum rules
Please read the forum usage recommendations before posting.
fabioretti
Posts: 8
Joined: Fri Apr 13, 2012 2:05 pm

Re: Mapping boundary conditions

Post by fabioretti »

Hi Yvan,

Just tried to compile spline.c in SRC, with the include line commented out.
Now the compilation at least starts, but then fails.
I get several warnings, followed by these messages:

splines.o: In function `cs_cub_interpolate':
splines.c:(.text+0x17ff): undefined reference to `min'
splines.c:(.text+0x189f): undefined reference to `min'
splines.c:(.text+0x18ec): undefined reference to `min'
splines.c:(.text+0x1939): undefined reference to `min'
splines.c:(.text+0x1986): undefined reference to `min'
splines.o:splines.c:(.text+0x19d3): more undefined references to `min' follow
collect2: error: ld returned 1 exit status

It was a very quick test, with very little effort to understand what's going on. But I don't expect to be able to go much farther with my limited coding skills. Anyway I'll try, and I will also be waiting for possible updates from you.

Many thanks. Regards,
fabio
Yvan Fournier
Posts: 4080
Joined: Mon Feb 20, 2012 3:25 pm

Re: Mapping boundary conditions

Post by Yvan Fournier »

Hello,

You probably removed too many lines.

I regenerated the missing splines.h file, so I attach the whole package again (I prefer to attach the whole package so others using this thread for reference in the future won't have to search over too many threads; the other files have not changed).

Regards,

Yvan
Attachments
INTERPOL.tgz
(12.93 KiB) Downloaded 424 times
fabioretti
Posts: 8
Joined: Fri Apr 13, 2012 2:05 pm

Re: Mapping boundary conditions

Post by fabioretti »

Hi,

The files you provided worked perfectly. Thanks a lot for your help.

Best
Fabio
finzeo
Posts: 55
Joined: Fri Sep 09, 2022 4:23 pm

Re: Mapping boundary conditions

Post by finzeo »

Hello,

Before posting a similar query, I found this thread that fits quite well with what I want to do: having run a case with periodic conditions on an empty wind tunnel, I need to export the data obtained there in any rectangular cross section and then import them as BCs in the entry of a second case with a body inside the wind tunnel. In these years was a more straightforward way developed to carry out this?
Yvan Fournier
Posts: 4080
Joined: Mon Feb 20, 2012 3:25 pm

Re: Mapping boundary conditions

Post by Yvan Fournier »

Hello,

If you build code_saturne with the medcoupling library support, you could export the profile on the desired section in MED Format (either using PARAVIS, e.g. ParaView with the MED loader plugin, available in the salome platform), and then start from the following example https://www.code-saturne.org/documentat ... er_2d.html (code at https://github.com/code-saturne/code_sa ... apper_2d.c).

Best regards,

Yvan
finzeo
Posts: 55
Joined: Fri Sep 09, 2022 4:23 pm

Re: Mapping boundary conditions

Post by finzeo »

Thank you Yvan,

I'm going to check it out and see how it goes.
Post Reply